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

2 posts, 0 answers
  1. Hari
    Hari avatar
    2 posts
    Member since:
    Oct 2008

    Posted 08 Oct 2008 Link to this post

    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.
  2. Blaize
    Blaize avatar
    88 posts
    Member since:
    Oct 2006

    Posted 09 Oct 2008 Link to this post

    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.

Back to Top