RcBuilder@walla.com
call centre: 054-5614020

js Request cookies and queryString

Posted by: RcBuilder  /   Category: Cookies / JAVASCRIPT / QueryString / Request   /   No Comments
23
Sep
2014

js Request cookies and queryString  // literal var Request = { Cookies: { Set: function (cookie_name, cookie_value, expires_in_days) { try { var cookie_full_value = escape(cookie_value); if (expires_in_days != null) { var exdate = new Date(); exdate.setDate(exdate.getDate() + expires_in_days); cookie_full_value += '; expires=' + exdate.toUTCString(); } document.cookie = cookie_name + '=' + cookie_full_value; } catch (e) { } }, Get: function (cookie_name) { var i, x, y, ARRcookies = document.cookie.split(';'); for (i = 0;.

Read more
30
Jul
2014

javascript Request object interface Request.Cookies.Set Request.Cookies.Get Request.Cookies.Clear Request.QueryString.Get Source Code var Request = { Cookies: { Set: function (cookie_name, cookie_value, expires_in_days) { try { var cookie_full_value = escape(cookie_value); if (expires_in_days != null) { var exdate = new Date(); exdate.setDate(exdate.getDate() + expires_in_days); cookie_full_value += '; expires=' + exdate.toUTCString(); } document.cookie = cookie_name + '=' + cookie_full_value; } catch (e) { } }, Get: function (cookie_name) { var i, x, y, ARRcookies = document.cookie.split(';'); for (i = 0; i <.

Read more
  • פיתוח מערכות
  • פתרונות טכנולוגים
  • קידום אתרים
  • בניית אתרים