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

radmenu OnClientItemClicked OnClientMouseOver conflict - unspecified error javascript message ?

4 Answers 104 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
IQworks
Top achievements
Rank 1
IQworks asked on 23 Jun 2009, 05:18 AM
I am using both radmenu OnClientItemClicked OnClientMouseOver. I use OnClientMouseOver to display a radtooltip. But after the first time the tooltip is shown, I get an "Unspecified Error" javascript message. When I mouse over, its fine. I get this error as soon as I do the first mouse click on this same radmenuitem, but I only code for this menu item (Which by the way is a menu item called "Help") inside of the OnClientMouseOver. By the way, I also have the serverside OnItemClick coded in the RadMenu as well for other menuitems in the same RadMenu.
I am also wondering how to call the radtooltip from the serverside, and which is more practical - clientside radtootip.show or a serverside call ?
thanks for your time.  

4 Answers, 1 is accepted

Sort by
0
IQworks
Top achievements
Rank 1
answered on 24 Jun 2009, 02:58 AM
Let me clarify a little more, the last post is not specific enough.

I have a radmenu with a radmenuitm called Mhelp. I have a RadTooltip.
The RadMenu has an OnClientClicked event. Within that event, I am assigning Mhelp as the targetcontrolid to the RadToolTip.

It works fine in IE and FF on the very first click.

In IE, subsequent clicks give this error - Unspecified error, and.
The javascript debug for this is - var _2f=_2e.getClientRects();

In FF, subsequent clicks reposition the tooltip to the extreme right of the screen
with no error. 

thanks
 
0
IQworks
Top achievements
Rank 1
answered on 24 Jun 2009, 04:56 AM
OK, I see I had to include the Radtooltip within the updatepanel elements.
This makes it work acceptably within FF.
The subsequent clicks after the first one in IE however, give the following error ....
Error: Sys.WebForms.PageRequestManagerServerErrorException: Invalid JSON primitive.

I read the following post, and it looks related. But it says a fix has been made already ? So now I am wondering what I am not looking at. 
http://www.telerik.com/community/forums/aspnet-ajax/tooltip/tooltip-not-manager-and-ajax-post-1-of-2.aspx
0
IQworks
Top achievements
Rank 1
answered on 25 Jun 2009, 03:50 AM
I cannot figure out why I am getting this JSON error. Do you know how or why it is given ?
0
IQworks
Top achievements
Rank 1
answered on 26 Jun 2009, 02:19 AM
I believe I found my issue. This JSON error disappeared when I made sure that all of the controls involved where enclosed in either my UpdatePanel and, when I tried it with RadAjaxPanel, I had to make sure they where all enclosed within that as well.

thanks
Tags
ToolTip
Asked by
IQworks
Top achievements
Rank 1
Answers by
IQworks
Top achievements
Rank 1
Share this question
or