Showing posts with label redirect. Show all posts
Showing posts with label redirect. Show all posts

Thursday, August 22, 2013

Prevent form reload (login, shopping cart... etc).

Today I was looking through my draft posts and saw this one about preventing form reload, and this is the note I took at the time: "set session variable to empty at form load, set it to something at successful submit, if session variable set when submit clicked, throw error" - well, yes, that was the first thought about it I found on the net, however, after I continued to look, I found that there is a better, more efficient way to do this:

Sunday, March 17, 2013

How to stop Blogger from redirecting to local domain extensions

Ok, just a quick one today. I realised Blogger is now redirecting to local domain extensions according to the location of the visitor (ie. .co.uk for the UK instead of .com). The problem with this for me was that I needed redirections to my own blog in the code that could not be made dynamic that way, so I had to look for a way to make Blogger always redirect to the .com domain extension.