![]() |
|
|
|
#1 |
|
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 |
|
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Dec 2007
Posts: 29
|
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 |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Dec 2007
Posts: 29
|
try to hide the iframe
document.all["IFRAMEID"].style.display = 'none'; ProgTalk |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
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 |