www.webdeveloper.com

Search:

Type: Posts; User: asmith20002

Page 1 of 6 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    1,692

    AJAX Thanks for the replies. I have root access and...

    Thanks for the replies.

    I have root access and I use nginx and PHP. So basically the idea is making long-requests via AJAX, depending on my nginx timeout. But I'd need long-polling server so that...
  2. Replies
    6
    Views
    1,692

    AJAX Design pattern of chat

    Hi,

    I've written a chat using ajax. In a nutshell, every few seconds, an ajax call is fired and data is getting updated. The ajax function is a setTimeout in itself, so the loop goes on.

    What's...
  3. Replies
    1
    Views
    438

    AJAX if content of div is fully loaded

    Hello,

    I'm getting some content that contains images into a div via ajax. The div that these stuff gets load into has a height and overflow auto and I need to stick the scrollTop to the bottom...
  4. Replies
    3
    Views
    477

    I can do it via javascript. I was hoping for a...

    I can do it via javascript. I was hoping for a css trick.
  5. Replies
    3
    Views
    477

    float and centering

    Hello,

    I have this page which lists products. Each product is a div with 250px width and they are all floating left. So depending on the user's browser width, they see 3, 4, 5 ... products per...
  6. Replies
    4
    Views
    802

    function navigate_Parameter(num) { var...

    function navigate_Parameter(num)
    {
    var placement = location.href.indexOf('?');
    var location_without_parameters = placement == -1 ? location.href : location.href.substr(0,...
  7. Replies
    3
    Views
    557

    Duplicate instances

    Hello,

    I've coded this ajax shoutbox that gets updated every 3 seconds to show new messages like this:



    function updateshoutbox()
    {
    /* do ajax request and stuff /*
  8. Replies
    2
    Views
    943

    Thanks for the replay. It works but I ran into...

    Thanks for the replay.

    It works but I ran into another problem. I need div#content minimum height equal to div#menu's height. div#menu's height is not fixed and can be different due to different...
  9. Replies
    2
    Views
    943

    float and clear

    The code simply puts the column on left side and content on right side:



    <div>
    <div style="float: left; width: 20%;">
    content<br /><br /><br />
    content<br /><br /><br />
    content<br...
  10. You could create both your "forms" first but put...

    You could create both your "forms" first but put their style display as none, so none would be visible. Then according to your select box, make display of them block/none to suit your purpose.
  11. Replies
    1
    Views
    833

    history.go() question

    Hello :)

    I'm testing things with javascript history.go() function. I'm getting different behavior from different browsers. I wanna know if there's a workout around this.

    history.go(-1) supposed...
  12. It seems like you are importing in the right spot...

    It seems like you are importing in the right spot in PHPMYADMIN. Server is telling you there's no database selected meaning it doesn't know in which database it must put your tables.

    Click on a...
  13. Replies
    3
    Views
    2,021

    Use mysql_fetch_assoc() instead. It returns only...

    Use mysql_fetch_assoc() instead. It returns only name associative values. (mysql_fetch_row() will return only numerics.)
  14. Replies
    2
    Views
    1,661

    I don't know why your intval() function is...

    I don't know why your intval() function is failing there. Try changing
    $autorID=intval($_GET["autorid"]);
    to
    $autorID= (int) $_GET["autorid"];
  15. Replies
    1
    Views
    1,535

    I think you could use a better query: SELECT...

    I think you could use a better query:

    SELECT
    *, sum(rev) as rev,
    FROM income
    WHERE date BETWEEN '2011-08-15' AND '2011-08-16'
    GROUP BY location, date

    Then when you are fetching the data, if...
  16. Replies
    2
    Views
    2,527

    Mysql queries time

    Hello,

    My site viewers got more and the site started to lag. So I started reviewing the queries I had written before.

    There's a table with like 1 million rows which left joins to 2 other table....
  17. Replies
    0
    Views
    1,839

    MooTools Adding description to Barack Slideshow

    Hello,

    I've been looking for some JS slideshow on the net and I came across many many of them.
    I found barackslideshow the closest to what I have in mind considering it being light. (I have...
  18. Replies
    3
    Views
    882

    unset variable inside a function

    Hello :)

    Well I was wondering about this function, I can't get it to work.



    function returnAndRemove(&$variable)
    {
    $output = $variable;
    unset($variable);
  19. Replies
    2
    Views
    682

    simple redirect not refresh

    Hello.

    I've been looking for this, seems I can't find it or don't use the right keywords.

    I want to redirect my page to the EXACT same page the user is viewing. Kinda like...
  20. Replies
    2
    Views
    588

    MooTools Thank you!! Worked like a charm :)

    Thank you!! Worked like a charm :)
  21. Replies
    2
    Views
    588

    MooTools Tiny timing problem

    Hi.

    I'm using mootools ajax. and I've coded something like this:


    <script type="text/javascript">
    new ajax ("file.php", {
    postBody: "value=" + $('firstValue').value + "&value2=" +...
  22. Replies
    9
    Views
    1,453

    hmm, maybe find a way around it? I want to be...

    hmm, maybe find a way around it?

    I want to be able to click on a 'div', and be able to change its background image position.
    For example I click on X:20,Y:100 on it (20 and 100 relating to the...
  23. Replies
    9
    Views
    1,453

    hmm that made it harder. If it doesn't stop at...

    hmm that made it harder. If it doesn't stop at body, meaning it will be an infinite loop?
    Seems there's no exact way for all browsers to catch this, huh?
  24. Replies
    9
    Views
    1,453

    Thanks for your replies :) I'm sorry I lost...

    Thanks for your replies :)

    I'm sorry I lost you at the very end. What is inp there?
  25. Replies
    9
    Views
    1,453

    I ran to a problem. This thing works for a...

    I ran to a problem.

    This thing works for a textarea. But when I use an 'img' for 'div' instead of that:
    e.layerY || e.offsetY will give the height from all the element above this. for example...
Results 1 to 25 of 136
Page 1 of 6 1 2 3 4
HTML5 Development Center



Recent Articles