Friday, February 11, 2011

Re: Putting bootstrap js in host page

Take a look at the new google groups as an example of what you are saying :). The default Linker (IFrameLinker) sets things up to start with a js file, then load the strongly named html file into an iframe. Additional linkers include building for running as a google gadget, and you can define your own as well.

Copy paste will not work as is for the reason you mention, specifically because the bootstrap script looks for its own script tag, and checks the src attribute, which in your case will be empty.

Also worth pointing out that a document.write call is used to add the iframe to the page - there are other cases where this can cause problems, such as when you start a module after the page has loaded.

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate