Does anyone see why my jquery ajax call is not posting? |
[eluser]Bart v B[/eluser]
Hello all, I have a problem with my ajax call. He does not post to my controller where I should get an output. someone might see what I overlooked? a simple print_r ($ _POST) gives an empty array. When I request him to the controller I get the proper value back. My jquery code: Code: $(document).ready(function() { My form code: Code: <fieldset> my controller Code: <?php So in short i don't get anything back from jquery. thx for the help.
[eluser]Bastian Heist[/eluser]
I remember having issues with this as well, have you tried using jquery.post() instead of jquery.ajax() ?
[eluser]Bart v B[/eluser]
I think i solved the problem.. Code: $(document).ready(function() { It seems like jquery uses an array from the data so i had to put item= as reference.
[eluser]danmontgomery[/eluser]
This is covered in detail in the jQuery documentation. http://api.jquery.com/jQuery.ajax/
[eluser]Bart v B[/eluser]
@Noctrum. Your right. Found figured it out from the manual. As alway's first try and then read the manual. I had the function working a couple of weeks ago, but mij development pc had some weird problems. I did an system restore and this function was gone without backup. So i had a big panic last night and this morning. |
Welcome Guest, Not a member yet? Register Sign In |