Click here to Skip to main content
15,894,646 members

Comments by FahdSanaullah (Top 32 by date)

FahdSanaullah 14-Jan-14 13:28pm View    
Had the same idea.
Thanks a lot! :)
FahdSanaullah 14-Jan-14 10:48am View    
<html>

<head><title>There I said it</title>
<link rel="stylesheet" type="text/css" href="style.css" />


<script type="text/javascript" src="jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="swfobject-2.2.min.js"></script>
<script type="text/javascript" src="evercookie.js"></script>

</head>
<body>

<script>

var ec = new evercookie();

//set a cookie "id" to "12345"
// usage: ec.set(key, value)

var val;

ec.get("id", function(value) { val = value; });
alert("Cookie value is " + val);


</script>

". $row['id']. " <br/><br/> ". $row['username']. " - ". $row['msg']. " <br/><br/>". $row['likes']. "</div>";
}

?>

</body>
</html>
FahdSanaullah 14-Jan-14 10:39am View    
Yeah, sure.
FahdSanaullah 14-Jan-14 10:30am View    
I appreciate your help, but now the alert box says "Cookie value is undefined" which means it's not working :(
FahdSanaullah 14-Jan-14 10:20am View    
That's great. If you could just please tell me how to be able avail this variable after this function, how do I do it?
Like I write this:

ec.get("id", function(value) { var val = value; });
alert("Cookie value is " + val);

But it doesn't work :/