Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Newbie: Refresh contents of a div or table cell

Thread Tools

Newbie: Refresh contents of a div or table cell

Posts: n/a
The page uses divs to create columns for the navigation bars. In the far
left column will be the main links(one for each module that I'm working on).
In the middle column I want to have links for the subheadings. In the right
hand column I have a scrollable region.

I want to make it so that when I click on one of the subheadings I can load
new content into the scrollable region. (without opening a whole new page)
somehow make it so that when you click on the link it moves the scrollable
content to the target area. (I have already tried linking to an anchor point
in the scrollable text, but to no avail)

I am new to this so please forgive me. If anyone has any ideas or could even
point me in the right directions I would appreciate it greatly.


Reply With Quote
Posts: n/a
Forgot to include a link to the page. oops.


Reply With Quote
Vincent van Beveren
Posts: n/a
Hi Dave,

What you are looking for are IFRAME's. Thats the easiest, I think.

for example:

<IFRAME id="myFrame" STYLE="width:400px;height:300px"></IFRAME>


function changeIFrameSRC() {
document.getElementById("myFrame").src='index2.htm l';


Good luck,

Reply With Quote

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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
<div ... /> and <div ...></div> K Viltersten ASP .Net 4 03-31-2009 07:33 PM
possible viewport question, need to control what portion of div contents appear when overflow:auto and too much content in div Jake Barnes Javascript 1 09-05-2007 11:00 PM
NS/FF don't change div offsetWidth when div innerHTML is added toand div becomes wider mscir Javascript 3 06-26-2005 04:04 PM
Q: Div A inside Div B is larger than Div B Dwayne Madsen Javascript 1 06-01-2005 03:02 PM
Creating a CSS class to use in DIV to affect all contents of the DIV??? Some One HTML 5 08-09-2003 03:12 PM