Go Back   CodingForums.com > :: Client side development > JavaScript programming > DOM and JSON scripting

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-12-2009, 03:26 PM   PM User | #1
curiousmen
New to the CF scene

 
Join Date: Feb 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
curiousmen is an unknown quantity at this point
How to change values in a function MM_goToURL()

I currently have the following:
function MM_goToURL() { //v3.0
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

How do I change the above function to take the value from the selected option below:

<form id="form2" name="form2" method="post" action="">
<select name="select2" class="style11" id="select2" onchange="MM_goToURL('parent.frames[\'mainFrame\']','../FlashSlideShows/Famille_Joseph_Aurore/Flash_WEB/Al_Noella.html');return document.MM_returnValue">
<option value="Null">Please Select SlideShow</option>
<option value="../FlashSlideShows/Famille_Joseph_Aurore/Flash_WEB/Joseph_Aurore.html">Joseph</option>
<option value="../FlashSlideShows/Famille_Joseph_Aurore/Short_Version/Famille_Leblond.html">Familly Photos</option>
</select>
</form>

Last edited by curiousmen; 02-12-2009 at 03:34 PM..
curiousmen is offline   Reply With Quote
Old 02-12-2009, 04:38 PM   PM User | #2
gun5
New Coder

 
Join Date: Feb 2009
Location: Jakarta, Indonesia
Posts: 93
Thanks: 2
Thanked 20 Times in 20 Posts
gun5 is an unknown quantity at this point
Code:
<select name="select2" class="style11" id="select2" onchange="MM_goToURL('parent.frames[\'mainFrame\']',this.value);return document.MM_returnValue">
gun5 is offline   Reply With Quote
Old 02-12-2009, 09:25 PM   PM User | #3
curiousmen
New to the CF scene

 
Join Date: Feb 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
curiousmen is an unknown quantity at this point
Thanks gun5 much appreciated.
curiousmen is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 10:00 AM.


Advertisement
Log in to turn off these ads.