HTML - Option Select & Iframe - Help Needed
I have an option list and an iframe. My goal is to change the target source for the iFrame when I select and option from the list. I'm able to do this with normal links like this
Code: <a href="video/video-page.html" target="VideoFrame">Video Page</a> But how can I do this with a option list? If i didn't plan on having 50+ different options I would just use normal links however this is not the case. Is it possible to do this? Similar TutorialsHello all, I have a stong question because i can't solve it. I want to creat a drop down list with images beside each row. Usualy on clasic html is something like this: select ... option value /option /select But i want a small image (icon) beside each option from select. See for example: http://www.scrigroup.com/afaceri/con...ate/index7.php on the top page see a clasic select. How can i change it to icon seclect on each option? Thanks for your effort to reply Hi: Problem with understanding/using the <select /> clause. I would like the page sent to the user (upon loading) to show the chosen location (i.e., a State of the USA) when I send an updated page with a specified 'Value' set: Here is an abbreviated portion of my Select Clause: <select name="homestate"> <option selected="selected" value="CA">Select State</option> /*note the 'CA*/ <option value="AK">Alaska</option> <option value="AR">Arkansas</option> <option value="CA">California</option> /* I want California to display */ </select> Note that my 'Value' above for the "selected" option is "CA" (for California). However, if I send this updated page to my user with *his* state as 'CA', it still shows as 'Select State' -- where I wish 'California' to display in the Select Default Box. Question: Is there some way that I can make the Select Clause bring up the word 'California' when it accesses the Value='CA' and so on with other 'value' choices ?? (or does this have to be done (somehow) with Javascript ?? Thanks for any guidance ! -Mel Smith Hi, I want to modify a form where I have some "select option" and input text tags. The thing is that when a user select an option from the "select opcion" tag, according to the option selected I want to print some input text in the form .. how can i do that?. Thks a lot! Hey all! I'm trying to set a predefined value in a <select> menu, that is to say, I want something to be highlighted before the user does anything. I've tried the following: <select name="test" size="2" value="x"> <option>x</option><option>y</option> </select> This does not work. Any advice would be great! Thanks for your time. hi guys, I have a form with HTML Code: <select name="myOnClick" onChange="DoSubmission()"> <option value="1">Year 1 </option> <option value="2">Year 2</option> <option value="5">Year 5</option> <option value="10">Year 10</option> <option value="25">Year 25</option> </select> when the user clicks on one of these, it refreshes the page and updates a variable somewhere bsaed on the value. However when it refreshes the value showing is always Year 1. I want it to show the option they have just clicked. Anyone know the code that allows you to choose which one shows up? I can then use php to script which one is selected. TIA Dear All, I find that I can do that in firefox, ie 9, but not ie 8 and ie 7. anyone knows the answer. HTML Code: <select id="resourceTypeTree" name="resourceTypeTree"> <script type="text/javascript">obj158= new Object;obj158.sid = 158;obj158.seq = 1;obj158.lv = 1;obj158.lvText = "首頁";obj158.upLvSid = 1;obj158.isShown = 1;obj158.isNetvigated = 1;obj158.url = "/cle/landingPage.php";obj158.remarks = "";obj158.lastUpdate = "2011-04-18 16:15:50";obj158.uiNextSeq = 0;obj158.nextSid = 160;</script> <option value="158" onclick=selectClick('tree',obj158); >→首頁</option> <script type="text/javascript">obj3= new Object;obj3.sid = 3;obj3.seq = 2;obj3.lv = 1;obj3.lvText = "語文學習基礎知識";obj3.upLvSid = 1;obj3.isShown = 1;obj3.isNetvigated = 0;obj3.url = "/cle/pages/webSiteReferenceList.php?sid=3&upLvSid=1";obj3.remarks = "";obj3.lastUpdate = "2011-04-18 16:28:05";obj3.uiNextSeq = 7;obj3.nextSid = 160;</script> <option value="3" onclick=selectClick('tree',obj3); >→語文學習基礎知識</option> <script type="text/javascript">obj10= new Object;obj10.sid = 10;obj10.seq = 1;obj10.lv = 2;obj10.lvText = "漢字形音義";obj10.upLvSid = 3;obj10.isShown = 1;obj10.isNetvigated = 0;obj10.url = "/cle/pages/webSiteReferenceList.php?sid=10&upLvSid=3";obj10.remarks = "";obj10.lastUpdate = "2011-03-16 13:46:44";obj10.uiNextSeq = 10;obj10.nextSid = 160;</script> <option value="10" onclick=selectClick('tree',obj10); >→→漢字形音義</option> <script type="text/javascript">obj38= new Object;obj38.sid = 38;obj38.seq = 1;obj38.lv = 3;obj38.lvText = "漢字的演變";obj38.upLvSid = 10;obj38.isShown = 1;obj38.isNetvigated = 1;obj38.url = "/cle/pages/webSiteReferenceList.php?sid=38&upLvSid=10";obj38.remarks = "";obj38.lastUpdate = "2011-03-16 14:25:54";obj38.uiNextSeq = 0;obj38.nextSid = 160;</script> <option value="38" onclick=selectClick('tree',obj38); >→→→漢字的演變</option> <script type="text/javascript">obj39= new Object;obj39.sid = 39;obj39.seq = 2;obj39.lv = 3;obj39.lvText = "字形的正體、俗體、異體";obj39.upLvSid = 10;obj39.isShown = 1;obj39.isNetvigated = 1;obj39.url = "/cle/pages/webSiteReferenceList.php?sid=39&upLvSid=10";obj39.remarks = "";obj39.lastUpdate = "2011-03-16 14:25:54";obj39.uiNextSeq = 0;obj39.nextSid = 160;</script> <option value="39" onclick=selectClick('tree',obj39); >→→→字形的正體、俗體、異體</option> </select> Regards, Man Pak Hong, Dave manpakhong@hotmail.com How do I get the selected item from a select option list? I dont need the value I need the text associated with the value. I can get the value with (in vbscript): strValue = .mylist.value Have searched google exhaustively to see how to do this simple thing but have found nothing. Thanks. I have some fields and a Select option, I want to add a new field if I select "Add" option, and remove field when I select "Remove" option, can I do it in very simple JavaScript? Hi, is it possible that, to make select option to allow user enter the text...? user can choose from select option.. if did not in the list, then user might need to enter text. Anyone can help me? I need to know how to code an Iframe for my website that doesn't reload when the rest of the page is or if the page is changed, like a locked second page below the changing one. This is NOT a professional website - it's just a crappy blogging portfolio project I have to do at Uni so please ignore the awful photoshopping. Basically I want to know if it's possible to add an iFrame on an image? I have dreamweaver CS5 and cannot for the life of me work out how to do it. My website is: www.chloieonline.com. Basically, if I use the image as a background, I can't work out how to align the frame PLUS it's quite a large background dimension wise. If I insert the image, I then cannot work out how to add the iframe on top on the image?! If anyone can help I'd be so grateful!! Hello. (: I am kinda new to the forum, and the web development. So... Don't be too harsh on me My problem: I have an iFrame page, with 5 iFrames "inside", named "news1", "news2" ect. What I want to do is, that when the 'page/main iFrame' loades, the 5 iFrames should load their content from a folder ("...\pages\news").. BUT! In that folder will be a lot of HTML files, numbered (1, 2, 3... ect.), and the iFrames should load the latest 5 HTML files. For example: There is 26 HTML files in the folder: "...\pages\news" -- news1.src = "...\pages\news\26.html" news2.src = "...\pages\news\25.html" news3.src = "...\pages\news\24.html" ECT.! Function Idea: When the page loades an integer will be dimmed ("INTcount") and the files should be counted in the ("...\pages\news") folder. The INTcount now equals the count og the files. Then: news1.src = "...\pages\news\" & INTcount & ".html" news2.src = "...\pages\news\" & INTcount -1 & ".html" news3.src = "...\pages\news\" & INTcount -2 & ".html" and you get the idea..I am a Visual Basic programmer, and I could easily do this in VB. But I need to code it in a SIMPLE way, using HTML, Java or ActiveX. CAN YOU PLEASE HELP ME?! Thank you and Best regards; -Martin Ok so im working on building this "anti-blocker" site for my school... hey its against the rules but its alotta fun to do.. im using proxies... Anyway, I have an iframe on the page and in there i have some quick links and the form for the proxy. You type the url into the form and hit "GO!!!!!" and it takes you through a proxy to your destination. I have recently uploaded my own proxy and it finally is working for me so I stuck it in the iframe like i have for the rest of the proxies i've used but theres a problem. When you type in the URL and hit "GO!!!!!!" it reloads the entire page with the index.php website instead of staying in the iFrame like I want it to. I have tried putting it in 2 iframes (just a spur of the moment idea) and I've tried putting target="index.php" codes everywhere i could think but it still didn't work. Maybe I shouldn't use iFrames but in the end I need it to be some information at the top and then in a square/frame thing I need the proxy website. I've looked into Ajax's browser within a browser thing but it needs to be less hightech and that looks REALLY confusing.. I hope someone can help me with this and here's the script for the index.php: http://erxz.com/pb/1949 Hey everybody, I've been wrestling with the classic iframe border issue in IE for the past couple of days and desperately need to know if I've cracked it (browsershots is just getting slower and slower these days..) http://www.eveningtweed.com/lauratest/home.htm Are IE users on PCs seeing a border around the iframe which contains the 'workworkwork' line? I've ensured the CSS for the iframe is correct (frameBorder=0 with the camel case) as well as setting a 0 border on the page loaded into the frame itself. Jez Hi, I have an html page with the following structu Code: <html> <head> </head> <body> <iframe> //some links here </iframe> <div> //something here </div> </body> </html> Now when I click on a link to a webpage inside the iframe, it loads the webpage inside that frame. How do I specify: 1) to load webpage in a different iframe from the one that contains the link 2) to load webpage in the "frame" that contains the iframe with the link, i.e. in this case: load the linked webpage instead of the page that contains the iframe with the link. I realise this is probably quite straightforward, but I'm new to this stuff. Could someone please help me out? Thanks! I have 2 IFrames on a page. I am going to end up with a long list of shows to catch-up on. Is there a way I can embed an IFrame with the list, and when you click on a show, you it will change the Playing Show http://tiny.cc/catchup <---The page I am referring to. hi, i've a very simple html page, where i have an iframe. The problem is that i want to add some text below the iframe. however, my text keeps showing up on the right hand side of the iframe. i've looked at the tutorials discussing the tags available for iframe, but surprisingly, none seem to relevant to this. Code: <html> <body> <table border="0" cellspacing="10"> <table border="0" cellpadding="0" cellspacing="0" align="left"> <td valign="top"> <iframe src="mySource.jsp" height="700" width="600" frameborder="0" scrolling="auto"></iframe> </td> </table> This should be displayed below the iframe but actually gets displayed on the right </body> </html> any help / guidance in this will be much appreciated. thanks in advance! Hi! I've been cracking my head trying to solve this: How can I insert a iframe [i.e. 300x200px] inside of another iframe [i.e. 700x500px] and pull different web content n each one? kind of concentric iframes or like a 'Donut iframe' Now here is my problem. I'm not familiar with other laguages then html and a little bit of javascript and I wanted to make a site for me and my brothers photography company. I currently using dreamweaver and have figured out the way I want to make this site. I tried using ordinary frames, but I want the website to be aligned in the middle and I could make that happen. That is why I went into iframes and a regular table on the index page. My problem now is that I have several iFrames and I want a link from one to open in another. http://www.trans4mind.com/personal_d...e/iframes3.htm here is a link for this to happen, and the simple solution is to name the frame and then target the link. but I have tried that and when the link is from one iframe to another it won't work. If the link is on the index page and target the iframe then it works. Do you have any idea why this happens? I know it's possible since the link above does it. |