DebugBar Forums
 
 HOME 
 DOWNLOAD 
 BUY 
 DOC / WIKI 
 FORUM 
 CONTACT 
Stay tuned : rss feed

Forum Home


advanced search

You are not logged in.

Announcement

Forums are now closed as we moved them to google groups. You can use the following Google Groups to discuss about DebugBar and IETester products:

#1 2009-06-15 06:46:44

xuexian123
New member

About IETESTER IE6

The version is v0.3.3.
I can't use JavaScript write or read cookie in IETESTER IE6,but can do this in IETESTER IE5.5,IE7 IE8.
I want to know why?Is it the ISTESTER's bug?
Thanks!
JS code:
-------------------------------------------
<script type="text/javascript">
//去左空格;
function ltrim(s){
return s.replace( /^\s*/, "");
}
//去右空格;
function rtrim(s){
return s.replace( /\s*$/, "");
}
//去左右空格;
function trim(s){
return rtrim(ltrim(s));
}

var date = new Date();
date.setDate(date.getDate()+7);
set_cookie("m","24343",date.toUTCString());

function set_cookie(name,value,expires, path,domain,secure){
        document.cookie = name + "=" + encodeURI(value) +
        ( (expires) ? ";expires=" + expires : "" ) +
        ( (path) ? ";path=" + path : "" ) +
        ( (domain) ? ";domain=" + domain : "" ) +
        ( (secure) ? ";secure" : "");
}

function read_cookie(name){
        var cookie_string = decodeURI(document.cookie);
        var cookie_array = cookie_string.split(";");
        for(var i=0;i<cookie_array.length;i++){
                var cookie_num = cookie_array[i].split("=");
                var cookie_name = cookie_num[0];
                var cookie_value = cookie_num[1];
                document.write("COOKIE NAME:<b>"+cookie_name+"</b>; COOKIE VALUE:<b>"+cookie_value+"</b><br />");
                if(trim(cookie_name)==name){
                        return cookie_value;
                }                   
        }
        return false;
}
var get = read_cookie("m");
//alert(get);
if(get==false){
        alert("Not found this cookie");
}else{
        alert(get);
}
</script>
--------------------------------------------

Offline

 

#2 2009-06-15 07:20:11

fabrice
DebugBar Support

Re: About IETESTER IE6

Yes,

IE6 with IETester is not handling cookies correctly.

Offline

 

#3 2009-06-15 08:30:46

xuexian123
New member

Re: About IETESTER IE6

Thanks for your reply!

Offline