Klaus Hartl-3 wrote:
> 
> Is it maybe this bug:
> http://jszen.blogspot.com/2006/02/safari-quirk-copying-innerhtml.html
> 
> 
> -- Klaus
> 

Yes, that's it! :-)

This is my new code and it works without a hack:

function showgreenpage(pagename){
        if (currentpage == "spy"){
                clearInterval(spyinterval);
        }
        if (pagename != currentpage){
                $("#greenboxcontent").slideUp("slow",function(){
                        
                        var gbcontent = $("#greenboxcontent").html();
                        $("#greenboxcontent").html("");
                        $("#"+currentpage+"_page").html(gbcontent);

                        var opcontent = $("#"+pagename+"_page").html();
                        $("#"+pagename+"_page").html("");
                        $("#greenboxcontent").html(opcontent).slideDown("slow");
                        
                        currentpage = pagename;
                        $("#g_pagename").html(mypages[pagename]);
                        generatetoollinks();
                        if (pagename == "spy"){
                                loadspyresults();
                                spyinterval = setInterval(loadspyresults,2500);
                        } else if (pagename == "stats"){
                                loadstats();
                        }
                });
        }
}

Fredi
-- 
View this message in context: 
http://www.nabble.com/How-can-this-not-work--%28Safari-Problem%29-tf2721195.html#a7615625
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to