Log in

View Full Version : Clientside ONCLICK excute both click cmd one after the other



ismailc
10-13-2009, 07:47 AM
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

jscheuer1
10-13-2009, 08:06 AM
This could depend upon other issues with your code. But from what little you have shown, I would try this:


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:


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

ismailc
10-13-2009, 08:23 AM
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'>"