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

[Solved] Asp.NET AJAX Controls causes JS error Object does not support property or method

6 Answers 162 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
john
Top achievements
Rank 1
john asked on 11 Sep 2009, 01:53 PM
Hello, I'm getting the above error "Object does not support property or method"  whenever i try to navigate away from a page using one of your controls.  I've checked the forums and i've tried removing my form decorator, and I'm running IE7.  One of the posts mentioned a problem with IE8 in an old version.  I'm currently runing the latest version( i downloaded it a week ago i think).  The error only shows when i have Disbable Script Debugging (internet Explorer) and (other) off.  When i go into the debugger session via th error message it loads a file with a rather long name but starts, Telerik.Web.UI.WebResource.asxd? then a bunch of stuff after that which contains the clientId of the scriptManager which is in my master page.  and something about a hidden field.   The code stops on 

return

 

document.getElementById(f) that line  f is set to "modalDivId_ctl00_cphBody_dgListData"  i assume its a reference to the modal edit popup i use on that grid (dgLists).  the above line is in a function that starts 

 

$get=Sys.UI.DomElement.getElementById=

function(f,e){If(!e) *error line goes here* and then the function continues for a while.

the commetns at the top of thie file say this section is MicrosoftAjax.js.  The error happens when i try to navigate away, it doesnt seem to happen on a async postback, and only seems to happen when the page loads from a full postback.  I've also tried removing the modal box from the grid, before the error mentioned a radComboBox, when i removed that control it started having the grid as the value of f.   Naturally i can turn off script debugging and not see it, but i cant ensure that my users do the same.  Any help or suggestions would be appreciated.

John

 

6 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 16 Sep 2009, 09:06 AM
Hello john bob,

Certainly you should not overcome the problem by disabling the script debugging. If there is a problem - we will fix it.

I ask you to open a support ticket and send us a sample project. We will debug it locally and if there is a problem with the controls we will definitely provide a workaround and fix.

Best wishes,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
john
Top achievements
Rank 1
answered on 16 Sep 2009, 01:22 PM
I currently just have the demo, i'm trying to ensure that it will function correctly in our site.  Would that pose a problem for opening a support ticket?  Where would i go to do so, I havent seen a link for it.  The error also doesnt apepar to be thrown in FF 3.5.2.

I'm also having an issue with the Form Decorator that perhaps could be debugged at the sametime.  Its decorating everything correctly (except dropdowns), but its also causing issues with the sliding tabs we have.  I've gon through the JS for the tabs and verified the CSS Classes they are using.  All of the event seem to fire correctly, but the sliding section doesnt show in IE 7 or 8.  after a second or two if its tried again they will usually work, but even when they dont appear the JS functions are still bieng called and sill fireing correctly as far as i can tell.  in FF 3.5.2 it works exactly like it should everytime.  Also, if i remove the form decorator from my master page the tab problem goes away. 

John
0
Veselin Vasilev
Telerik team
answered on 22 Sep 2009, 07:01 AM
Hi john,

To open a support ticket you need to go to Your Account section. There you will see a Support Tickets link which will direct you to the page where you can send us the ticket.

Sincerely yours,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
john
Top achievements
Rank 1
answered on 22 Sep 2009, 12:56 PM
I have submitted the ticket, and i think i have accidently found a temporary solution to the slider problem.  I turned of the decoration of the textboxes with the form decorator, and all of the slideouts seem to work perfectly now. By the way i noticed that normal textboxes and the Rad Masked Input boxes dont decorate the same. The normal will have rounded corners while the masked box will have square corners.  Its kind of aggrovating when you want to use them right next to each other.  Its not really an issue since we arent decorating the textboxes anymore, just thought i would mention it.
0
Manoj Desai
Top achievements
Rank 1
answered on 16 Nov 2009, 07:30 PM
Hello:

I am having the same issue as the OP:
"I'm getting the above error "Object does not support property or method" whenever i try to navigate away from a page using one of your controls."

I have updated the RadControls ASP.NET AJAX to v2009.3 1103 and still have the same issue. Can I find out what the fix for the OP was so that I may try it on my project?
Thank You,
Manoj Desai
0
Georgi Tunev
Telerik team
answered on 17 Nov 2009, 12:22 PM
Hi Manoj,

In this case the problem was in third-party library that broke document.getElementById function. If this is not your case, please open a support ticket and send us a sample project that reproduces the problem so we could investigate. Just make sure that the project can be run locally and attach it to the ticket.


Sincerely yours,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
john
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
john
Top achievements
Rank 1
Manoj Desai
Top achievements
Rank 1
Georgi Tunev
Telerik team
Share this question
or