Categories
javascript jquery

Dynamic Link Tag Injection

Using jquery to inject a style sheet seems to break IE7/8. The scenario was when a user passed in a custom param via the URL the code would inject that particular css. Ideally I should have gone with the native javascript way to create the element since it’s still clean and simple. This may not […]

Categories
javascript jquery mobile

Mobile Friendly Clearable Text boxes Using jQuery

This is a quick and dirty example of how to make a mobile friendly text box clearable. This could easily be turned into a jquery plugin. HTML: [code lang=”html” autolinks=”false” classname=”codeClass” collapse=”false” firstline=”1″ gutter=”true” light=”false” padlinenumbers=”false” smarttabs=”true” tabsize=”4″] <div class="ui-input"> <input name="firstname" type="text" id="firstname" placeholder="First Name"> <span class="ui-icon-delete"></span> </div> <div class="ui-input"> <input name="lastname" type="text" id="lastname" […]

Categories
html5 jquery mobile

Detect Lost of Internet Connection

I wanted a way to check to see when connection to a network was lost, and if it was lost show a message alerting the user. Lets put in perspective, say you are  out and about and happen to want to enroll to a new service and they happen to have a long sign up form. […]