[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How to reload a iframe clicking on a link

Posted on 2011-03-22
3
Medium Priority
?
288 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 83

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 2000 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

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. …
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

865 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