Ajax Script Error on Refresh, Back button click only in IE 6 SP2

Last post 09-13-2007 9:32 AM by tom.vangaever. 8 replies.

Sort Posts:

  • Ajax Script Error on Refresh, Back button click only in IE 6 SP2

    12-21-2006, 2:15 AM
    • Loading...
    • Ajith Cyriac
    • Joined on 10-23-2006, 6:52 AM
    • Trivandrum, India
    • Posts 13

    I am getting Javascript error (sys undefined, type undefined etc) when I try to run a simple asp.net ajax web site in IE with SP2.

    When I load the site for the first time it is working. Clicking on refresh or back button causes the problem.

    But the same site works in IE with SP1 (Win 2003) , Netscape and Mozilla.

    But I can open http://ajax.asp.net/ajaxtoolkit and work with the controls in IE with SP2.

    Any extra settings need to be done in Web.Config even when we are creating a web site using the "ASP.NET Ajax-Enabled Web Site Template" ?

    Please help.....

     

     

     

    Regards
    Ajith Cyriac
  • Re: Ajax Script Error on Refresh, Back button click only in IE 6 SP2

    12-28-2006, 12:47 AM
    Try to download the latest Ajax RC 1.0 and Futures Dec CTP and check if it works in IE 7.0. Maybe the javascript error is caused by IE cache. I installed VS.NET  2005 with Ajax RC 1.0 & Futures Dec CTP,Windows Server 2003 Enterprise and didn't find any exception. If you don't mind,try to send a website with "sys undefined or type undefined" exception message to my email box: v-jicwan@microsoft.com? I'd like to check this.
  • Re: Ajax Script Error on Refresh, Back button click only in IE 6 SP2

    12-28-2006, 1:41 AM
    • Loading...
    • Ajith Cyriac
    • Joined on 10-23-2006, 6:52 AM
    • Trivandrum, India
    • Posts 13

     

    I got a temporary solution by adding a custom HTTP header in IIS : Cache-Control no-cache

     

    But still problem is there when working with Cassini web server while developing using VS 2005

    Regards
    Ajith Cyriac
  • Re: Ajax Script Error on Refresh, Back button click only in IE 6 SP2

    12-28-2006, 2:03 AM
    Hi Ajith,
        I tested your Ajax enabled website in Visual Studio .NET 2005 with Ajax RC 1.0 in IE 7.0 and found it worked fine.So I suggest you to upgrade to IE 7.0 and it should work fine.Maybe this problem is caused by the IE 6.0 SP2.
  • Re: Ajax Script Error on Refresh, Back button click only in IE 6 SP2

    12-28-2006, 2:13 AM
    • Loading...
    • Ajith Cyriac
    • Joined on 10-23-2006, 6:52 AM
    • Trivandrum, India
    • Posts 13

    Thanks Jasson,

    But since we are developing web sites to support different browsers, upgrading the browser seems to be a temporary solution. When some one with IE 6 SP2 access the site they will not be able to run our site due to JavaScript errors

    Regards
    Ajith Cyriac
  • Re: Ajax Script Error on Refresh, Back button click only in IE 6 SP2

    12-28-2006, 2:16 AM
    If the javascript error is caused by IE 6.0 with SP2,I can not give you further help.We need to request this issue to IE Dev Team.
  • Re: Ajax Script Error on Refresh, Back button click only in IE 6 SP2

    01-17-2007, 11:10 AM
    • Loading...
    • Madfun
    • Joined on 06-28-2005, 12:18 PM
    • Posts 9

    Hi,

    I got the same error. I have Windows 2000 SP4 and IE 6 SP1.

    I clear IE cache and when I try to load a page of the AjaxControlToolkit (and on my own web site), it works on the first page but it does not work anymore then (after postback or going to another page).

    So I try to use configuration of ScriptResourceHandler in web.config and I notice that when I disable compression (and caching in the same time) with :

    <system.web.extensions>
            <scripting>
                <scriptResourceHandler enableCompression="false" enableCaching="false" />
            </scripting>
    </system.web.extensions>

    Then it works just fine, it is a work around, but it is a pity if it is impossible to use this fonctionnality that increases performance.

    I noticed also that when I change enableCaching value, it does not change anything to the Expires header, it is always one year more the date the resource was requested. I will write a post on this bug.

    Can you give me your opinion and test these problems.

    Thanks

    Clément
     

  • Re: Ajax Script Error on Refresh, Back button click only in IE 6 SP2

    01-31-2007, 12:44 AM
    • Loading...
    • Ajith Cyriac
    • Joined on 10-23-2006, 6:52 AM
    • Trivandrum, India
    • Posts 13

     

    It seems that the caching issue solved in the ASP.NET AJAX 1.0 release. Now there is no script error in IE 6 SP2!!   Smile

     

    Thanks

    Regards
    Ajith Cyriac
  • Re: Ajax Script Error on Refresh, Back button click only in IE 6 SP2

    09-13-2007, 9:32 AM

    Yes

     Madfun

    Thank you very much for this result.

    I was working on a webapplication using AJAX.net and VS2008, but when we checked the browser compatibility with firefox and IE6 ...

    Thanks

     

    http://tomvangaever.be/
    http://tomvangaever.be/blog/
Page 1 of 1 (9 items)
Microsoft Communities
Page view counter