DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Function with variables

  1. #1
    Join Date
    Jul 2006
    Location
    Manchester
    Posts
    15

    Function with variables

    Hi there

    In my ajax documentI've got a the following function: function msilget(str).
    I use the following code to run that function:
    onClick="msilget(txtref.value,switch.value)"

    The problem is I need to sent two variables now instead and I thought it was strait forward. I've done the following but is not working:
    function msilget(str, str2)
    onClick="msilget(txtref.value,switch.value, tetref2.value)"

    Any ideas please?

  2. #2
    Join Date
    Oct 2005
    Location
    Maady
    Posts
    1,819
    Quote Originally Posted by jonyBravo
    I use the following code to run that function:
    onClick="msilget(txtref.value,switch.value)"
    how come? this code is calling a two parameters argument function not this:
    Quote Originally Posted by jonyBravo
    function msilget(str).
    and the last call statement need a 3 arguments function.
    Programmer&Cracker CS
    MyBlog:Blog.Amahdy.com
    MyWebsite:www.Amahdy.com

  3. #3
    Join Date
    Jul 2006
    Location
    Manchester
    Posts
    15
    Thanks Amahdy, I've seen what I was doing wrong.

  4. #4
    Join Date
    Jun 2008
    Location
    Sydney Australa
    Posts
    7

Similar Threads

  1. comparing function pointers [was: typedef problem]
    By swapnil_paranja in forum C++
    Replies: 20
    Last Post: 08-25-2005, 03:54 PM
  2. Replies: 8
    Last Post: 03-08-2003, 07:25 PM
  3. Replies: 0
    Last Post: 04-26-2001, 10:01 PM
  4. calling ping thru vb
    By Michael Shutt in forum VB Classic
    Replies: 6
    Last Post: 04-05-2001, 02:25 AM
  5. How do I detect an FTP timeout?
    By Julian Milano in forum VB Classic
    Replies: 0
    Last Post: 08-10-2000, 09:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center