Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Javascript jQuery
Hi Guys,
 
I have a php page in which 6 iframes(f1, f2, f3, f4) in f1 there are 2 iframes(f11, f12).
I want to switch from f11 to f2. I am not able to do that.
Kindly suggest me.
 

Thanks!!
Posted 12-Jul-13 6:45am
Comments
ryanb31 at 12-Jul-13 11:52am
   
What have you tried and where are you stuck? What do you mean by switch from f11 to f2?
Sumit Kumar Singh India at 12-Jul-13 12:25pm
   
Means i have a button in page2.php which is src of f11 iframe( its a inner iframe of f1 iframe), requirement is that onclick of button f2 iframe should be active
ryanb31 at 12-Jul-13 12:28pm
   
Active? As in the if the user clicked the frame? Did you google for jquery activate iframe?
Sumit Kumar Singh India at 12-Jul-13 12:55pm
   
Now i am able to get iframe using this code
var frm1 = window.parent.window.document.getElementsByTagName("iframe");
 
but still not able to activate iframe.
ryanb31 at 12-Jul-13 12:58pm
   
Perhaps you can explain why you want it activated.
Sumit Kumar Singh India at 12-Jul-13 14:03pm
   
I have 4 div as a tab each div has a iframe. First iframe contains two another iframe. I want make active 2 tab(f2) from inner iframe.
ryanb31 at 12-Jul-13 14:24pm
   
I still can't visually see what you are talking about. Perhaps you could use jquery ui's tabs.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 370
1 Sergey Alexandrovich Kryukov 329
2 BillWoodruff 235
3 Afzaal Ahmad Zeeshan 209
4 CPallini 195
0 OriginalGriff 5,560
1 DamithSL 4,476
2 Maciej Los 3,942
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,175


Advertise | Privacy | Mobile
Web02 | 2.8.141216.1 | Last Updated 12 Jul 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100