ClientSideOnTabMouseOver

This post has 3 replies

Not Ranked
Posts: 15
issac Posted: Wed Aug 29, 2007 @ 1:27 PM
How to use this? I have in my XML file,

ClientSideOnTabMouseOver="ajax_showTooltipr('itempopup.aspx?n=24347')"

Nothing happens when I hover over tab item?
Issac Simchayof
Top 25 Contributor
Posts: 336
sadat Posted: Wed Aug 29, 2007 @ 2:04 PM
It should be something like this,

ClientSideOnTabMouseOver="TabStrip1_OnTabMouseOver"

function TabStrip1_OnTabMouseOver(tab)
{
//your logic here
}
Not Ranked
Posts: 15
issac Posted: Thu Aug 30, 2007 @ 7:35 AM
Thank you for the reply, how do I pass my value to my function though.

I have added ClientSideOnTabMouseOver="myFunction" to the strip and it does call my function. However the value from ClientSideOnTabMouseOver field in my XML file does pass to the function. I need to pass my product id plus the control/tab id to my function.

Thanks
Issac Simchayof
Top 25 Contributor
Posts: 336
sadat Posted: Thu Aug 30, 2007 @ 1:06 PM
In your xml file have the tab id and product id
<code>
<tab Text="Test" ID="tabId1" ProductIdD="productId1" />
</code>
And function could be something like this,
<code>
ClientSideOnTabMouseOver="TabStrip1_OnTabMouseOver"

function TabStrip1_OnTabMouseOver(tab)
{
ajax_showTooltipr(tab.ID, tab.GetProperty("ProductID"));
}
</code>
Page 1 of 1 (4 items)