Hi We're facing some inconsistency in "mouseup" event

Hi

We're facing some inconsistency in "mouseup" event of an image in user input task.

We've a submit button on the form with id "button1"
We're trying to call click event of this button on mouse up of the image.
We're using the following javascript code to achieve this.

getObject("button1").parentNode.firstChild.click();

We've also imported the js file using following code on load event of user input task

importScript("/plugins/servlet/FormsExt.js");

Please find attached the error message we're getting and let us know necessary modifications required.

Thanks,
Sandeep...

OriginalPostID-104589

OriginalPostID-104589

  Discussion posts and replies are publicly visible

Parents
  • Have you tried putting the following statement in your code and use the F12 key to launch IE Developer Tools and through the Scripting tab debug this issue?

    I see you already tried

    setTimeout(function(){getObject("button1").parentNode.firstChild.click(); }, 100);

    but did you try using IE Developer Tools? Attached you will find a how to enable the debugger once you put the following line before your code

    debugger;



Reply
  • Have you tried putting the following statement in your code and use the F12 key to launch IE Developer Tools and through the Scripting tab debug this issue?

    I see you already tried

    setTimeout(function(){getObject("button1").parentNode.firstChild.click(); }, 100);

    but did you try using IE Developer Tools? Attached you will find a how to enable the debugger once you put the following line before your code

    debugger;



Children
No Data