tags:

views:

35

answers:

1

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?

+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
Plain Ajax can't do cross-domain requests which is a notable downside to this
Pekka