Solved

How to reload a iframe clicking on a link

Posted on 2011-03-22
3
284 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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 article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
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…

726 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