Results 1 to 3 of 3

Thread: Clientside ONCLICK excute both click cmd one after the other

  1. #1
    Join Date
    Dec 2007
    Posts
    88
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question Clientside ONCLICK excute both click cmd one after the other

    Good day, I need help Please

    I'm coding within a VBScript window and executing a javscript clientside.

    The problem i have the below code ONCLICK executes the first click "Done.click()" only and not the second click "___Submit.click()"
    [code:]
    fcLabel = "<INPUT type=button value='Process Data' onclick=Done.click(); ___Submit.click() language='javascript'>"
    [/code:]
    It works when i only have one click within the ONCLICK but not two.

    I tried ";" "," " " behind the first click "Done.click()"

    Please Assist on getting to click both one after the other!

    Regards

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    This could depend upon other issues with your code. But from what little you have shown, I would try this:

    Code:
    fcLabel = "<INPUT type=button value='Process Data' onclick='Done.click(); ___Submit.click();' language='javascript'>"
    Also, in general the language attribute shouldn't be required here, so I'd even try it like so:

    Code:
    fcLabel = "<INPUT type=button value='Process Data' onclick='Done.click(); ___Submit.click();'>"
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    ismailc (10-13-2009)

  4. #3
    Join Date
    Dec 2007
    Posts
    88
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Wink

    It works great, Thank You very much.
    Also great response time

    fcLabel = "<INPUT type=button value='Process Data' onclick='VE10999Done.click(); ___Submit.click();' language='javascript'>"

Bookmarks

Posting Permissions

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