Current location: Hot Scripts Forums » General Web Coding » JavaScript » JavaScript command to refresh IFrame Content


JavaScript command to refresh IFrame Content

Reply
  #1 (permalink)  
Old 01-18-05, 01:44 PM
Thomas Walker's Avatar
Thomas Walker Thomas Walker is offline
New Member
 
Join Date: Jan 2005
Location: Tennessee, USA
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
JavaScript command to refresh IFrame Content

Hi everyone!

I have a page that I developed in JavaScript (Page 1) and placed it into an IFrame of another page (Page 2). Currently, when I perform JavaScript functions in Page 1 that refreshes the page, it refreshes Page 2. I need ONLY page 1 to refresh and leave page 2 alone.
To provide a little more info... the reason for my question is that I have developed a page this going to be a module with in a portal. The problem is that the module is refreshing the entire portal page. I only want it to refresh the content of my JavaScrip module itself.
I hope someone can help.

Here is the code I have used so far:

window.location.reload( false );
parent.location.reload();

Both seam to refresh the parent page and not the IFrame page.
Thanks,
Tom
Reply With Quote
  #2 (permalink)  
Old 01-18-05, 05:35 PM
Thomas Walker's Avatar
Thomas Walker Thomas Walker is offline
New Member
 
Join Date: Jan 2005
Location: Tennessee, USA
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Disregard - I found the solution.

I found the solution.

In case anyone else has this question...

The solution was this:

x = top.frames['name of frame'].location = "file to load in frame"

I just specified the existing page in the 'location='. This reloaded the content of the frame.

-Thomas
Reply With Quote
  #3 (permalink)  
Old 05-05-05, 10:06 AM
FaithWarren FaithWarren is offline
Newbie Coder
 
Join Date: May 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
HELP WITH iFRAMES

OK, so I am trying to make an iframe change the parent page and display the new information in the iframe.

For instance, I have some tabs:

Tab 1, Tab 2, Tab3

When I am in Tab 1, with iframe1, I want a link in iframe1 to make the parent page Tab2, but display the information passed in the link.

Does this make any sense?

Tab1.asp
iFrame1
Link in iFrame1 to iframe2 in Tab2.asp

Tab2.asp
iFrame2
parameters passed in link from iFrame1 to make HTML in iFrame2 display a certain record

How can I do this with javascript, or anything for that matter? I am using asp pages right now, but would prefer to use javascript

I am using iframes because I am taking alot of different applications and making them all work in one framework.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
linking to both iframe content and parent page vman2957 HTML/XHTML/XML 5 12-02-06 12:49 AM
Error On Registeration timmy408 ASP 2 09-05-04 02:53 PM
forcing an iframe to scrolldown as it gets filled with content davidklonski JavaScript 2 07-20-04 08:27 AM
Javascript and content feeds marakkesh JavaScript 0 07-02-04 04:21 AM
javascript refresh and show only after refresh completed bonefry JavaScript 7 06-03-04 04:25 AM


All times are GMT -5. The time now is 10:41 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.