Mediv Posted March 19, 2012 Share Posted March 19, 2012 Hi, How to trigger execution of a procedure at the time of clicking on the hyperlink, so that the procedure worked, first, and then jump to the link. Thanks. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 19, 2012 Administrators Share Posted March 19, 2012 You can use OnClick event, but there is no guarantee that event handler will be executed first. Link to comment Share on other sites More sharing options...
Mediv Posted March 19, 2012 Author Share Posted March 19, 2012 Not Work, and OnMouseDown too. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 19, 2012 Administrators Share Posted March 19, 2012 It does work here. I use UniLabel OnClick event. If it doesn't work there please send a simple test case. Link to comment Share on other sites More sharing options...
Mediv Posted March 19, 2012 Author Share Posted March 19, 2012 I'm probably not quite correct to explain my problem, UniLabelClick event is triggered, but the transition occurs at the link before work out the code in UniLabelClick. I need to before you open a new window in your browser to execute code in UniLabelClick Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 19, 2012 Administrators Share Posted March 19, 2012 There is no way to achieve this. Web works in an asynchronous manner which mean both events start at the same time. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 19, 2012 Administrators Share Posted March 19, 2012 Only solution is to write an event handler in JS. function Onclick(sender) { // do your stuff first // open the link } 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now