Thursday, January 28, 2010

Re: Submit form data with ajax helper only work when the debug is on

I've spent sometime to investigate the issue, here is my script in
html source

//<![CDATA[
jQuery('#form56388588').submit( function() {
jQuery('#form56388588').ajaxSubmit({
beforeSend:function(request) {
request.setRequestHeader('X-Update', 'myicons');},
success:function(data, textStatus) {
jQuery('#myicons').html(data);}, async:true, type:'post',
url:'/mysite/markers/add'}); return false;});
//]]>

Please be noted that when debug is on and off the html source is
exactly the same but come up with different result
When debug is off the "data" in sucess function is empty, while i can
see sth when debug is on

This is view page name add.ctp which is under the control of my
MarkerController.

I'm suffering from it for 3 days, can anyone help?

On 1月27日, 下午12时51分, Jeruliu <jeru....@gmail.com> wrote:
> As captioned, this is very strange that i can't figure it out till now
>
> But it's true that the database table only got refreshed when i set
> the debug to on.
>
> Nothing will be inserted into the table when debug is off.
>
> Does anyone have any idea what's going on with cakephp debug? PLS PLS
>
> Many thanks.

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: