Solved

Refreshing a IFrame on an ASP page

Posted on 1998-11-06
3
166 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 200 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

Industry Leaders: 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

Suggested Solutions

Title # Comments Views Activity
custom authorization on controller action and HTML in asp.net mvc 1 45
Bootstrap 3 - Style a dropdown 1 27
Popup write two lines 3 22
Calculating percentage 2 30
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
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…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

733 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