HighDots Forums  

Re: multiple parameters in function

Javascript JavaScript language (comp.lang.javascript)


Discuss Re: multiple parameters in function in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
jodleren
 
Posts: n/a

Default Re: multiple parameters in function - 07-02-2008 , 05:05 AM






On Jul 2, 12:04*pm, jodleren <sonn... (AT) hot (DOT) ee> wrote:
Quote:
Hi

I want to pass one or two parameters to a function, such as

* function OpenDirSel(input, user)
* {
* }

The point: it does not work with 2 parameters, why?
Is there a way, that I can make the 2nd parameter optional?
Like in
<input name="btn_dir1" type="button" value=" ... "
onclick="OpenDirSel(dir1.value, 'test');">


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.