Hi
i'm getting tired trying to debug the following simple page that contains a Radajaxmanager, a RadInputMananger AND a reference to prototype.js (the latest version 1.6.0.3). the RadInputManager transforms a textbox in an Email Required Field.
The code behind is trivial
When I do provide a valid email in the textbox and press the update button i get a javascript error
i'm getting tired trying to debug the following simple page that contains a Radajaxmanager, a RadInputMananger AND a reference to prototype.js (the latest version 1.6.0.3). the RadInputManager transforms a textbox in an Email Required Field.
| <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head runat="server"> |
| <title>test</title> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <telerik:RadScriptManager ID="rsm" runat="server"> |
| <Scripts> |
| <asp:ScriptReference Path="http://www.prototypejs.org/assets/2008/9/29/prototype-1.6.0.3.js" /> |
| </Scripts> |
| </telerik:RadScriptManager> |
| <telerik:RadAjaxManager ID="ram" runat="server"> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="btUpd"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="lb"></telerik:AjaxUpdatedControl> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| </telerik:RadAjaxManager> |
| <asp:TextBox ID="txtFrom" runat="server" Width="322px" MaxLength="500"></asp:TextBox> |
| <telerik:RadInputManager ID="rim" runat="server"> |
| <telerik:RegExpTextBoxSetting BehaviorID="ebh4" ValidationExpression="^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$"> |
| <Validation IsRequired="true" /> |
| <TargetControls> |
| <telerik:TargetInput ControlID="txtFrom" /> |
| </TargetControls> |
| </telerik:RegExpTextBoxSetting> |
| </telerik:RadInputManager> |
| <asp:Button ID="btUpd" runat="server" Text="Update" OnClick="btUpd_Click" /> |
| <br /> |
| <asp:Label ID="lb" runat="server" /> |
| </form> |
| </body> |
| </html> |
The code behind is trivial
| public partial class WebForm2 : System.Web.UI.Page |
| { |
| protected void Page_Load(object sender, EventArgs e) |
| { |
| } |
| protected void btUpd_Click(object sender, EventArgs e) |
| { |
| lb.Text = "ajax query!"; |
| } |
| } |
When I do provide a valid email in the textbox and press the update button i get a javascript error
com.get_targetControlIDs is not a function
-->
var ids=com.get_targetControlIDs();
A few remarks
It appears that when prototype is loaded, the onsubmit function od radinputmanager.js (line 726) is retrieving two values instead of one only in the this._getSettings() method.
The first and correct retrieved value is "rim_e4" which corresponds to the behaviour.
The second one which is weird and I cannot understand why it is bugging is "each" which is a function and not a behaviour at all.
I think that the Object.extend(Array.prototype, Enumerable); line in protoype.js is causing the issue but i can't understand why
Please help me, this is really getting urgent.
Best Regards
Philippe
A few remarks
It appears that when prototype is loaded, the onsubmit function od radinputmanager.js (line 726) is retrieving two values instead of one only in the this._getSettings() method.
| _onSubmit:function(){ |
| var i; |
| for(i in this._getSettings()){ |
| if(this._getSettings()[i]){ |
| this._beforeSubmit(this._getSettings()[i]); |
| } |
| } |
| } |
The first and correct retrieved value is "rim_e4" which corresponds to the behaviour.
The second one which is weird and I cannot understand why it is bugging is "each" which is a function and not a behaviour at all.
I think that the Object.extend(Array.prototype, Enumerable); line in protoype.js is causing the issue but i can't understand why
Please help me, this is really getting urgent.
Best Regards
Philippe