Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Refreshing a IFrame on an ASP page

Posted on 1998-11-06
3
Medium Priority
?
175 Views
Last Modified: 2010-04-09
I have several Iframes on an asp page. Upon the running of another asp file I want to refresh an existing iframe without refreshing the entire page. I need an example of code to do this.
0
Comment
Question by:dbishop
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 

Author Comment

by:dbishop
ID: 1839411
The iframe I need to refresh makes calls to a database so thats why I need it the refresh.
0
 
LVL 28

Accepted Solution

by:
sybe earned 800 total points
ID: 1839412
You must use client side scripting (javascript) for that.
In the ASP that is being run, put some javaascript code that will reload the Iframe:

<script>
parent.IframeName.reload();
</script>

note that "reload()" does not work with IE3. If you want it to work with IE3 also, then use:

<script>
parent.IframeName.document.location = parent.IframeName.document.location;
</script>


0
 

Author Comment

by:dbishop
ID: 1839413
Thanks,
You saved me alot of time.

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question