Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > General Computer Discussion > Software > How to load Two iframe in one aspx page?

Reply
Thread Tools

How to load Two iframe in one aspx page?

 
 
pratima pratima is offline
Junior Member
Join Date: Jan 2008
Posts: 1
 
      01-19-2008
I have page LotteryResultPage.aspx .
And i have one control which has drop down and value is like this
<option value="SelectStates">Select a Country</option>
<option value="3">US,Canada,U.K.& Ireland </option>
<option value="8">Mexico</option>

control has GO buttonwhich calls javascript function and passes the parameter value like this LotteryResultPage.aspx?country=



I need to load two iframe in the page LotteryResultPage.aspx. but when country value is 3 load iframe which has src = iframe/lottery_results.html

and when country value is 8 load another iframe src = iframe/lottery2.html .

I don't want tboth iframe source at a same time in the page.



Or in shortcut,
Load iframe in aspx page according to the querystring value
if LotteryResultPage.aspx?country=3
load iframe 1

if LotteryResultPage.aspx?country=8
load iframe 2

thanks
 
Reply With Quote
 
 
 
 
ProgTalk ProgTalk is offline
Junior Member
Join Date: Dec 2007
Posts: 28
 
      02-02-2008
you can hide any of the two frames using javascript. Here is an example:

function hideframe(frameid)
{
var fr = document.getElementById (frameid);
fr.style.display = 'none';
}

function showframe(frameid)
{
var fr = document.getElementById (frameid);
fr.style.display = 'block';
}

bought to you courtesy of www.progtalk.com
 
Reply With Quote
 
 
 
 
ProgTalk ProgTalk is offline
Junior Member
Join Date: Dec 2007
Posts: 28
 
      02-02-2008
try to hide the iframe

document.all["IFRAMEID"].style.display = 'none';
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Two Browsers work! Two browsers won't load. Internet game service won't load jimmie Computer Support 1 02-26-2006 08:36 AM
How do we load page into iframe when not on iframe page? Paul Javascript 3 07-04-2005 06:59 AM
wait for one IFRAME to load before loading a second IFRAME Mel Javascript 1 06-08-2005 02:31 PM
Get form values from iframe (1) to iframe (2) inside a layer in iframe (1) Daedalous Javascript 3 01-16-2004 11:08 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57