Essentially I have lots of small urls with parameters. a requirement is for users to be able to generate reports by coding their own html page with their own layout. The reports won't be dynamic so I don't want to use Ajax. Are iframes the only way?
views:
35answers:
1
+1
A:
AJAX doesn't require that the report be dynamic. You can go get the HTML and then set the innerHTML of a tag with the result. If there were a hypothetical tag like
<remotediv src="..."></remotediv>
It would pretty much do the same thing as this.
I believe that javascript in the HTML set to innerHTML won't run -- which might be the desired effect.
Lou Franco
2010-10-18 19:22:41
Plain Ajax can't do cross-domain requests which is a notable downside to this
Pekka
2010-10-18 20:43:37