jquery - Broken DOM in IE and FF after Ajax call -


i strange behaviour of ie , ff while perfoming ajax callm; chrome works expected me ;)

in grails use <g:formremote/> tag results in following code :

<form onsubmit="jquery.ajax({type:'post',                              data:jquery(this).serialize(),                              url:'/url/morurl',                              success:function(data,textstatus){},                              error:function(xmlhttprequest,textstatus,errorthrown){}                              complete:function(xmlhttprequest,textstatus){performaction(xmlhttprequest)}                             });return false"        method="post"        action="/url/morurl"        name="tmpform"        asynchronous="false"        id="tmpform">` 

in all tested browsers ajac call done , reached complete:function(xmlhttprequest,textstatus){performaction(xmlhttprequest)} callback performs also. after ff , ie doing weird , skipping whole dom modell simple "false" left content.

i figured out, return false appended ajax call <form onsubmit="jquery.ajax({ ... ... });**return false**"is responsible behaviour.

the return false appears in of ajax calls here leads freekin result.. ajax call returns json new html inside used replace div layer inside performaction(xmlhttprequest) callback.

any ideas why ie , ff doing strange thing?

has comparable problem? and/or working solution?

regards,

alex

it turns out link submitting form using href=javascript:tmpform.onsubmit(); notation.

ie , ff took string "javascript:tmpform.onsubmit();" new document url , validated (posting result new content) while chrome executed js....

seems failure ;)


Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -