This is a migrated thread and some comments may be shown as answers.

Set tooltip in client side

3 Answers 89 Views
Button
This is a migrated thread and some comments may be shown as answers.
July
Top achievements
Rank 2
July asked on 09 Oct 2012, 03:24 PM
I need replace  some token in tooltip by User Name in server side.

I use
var mybuttonToolTip = button.get_tooltip();
mybuttonToolTip   = mybuttonToolTip.replace("{TOKEN}", currentUserName};
button.set_tooltip(mybuttonToolTip );  This event exist?

3 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 10 Oct 2012, 03:34 AM
Hi July,

I suppose you want to set the Tooltip of RadButton in the clientside. You can use get_toolTip() and set_toolTip() functions instead of get_tooltip() and set_tooltip() functions as follows.

JS:
var mybuttonToolTip = button.get_toolTip();
mybuttonToolTip = mybuttonToolTip.("{TOKEN}", currentUserName);
button.set_toolTip(mybuttonToolTip);

Hope this helps.

Regards,
Princy.
0
July
Top achievements
Rank 2
answered on 10 Oct 2012, 12:13 PM
Thanks Princy,
I had asked because I couldn't found this event in documentation
0
Leon
Top achievements
Rank 1
answered on 01 Nov 2012, 05:02 AM
You can choose to view information needs to be entered in the Address text box, click on it and Push the submit button to submit the form. Check the source code to see how the actions are implemented. http://jquerytools.org/demos/validator/server-side.html

Tags
Button
Asked by
July
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 2
July
Top achievements
Rank 2
Leon
Top achievements
Rank 1
Share this question
or