Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Display Web Page in DIV tag

 
Steve Dyke
Ranch Hand
Posts: 1602
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know this is probably a "not so smart" question but I want to display a web page(http://XXX) in my DIV tag on initial start up. It is an internal Quality Assurance App and I want to display the Quality Statement in the body of my page on app start up. I want to link it to the source so if it changes I will have the latest rev automatically.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
c:import? Ajax?

I'm not sure what you mean by "linking it to the source"... wouldn't you be deploying the latest JSP/whatever with your app? How would that not be getting the latest?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64196
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't. It is not valid to insert a full web page (I assume you mean including <html> tags and all) inside the DOM of another.

If it's an HTML fragment that could normally appear within a <div>, that's fine. Otherwise, you'll need to use an <iframe>.

You could use an interval timer to periodically update either approach.

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic