Discussion:
stop Linkbutton from redirecting
usman syed
2008-11-29 06:29:05 UTC
Permalink
Hi folks,

I am using a linkbutton in datatable, the linkbutton when clicked is redirected in its normal behaviour. Now i want to stop this redirection and wants to stay on the client side.

I have captured the linkbutton click event through
    myDataTable.on("linkClickEvent", function (oArgs)
            {
                  //Stop Redirection
                 // My own processing
            });

All i want now is to do some processing on the client side and no posting or redirection when the link button is pressed. .

Looking forward

Syed Usman
usmans1
2008-11-29 09:06:27 UTC
Permalink
I found the solution. All i have to do was to make my function

myDataTable.on("linkClickEvent", function (oArgs)
{
//Stop Redirection
YAHOO.util.Event.stopEvent(oArgs.event);//stops redirection
// My own processing
});

Thanks.

YAHOO.util.Event.stopEvent(oArgs.event);
Post by usman syed
Hi folks,
I am using a linkbutton in datatable, the linkbutton when clicked is
redirected in its normal behaviour. Now i want to stop this
redirection and wants to stay on the client side.
Post by usman syed
I have captured the linkbutton click event through
    myDataTable.on("linkClickEvent", function (oArgs)
            {
                  //Stop Redirection
                 // My own processing
            });
All i want now is to do some processing on the client side and no
posting or redirection when the link button is pressed. .
Post by usman syed
Looking forward
Syed Usman
------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ydn-javascript/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/ydn-javascript/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:ydn-javascript-digest-***@public.gmane.org
mailto:ydn-javascript-fullfeatured-***@public.gmane.org

<*> To unsubscribe from this group, send an email to:
ydn-javascript-unsubscribe-***@public.gmane.org

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/

Loading...