Hi Prajwala,

thanks for your feedback!

displayData(); ist not the problem as far as I've figured out, since
it's not even executed. The problem is that displayData() is not
called, even though the Ajax Request was executed successfully. Thanks
to you "debugger" hint I was able to pinpoint the problem a bit
further:

The form, along with it's jQuery code ist not present within the page
as it loads. Rather the whole code (form & jQuery stuff) is loaded via
an Ajax request later on, as a single HTML part within the page is
exchanged with the form. After loading the form the success callback
won't be triggered, even though the jQuery.ready(); stuff is executed.
onBeforeSubmit() callbacks won't work either under this specific
circumstances.

When reloading the page, all the contents are already present at load
time, causing the whole thing to work without any problems. So the
problem is somehow related to using jQuery().ready() when loading html
fragments using Ajax after the whole page has finished loading.
Whew... any hints someone?

Thanks for your effort!
Greets,
Clemens

Reply via email to