On Aug 22, 8:06 am, Andy Dingley <ding...@codesmiths.comwrote:
On 22 Aug, 00:05, RichardOnRails
<RichardDummyMailbox58...@USComputerGurus.comwrote :
Is feasible to replace that div's innerHTML with the selected content
using scripting?
Just use an <iframe>
Hi Andy,
Thanks for responding.
I agree that Frames would work. I've used Frames successfully in the
(distant) past for this purpose. But I haven't written much HTML and
only started studying this stuff seriously about a month ago. I'm
adopting the philosophy expressed in Wikipedia, which says (in
http://en.wikipedia.org/wiki/HTML_element#Frames):
<QuoteThe use of presentational markup is discouraged. The
equivalent CSS should be used instead. Deprecated elements are only
valid in the Transitional and Frameset variants of HTML 4.01 and
XHTML1.0. They are invalid in the Strict variants of HTML 4.01,
XHTML1.0 and XHTML 1.1. <b>...</band <i>...</iare invalid in the
current draft of XHTML2.0.
</Quote>
Nevertheless, W3Schools (in
http://www.w3schools.com/tags/default.asp)
says frames are valid HTML 4.01, i.e. they have not been deprecated.
But I'm trying to adhere to the concept that HTML is for content, CSS
is for presentation, and JavaScript is for dynamic presentation.
My long-range goal is to use Ruby on Rails for website development,
and RoR uses AJAX for this kind of stuff. I feel I have to get a
handle on the underlying the underlying technology I just mentioned.
I think AJAH suits my purpose.
Best wishes,
Richard