Coldfusion ajax returns unmanaged content with jquerymobile

I am following the Ray Camdens post about ajax calls in coldfusion. I have a whole page wrapped by jquerymobile and themeroller. If I placed the content on the main page, its style was correct, but if I use ajax to return the content, it will be unstable.

Unstyled

I tried to include jquery and jquerymobile scripts on the ajax page, but then I get weird loops and double submit buttons. In firebug, I see that it loads js files in return ajax. I also lose focus on the submit button, which is a big deal in this particular application.

Styled and odd

jquery jQuery js js, , ajax? FOUC?

+3
1

. $( "# result" ). html (data).trigger( "create" );

+1

All Articles