Advertisements
RSS

Monthly Archives: October 2012

St Stephen’s Green

st stephen's green

Advertisements
 
1 Comment

Posted by on October 31, 2012 in Photography

 

Tags: , , , , , ,

Mr Green – Dun Laoghaire

Mr Green

 
Leave a comment

Posted by on October 26, 2012 in Photography

 

Tags: , , , , , ,

Bray

Trim

 
Leave a comment

Posted by on October 21, 2012 in Photography

 

Tags: , , , , , , ,

Trim

Trim

 
Leave a comment

Posted by on October 17, 2012 in Photography

 

Tags: , , , , ,

Painting In Wexford

Painting In Wexford

 
Leave a comment

Posted by on October 14, 2012 in Photography

 

Tags: , , , , , , ,

JavaScript: Cookies


A cookie is a variable that is stored on the user’s computer. You can use Javascript to create and retrieve cookie values.

To create a cookie:


function setCookie(sCookieName, sCookieValue)
{
var oCookieExpiryDate = null;
try
{
oCookieExpiryDate = new Date();
if (oCookieExpiryDate == null)
{
return -1;
}
oExpiryDate.setTime(oCookieExpiryDate.getTime() + (1000 * 60 * 60 * 24 * 30)); //30 days
document.cookie = sCookieName + "=" + sCookieValue + "; path=/" + ((oCookieExpiryDate == null) ? "" : "; expires=" + oCookieExpiryDate.toGMTString());
}
catch(e)
{
}
finally
{
}
}

To get the value of a cookie:


function getCookie (sCookieName)
{
try
{
var sCookieNameEQ = sCookieName + "=";
var oCookiesArray = document.cookie.split(';');
for(var i=0;i < oCookiesArray.length;i++)
{
var oCookieItem = oCookiesArray[i];
while (oCookiesArray.charAt(0)==' ')
{
oCookieItem = oCookieItem.substring(1,oCookieItem.length);
}
if (oCookieItem.indexOf(sCookieNameEQ) == 0)
{
return oCookieItem.substring(sCookieNameEQ.length,oCookieItem.length);
}
}
return null;
}
catch(e)
{
}
finally
{
}
}

 

 
Leave a comment

Posted by on October 10, 2012 in Programming

 

Tags: , , , , , , , , , , , ,

Westport House

Westport House

 
2 Comments

Posted by on October 7, 2012 in Photography

 

Tags: , , , ,

 
%d bloggers like this: