passing variables between VBScript & Javascript??Help!!

Results 1 to 2 of 2

Thread: passing variables between VBScript & Javascript??Help!!

  1. #1
    Join Date
    Dec 1969
    Posts
    465

    Default passing variables between VBScript & Javascript??Help!!

    I have queried for a field Z using VBScript on server side, and i want to increment Z onclick of a button on the same page using Javascript and then update the database with new value of Z using VBS at server again. Any ideas on how this is possible?? PLease Help!!!

  2. #2
    Manpreet Guest

    Default RE: passing variables between VBScript & Javascript??Help!!

    Try this i think it will work...<BR><BR>onClick event of the button call a function like..<BR><BR>&#060;input type="button" onclick="increment()"&#062;<BR><BR>the function would look like<BR><BR>function incremnet(){<BR>&#060;%<BR> yourvarZ = yourvarZ + 1<BR>%&#062;<BR>}<BR><BR>basically the function does not do anything but it&#039s a way around the situation i guess.<BR><BR>make sure the above is "input type=button" and not "submmit"<BR><BR>use the "submit" to update the db<BR><BR>enjoy!<BR><BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •