JQuery .get() only passing first two data parameters in url

Posted by The.Anti.9 on Stack Overflow See other posts from Stack Overflow or by The.Anti.9
Published on 2010-05-02T09:54:17Z Indexed on 2010/05/02 9:57 UTC
Read the original article Hit count: 108

Filed under:
|
|

I have a $.get() call to a PHP page that takes 4 GET parameters. For some reason, despite giving the $.get() call all 4, it only passes the first two. When I look at the dev console in chrome, it shows the URL that gets called, and it only passes action and dbname. Heres the code:

$.get('util/util.php', { action: 'start', dbname: db, url: starturl, crawldepth: depth }, function(data) {
        if (data == 'true') {
            status = 1;
            $('#0').append(starturl + "<ul></ul>");
            $('#gobutton').hide();
            $('#loading').show("slow");
            while(status == 1) {
                setTimeout("update()",10000);

            }
        } else {
            show_error("Form data incomplete!");
        }
    });

and heres the URL that I see in the developer console:

http://localhost/pci/util/util.php?action=start&dbname=1hkxorr9ve1kuap2.db

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript