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

Forum Home


advanced search


You are not logged in.

Announcement

When reporting a problem or a bug
PLEASE tell your OS version (INCLUDING service pack) and installed IE version.
And if possible provide an url where the problem can be reproduced or some code to reproduce it, and all possible additional information.
Thanks.

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

xuexian123
New member
Registered: 2009-06-15
Posts: 2

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 09:20:11

fabrice
DebugBar Support
From: Toulouse, France
Registered: 2007-11-08
Posts: 938
Website

Re: About IETESTER IE6

Yes,

IE6 with IETester is not handling cookies correctly.

Offline

 

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

xuexian123
New member
Registered: 2009-06-15
Posts: 2

Re: About IETESTER IE6

Thanks for your reply!

Offline

 

Partners : Debugbar | Mobilier de bureau | Debugbar Wiki | IEForge | Lampes design | La fourmi créative