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

Javascript Error this.get_value().replace is not a function

2 Answers 209 Views
XmlHttpPanel
This is a migrated thread and some comments may be shown as answers.
SamVanity
Top achievements
Rank 2
SamVanity asked on 19 Mar 2011, 03:35 AM
Hi,

I am running into a weird issue with this XmlHttpPanel. It used to work (from a very old version, 2009.3.1208) until I updated it to the newest version just released.

The problem happens when I want to use the $find('the panel').set_value() to initiate callback. It now works on some of my pages, but not all of them. See attached for the detailed error message.

2 Answers, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 22 Mar 2011, 03:49 PM
Hi Sam,

Thank you for reporting this issue! The problem is, as you said in the other message, the user can't pass an integer value to the set_value method. We will make sure this is fixed for the next release.

Greetings,
Pero
the Telerik team
0
Danko
Top achievements
Rank 1
answered on 22 Mar 2011, 10:42 PM
I just ran into the same problem and got around it by using escape:

On the client:

var panel = $find(panelid);
panel.set_value(escape(value));

In the handler:

protected void PanelHandler(object sender, RadXmlHttpPanelEventArgs e)
{
    string value = this.Server.UrlDecode(e.Value);
    ...
}

Good luck,

Igor
Tags
XmlHttpPanel
Asked by
SamVanity
Top achievements
Rank 2
Answers by
Pero
Telerik team
Danko
Top achievements
Rank 1
Share this question
or