Welcome Guest, Not a member yet? Register   Sign In
jquery with forms
#11

[eluser]A.M.F[/eluser]
[quote author="thepyromaniac" date="1203286407"]Just play the debug game, echo it in the controller, print_r($_POST), keep going until you find where its showing as NULL then you have your answer.

The code you posted cant be all your controller, as you have the code <?=$this->obj->validation->content?> in your view, which would suggest you are validating this somewhere and I see no validation here.[/quote]

i can't echo anything in the controoler because it right away going to the view file from the ajax.

and u don't see the validation call, cuz i am doing something like this:
i have my controller, which there i load my libraries and in there i have my own comments library.

in the comments library i have some functions that includes printing the comment form.

from my view i call to this printing function.

without the ajax it works perfect but when i pumped it up with ajax, it started to mess up a little bit... S:

any suggestions?
#12

[eluser]Phil Sturgeon[/eluser]
Force your If check to make it think its not via isAjax. Test that post gets there alright, if it does get there then its something else.

If you can debug it yourself with clever quickswitches then try using Firebug as that will show you exactly what is coming back from Ajax requests, that way you can output anything and the AJAX responce will help you debug.




Theme © iAndrew 2016 - Forum software by © MyBB