Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > XmlHttpPanel > Javascript Error this.get_value().replace is not a function

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

Feed from this thread
  • Sam Van Intermediate avatar

    Posted on Mar 18, 2011 (permalink)

    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.
    Attached files

    Reply

  • Pero Pero admin's avatar

    Posted on Mar 22, 2011 (permalink)

    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

    Reply

  • Danko avatar

    Posted on Mar 22, 2011 (permalink)

    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

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > XmlHttpPanel > Javascript Error this.get_value().replace is not a function