468,556 Members | 2,371 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,556 developers. It's quick & easy.

How to publish external content in a div

Hi,

I've got a web page that's a work in progress (it's only got dummy
data displayed) at http://home.comcast.net/~CaptQueeg/A...nMenuTest.html

When I click on any menu item, the referenced item is displayed on
the current window. Using be back button, will allow me to select
another item and repeat the cycle.

As I recall, years ago I was able to direct that extenal content to a
frame on the currently displayed page. Now I've got a div that's got
the additional data displayed.

Is feasible to replace that div's innerHTML with the selected content
using scripting? Is there a CSS mechanism that would be helpful?

Thanks in advance,
Richard

Aug 21 '07 #1
2 3949
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>

Aug 22 '07 #2
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

Aug 22 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by anas.sal | last post: by
5 posts views Thread by NoNickname | last post: by
4 posts views Thread by Mike L | last post: by
reply views Thread by Open Publish 2007 | last post: by
reply views Thread by Open Publish 2007 | last post: by
reply views Thread by Open Publish 2007 | last post: by
1 post views Thread by spig.marco | last post: by
3 posts views Thread by nahum_barnea | last post: by
1 post views Thread by UniDue | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.