Solved

Refreshing a IFrame on an ASP page

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Why isn't the "Select Name" showing on this form drop down 4 29
Using jQuery to set a DIV attribute on page load 9 29
HTML &#0153 2 17
Select case on click 3 13
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
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 embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

813 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now