Mediv Posted March 19, 2012 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. Quote
Administrators Farshad Mohajeri Posted March 19, 2012 Administrators Posted March 19, 2012 You can use OnClick event, but there is no guarantee that event handler will be executed first. Quote
Administrators Farshad Mohajeri Posted March 19, 2012 Administrators 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. Quote
Mediv Posted March 19, 2012 Author 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 Quote
Administrators Farshad Mohajeri Posted March 19, 2012 Administrators 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. Quote
Administrators Farshad Mohajeri Posted March 19, 2012 Administrators 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.