![]() |
AJAX Request: Not properly retrieving data
Am I missing something? I get the alert stating that the function has indeed been called but apparently the rest is not successful . . . I don't get an alert with the json data in it.
PHP Code:
PHP Code:
|
The best way to debug this sort of thing is to view the messages generated in the console (e.g Firebug's).
You should be able to see the ajax call going out with the parameters and then the response from your php file. |
Have you attached the jQuery library?
Is your page in the same location as the 'scripts' sub-folder? Has $link been established? Type '..process.php?mode=creatureList' in the address bar to test it. |
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:
-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. |
Quote:
|
| All times are GMT +1. The time now is 05:36 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.