Solved

How to reload a iframe clicking on a link

Posted on 2011-03-22
3
281 Views
Last Modified: 2012-05-11
Hello,

I have an asp page that loads a iframe. In my page there is a list of items and I want to reload the iframe and to pass a paremeter to it when user clicks over one of these items.

The fact is in that iframe I load especifications of the main item, so I need to pass and id parameter to identify which characteristics I have to show (I take it from a table using asp).

I hope I've explained well. Thanks a lot in advance.

Kind regards.
0
Comment
Question by:starbase2
3 Comments
 
LVL 82

Expert Comment

by:leakim971
ID: 35188758
For example :
<a href="javascript:void(0)" onclick="document.getElementById('IFrameID').src = 'http://www.address.com/page.ext?rnd=' + (new Date().getTime())" >Reload</a>

Open in new window

0
 
LVL 9

Expert Comment

by:Roman Gherman
ID: 35188779
Hi,

Put the following in the loaded page:
<head>
<meta http-Equiv="Cache-Control" Content="no-cache">
<meta http-Equiv="Pragma" Content="no-cache">
<meta http-Equiv="Expires" Content="0">
</head>

Open in new window

0
 
LVL 17

Accepted Solution

by:
Shinesh Premrajan earned 500 total points
ID: 35188788
<a target="framename" href  "mainmenu.asp?id=1&item2" >menu items</a>

Framnname should be replaced with the appropriate frame name that you are using.

Hope this helps
0

Featured Post

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help with query 3 25
Query still returning duplicates 5 30
Increase the size of the modal in Bootstrap 5 27
Mobile page Scrolling down when refreshing 4 32
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

777 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