Go Back   Velocity Reviews > General Computer Discussion > Software
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
Old 01-19-2008, 04:12 AM   #1
Default How to load Two iframe in one aspx page?


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


pratima
pratima is offline   Reply With Quote
Old 02-02-2008, 03:15 AM   #2
ProgTalk
Junior Member
 
Join Date: Dec 2007
Posts: 29
Default
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


ProgTalk
ProgTalk is offline   Reply With Quote
Old 02-02-2008, 03:17 AM   #3
ProgTalk
Junior Member
 
Join Date: Dec 2007
Posts: 29
Default
try to hide the iframe

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


ProgTalk
ProgTalk is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
print all the contents of the iframe lebohang The Lounge 0 03-04-2009 07:50 AM
Printing all contents of Iframe lebohang Software 0 03-04-2009 07:35 AM
how to access iframe from an aspx page eyal1234 Software 1 07-22-2008 10:57 AM
Dynamic Iframes Memory Leak In Internet Explorer cdmsenthil@gmail.com Software 0 03-28-2008 04:11 PM
IFRAME and Video stunbunny General Help Related Topics 0 12-03-2007 06:26 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

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