getJSON in CI problem |
[eluser]narkaT[/eluser]
the first thing you should do, is cleanup your php-code the switch/case-statement is totally useless, you could just drop it. every variable you plan to use (especially if it is an array) should be declared first, to prevent unexpected data to be injected into your application. in combination with register_globals such "errors" would allow "evil-people" to run xss-attacks. concerning the JS I would use jquery's post-funktion. there is also a exmaple for a simple wrapper functionin the documentation: Code: $.postJSON = function(url, data, callback) { and remeber to change $_GET to $_POST Greetings Jan |
Messages In This Thread |
getJSON in CI problem - by El Forum - 09-21-2008, 11:15 AM
getJSON in CI problem - by El Forum - 09-21-2008, 01:55 PM
getJSON in CI problem - by El Forum - 09-22-2008, 12:44 AM
getJSON in CI problem - by El Forum - 09-22-2008, 03:29 PM
getJSON in CI problem - by El Forum - 09-23-2008, 01:02 AM
getJSON in CI problem - by El Forum - 09-30-2008, 01:29 AM
getJSON in CI problem - by El Forum - 09-30-2008, 02:52 AM
getJSON in CI problem - by El Forum - 09-30-2008, 05:02 AM
getJSON in CI problem - by El Forum - 09-30-2008, 10:24 AM
getJSON in CI problem - by El Forum - 10-09-2008, 03:12 PM
getJSON in CI problem - by El Forum - 10-10-2008, 05:45 AM
getJSON in CI problem - by El Forum - 10-10-2008, 08:46 AM
getJSON in CI problem - by El Forum - 10-10-2008, 10:21 AM
|