473,573 Members | 2,780 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

newbee function call question...

Mel
I have a selection box with 3 values. what i need is to pass 3 urls to
a function that has a switch statement and based on the selection
index goes on one of the tree urls.

Question is how do i pass these three urls to the function i already
have ? The list size may change and does not necessary have to remain
as 3

thanks for lifting a newbee to greater heights

Apr 5 '07 #1
2 1409
Mel wrote on 05 apr 2007 in comp.lang.javas cript:
I have a selection box with 3 values. what i need is to pass 3 urls to
a function that has a switch statement and based on the selection
index goes on one of the tree urls.

Question is how do i pass these three urls to the function i already
have ? The list size may change and does not necessary have to remain
as 3

thanks for lifting a newbee to greater heights
Show your code so far, keeping it simple,
most of us in this NG are not in the business of free programming.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Apr 5 '07 #2
On Apr 5, 1:31 pm, "Mel" <MelHer...@gmai l.comwrote:
I have a selection box with 3 values. what i need is to pass 3 urls to
a function that has a switch statement and based on the selection
index goes on one of the tree urls.

Question is how do i pass these three urls to the function i already
have ? The list size may change and does not necessary have to remain
as 3
<select onchange="runFu nc(this)">
<option value="http://web.address1.co m"Go to URL 1</option>
<option value="http://web.address2.co m"Go to URL 2</option>
<option value="http://web.address3.co m"Go to URL 3</option>
</select>

--
function runFunc(W){
window.location .href=W.value
}

Apr 9 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1642
by: Newbee Adam | last post by:
some said that .NET app can run on any program where rutime exists. What is "runtime" in this sense? will I have to install runtime or .net framework or .NET support on an xp machine for a .NET app to work? keep in mind I am a newbee :-) !! thanks --
4
1773
by: PerryC | last post by:
All, 1. Do the following codes seem ok? 2. If so, then how do I pull the value of YOE1 and YOE2 into my report? (to do some further calculations) ************************************************* Private Sub GroupHeader0_Format(Cancel As Integer, FormatCount As Integer) Dim YOE1 As Double
0
1398
by: valmir cinquini | last post by:
i'm developing a faq session of our website and I'm facing some problems handling xml files and DataSet relations First off all, here's the structure of my xml file: <?xml version="1.0"?> <questions> <topic order="1" title="General"> <item order="1" question="blablabla?"> <answer>blablabla</answer>
3
2295
by: Harry Whitehouse | last post by:
Hi! I've fired up my first Visual C++ .NET (Version 7) project and have made some nice progress. However, I'm now trying to call the familiar GetWindowsDirectory() API. When I'm laying in the code, the editor recognizes the function (it is prompting me for the proper parameters) but when I compile I get "Error 3861: ...
9
341
by: EMW | last post by:
I have created a page in aspx and after a click on a button, a new page should open. How is this possible? I tried it doing it like in vb.NET with opening a new form, but it doesn't work. rg, Eric
2
2289
by: Jonny | last post by:
Hiya all Using: ASP.NET Version 1.1 I am learning ASP.NET & would like to know:- How do I add a Open Browser Dialog behind a server button & validate a chosen file as a new e-mail attachment? How do I close an aspx window (client-side)?
3
2005
by: gimme_this_gimme_that | last post by:
I'm driving Windows XP and could use a tip on installing a function written in Java. 1. I created the a Java jar file, named UdfUtils.jar, from the Java source file shown below: 2. I copied the jar file to c:\Program Files\IBM\SQLLIB\FUNCTION 3. From the db2 command line I exectued call sqlj.refresh_classes() 4. I defined a function using...
4
2494
by: Christian Maier | last post by:
Hi After surfing a while I have still trouble with this array thing. I have the following function and recive a Segmentation fault, how must I code this right?? Thanks Christian Maier
2
1723
by: Rene | last post by:
Hello to all! I am a newbee to C++, I did a beginners' course, and now I am stuck with a strange problem. I have written the function that is pasted downwards. The peculiar thing is that when I sent the function the value "0", the .lst file is created properly (the vector I am using/saving is made up of structs of one AnsiString (using...
0
7753
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7991
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8187
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
5567
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5275
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3714
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3718
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1280
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1018
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.