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?
Asked
Active
Viewed 190 times
0
-
2Can you use something on server side (PHP / ASP / Server side includes)? – Pekka Oct 18 '10 at 19:13
-
1possible duplicate of [Equivalent of include() in HTML](http://stackoverflow.com/questions/3928331/equivalent-of-include-in-html) – Pekka Oct 18 '10 at 19:15
-
1Here's another with what looks like better answers: http://stackoverflow.com/questions/2336569/include-one-html-file-in-another-html-file – Pekka Oct 18 '10 at 19:16
-
1And here's one with a PHP answer: http://stackoverflow.com/questions/1616834/including-dynamic-html-with-php – Pekka Oct 18 '10 at 19:16
1 Answers
1
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
- 87,846
- 14
- 132
- 192
-
Plain Ajax can't do cross-domain requests which is a notable downside to this – Pekka Oct 18 '10 at 20:43