Solved

How to reload a iframe clicking on a link

Posted on 2011-03-22
3
279 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:
shinuq 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)

947 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

23 Experts available now in Live!

Get 1:1 Help Now