Our services can execute your Digital Marketing Strategies

  • Get list of all cookies using Javascript

    Its very common that we all still use HTTP cookies for storing various data on visitor's browser. But in HTML5, you can use local storage. I'm talking about the old school cookies here as we still have old browsers to take care of. Following is the code snippet to log all cookies of the domain in the firebug console. function get_cookies_array() { var cookies = { }; if (document.cookie && document.cookie != '') { var split = document.cookie.split(';'); for (var i...

    Posted by Webcastle

    10

    Tuesday

    January 2012
  • Mask site url using php and htaccess proxy

    Now you want to mirror a website of someone else or your own to a new domain. You can simply set it as an addon domain if you have access to original site's hosting control panel. But what if not? If you use htaccess redirects, it promptly redirects to original site. Another quick way is to use iframes. Just put following code in your index.html of new domain. <iframe src="http://originalsite.com" height="100%" width="100"></iframe> But if visitor clicks a link on the page, it w...

    Posted by Webcastle

    04

    Wednesday

    January 2012