View Single Post
Old 12-15-2012, 02:09 PM   PM User | #4
Styles2304
New Coder

 
Join Date: Jul 2005
Posts: 84
Thanks: 4
Thanked 0 Times in 0 Posts
Styles2304 is an unknown quantity at this point
lol yes, the jquery library has been attached and is used for a majority of my page. I'm not exactly sure what you mean by: "Is your page in the same location as the 'scripts' sub-folder?" but process is successfully called by other functions using the .post() command to put data IN the database and $link is definitely set.

When I access the page, I get a json encoded array echo'd from the database. The issue is that it's not being retrieved by the .ajax() function.

I tried using:
PHP Code:
            $.getJSON('scripts/php/process.php?mode=creatureList', function(data) {
                
alert(data);
            }); 
That returns an object though. At least something is being returned!

-EDIT-
Wasn't thinking about the fact that you can only alert a string. I sent it to the console and I'm getting the data back properly. Thanks for the help.

Last edited by Styles2304; 12-15-2012 at 02:23 PM.. Reason: Update
Styles2304 is offline   Reply With Quote