Hi
I get the following error while running WebExplorerBar: JScript runtime error 'theForm' is undefined.
_addOtherHandlers: function(){ this._registerOtherHandlers([{ "submit": theForm, "beforeunload": window}]);}
What am I missing? can't see the problem. If I create a new project and put a WebExplorerBar into that. it works.
I use the latest Version 11.2 in .net 4.0 aspx.
Thanks for your help.
Regards,
Michael
Hello Mahrens,
Thank you for posting this in our community. We stub in to this issue and we were not able to reproduce it in our end. It is really important for us to reproduce it in order to investigate it and fix it. Could you please provide us a sample code that reproduces the issue?
Looking forward to hear from you.
Sincerely,
Georgi Sashev
Developer Support Engineer
Infragistics, Inc.
http://ko.infragistics.com/support
Hi Georgi
I attached a solution that produces the error on my machine. I use VS Ultimate 2010 latest release and sp on windows 7.
Thank you the sample code provided. I review it and setting the name of the form to be “theForm” like this :
<form id="theForm" runat="server">
Please let me know if this works for you on your end.
Yes this solved this error, but now i get another one (not in the project i sent you):
Microsoft JScript runtime error: Object doesn't support property or method 'addEventListener'
if
($util.IsIE6 || $util.IsIE7 || $util.IsIE8){ ...}else{// For Firefox, Opera, Chorme, Safari, IE9 we should fire on the capturing phase-> this._tree.get_element().addEventListener('mousedown', fnMouseDown, true);
Do you know a solution for that?
It is reproducable if you would have this old school frameset around it, that we still use. I just found the error. It hat to do with the following line in the frameset.aspx:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
I exchanged it with:
<!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
and now it works.
thanks for your help.
This is reproducible in the same application that you provided me or in different? Also are you experiencing this error under all browsers or only one, if so can you specify which one. Also confirm that you applied the last fix that I suggest in order to make sure that you revert the form name back.
Thank you in advance.
This solves the problem. Thanks!
Can you help me with my next problem?
Microsoft JScript runtime error: Object doesn't support property or method 'addEventListener'if($util.IsIE6 || $util.IsIE7 || $util.IsIE8){...}else{// For Firefox, Opera, Chorme, Safari, IE9 we should fire on the capturing phase-> this._tree.get_element().addEventListener('mousedown', fnMouseDown, true);
I investigated the sample provided and the issue is cause from the web.config file.
Here this line <xhtmlConformance mode="Legacy" />
Will change the document mode of the page to a mode that is not supported from our controls. You need to remove it.
Please revert the form name to the form1 comment this code and let me know the results from your tests.
I hope this helps.