Re: Question about cross-domain support

  •  02-15-2008, 10:22 PM

    Re: Question about cross-domain support

    greggcz:
    After further investigation, I found that the crossdomain script is calling a wrong url:
     
       22         False    +4.040 s             0.079 s      GET     200     428       text/html                 http://cutesoft.net/CuteSoft_Client/CuteChat/SupportCustomerHandler.ashx?_temp=1203114378165&Type=VISIT&Referrer=                                                                                                                                                                                                                                                                             
       23         False    +14.133 s            0.110 s      GET     200     428       text/html                 http://cutesoft.net/CuteSoft_Client/CuteChat/SupportCustomerHandler.ashx?_temp=1203114388258&Type=VISIT&Referrer=                                                                                                                                                                                                                                                                             
       24         False    +24.258 s            0.046 s      GET     200     428       text/html                 http://cutesoft.net/CuteSoft_Client/CuteChat/SupportCustomerHandler.ashx?_temp=1203114398367&Type=VISIT&Referrer=   
     
     
    Sounds like a minor bug ?


    Please ignore the post above, this was another tab doing it. 
     
    I found a problem though. 

    "_chat_script.src=url;" only works correctly in IE 


    Here's a replacement that will work in all browsers:

        var _new_script = document.createElement('SCRIPT');
        _new_script.id = _chat_scriptid;
        _new_script.src = url;
        _chat_script.parentNode.replaceChild(_new_script,_chat_script);
     
     
    More info about this here: http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2007-May/011569.html

    -Gregg
View Complete Thread