Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old August 22nd, 2007, 12:15 AM
RichardOnRails
Guest
 
Posts: n/a
Default 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

  #2  
Old August 22nd, 2007, 01:15 PM
Andy Dingley
Guest
 
Posts: n/a
Default Re: How to publish external content in a div

On 22 Aug, 00:05, RichardOnRails
<RichardDummyMailbox58...@USComputerGurus.comwrote :
Quote:
Is feasible to replace that div's innerHTML with the selected content
using scripting?
Just use an <iframe>

  #3  
Old August 22nd, 2007, 02:15 PM
RichardOnRails
Guest
 
Posts: n/a
Default Re: How to publish external content in a div

On Aug 22, 8:06 am, Andy Dingley <ding...@codesmiths.comwrote:
Quote:
On 22 Aug, 00:05, RichardOnRails
>
<RichardDummyMailbox58...@USComputerGurus.comwrote :
Quote:
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

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles