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

Multiple javascript errors: Sys undefined, object expected, RadControlsNamespace undefined, ...

1 Answer 92 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Hari
Top achievements
Rank 1
Hari asked on 08 Oct 2008, 07:01 PM
Here is our environment info: 
.NET framework - 2.0
IDE: VS 2005
Server: Windows Server 2003
Browser: IE 7
Language: C#
Teleric Product: Rad Window 1.9.0

We have around 12 ASP.NET applications running in the web server and we have a requirement to insert a particular text in all the web pages, say for eg. 'Test Server' in red color in our test environment. Since it's not possible to add this manually in all the applications, we decided to write an http module that can insert the text right after the <form> tag. It did worked and we see the text, but we get multiple javascript errors. If we unregister the http module, we don't see any javascript errors. All that the http module does is insert the following html tag after the <form> tag.

<span id='testserver' style="position:absolute; top: 30px; left: 300px; color: red; font-weight: bold; font-size:12pt; z-index:2;">Test Server </span>

We also changed it to div and label tags, but it didn't work.

These are the following javascript errors that we see:

1. 'Sys' is undefined.
2. 'RadControlsNamespace' is undefined.
3. Object exected.

The Http Compression is not enabled in IIS and the 'Check that file exists' checkbox in IIS->VirtualDirectory->.axd edit is checked. 

Any help is appreciated.
Thanks.

1 Answer, 1 is accepted

Sort by
0
Blaize
Top achievements
Rank 1
answered on 09 Oct 2008, 07:35 AM
Hey Hari,

Your module could add the red text to the axd files, making the js code that is served invalid. You can check the output of the axd files by using the net tab of firebug.

Cheers,
Blaize
Tags
General Discussions
Asked by
Hari
Top achievements
Rank 1
Answers by
Blaize
Top achievements
Rank 1
Share this question
or