Get GET variables with javascript.

Usually if your working with froms your working with a server side language to take care of the really work involved (I prefer PHP for it) but what if you don’t wat to do it that way, or even can’t? Earlier this weel I was working on a little project that may eventually become an iOS game via PhoneGap and on it there is a form. I wanted this form to both go to another page, but gather and use the information input on that other page. I could have used ajax to reload the document in place but I didn’t really see the advantage of that, the usual speed increase it negligible when your loading all the files locally anyways. Neither Javascript or jQuery have methods in place for reading these get variables, but they do have the ability to rea the URL so with some creative breaking we can get them anyways. Continue reading “Get GET variables with javascript.”

Auto replace broken images.

While most of the time you can check the images your using, either you uploaded them manually or your script will see and, if missing, replacing it with a placeholder image. Sometimes however thats not particularly practical, like when your working mostly in javascript and don’t want to make an ajax call just to see if there an image. Thats the situation I ran into yesterday, and the solution is… Continue reading “Auto replace broken images.”

Mobile Safari Webkit Flicking Animation Fix

Back from a little vacation/job change/illness, lets get back to it.

While developing a web based app with some seriously smooth animations behind it I noticed that they would flicker every time they started. Initially I thought it was due to the animation enhancer I had installed. The jQuery animation enhancer seamlessly changes the traditional jQuery animations with the CSS3 animations. On a desktop browser this has mixed results, with safari being faster and chrome being slightly slower, but on an iOS device (in this case an iPad) it was much much faster. Continue reading “Mobile Safari Webkit Flicking Animation Fix”