Solved

Refreshing a IFrame on an ASP page

Posted on 1998-11-06
3
165 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
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Web forms being filled out by bots 4 50
need to fire confirm() popup window in IE using VBA 2 22
Html form and modal / img src -problem 3 29
html border input line 7 13
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…

840 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