Tag Archives: jquery

Using PhantomJS to request a web page

PhantomJS is a very nice headless browser which uses the WebKit browser engine. It can be used for many purposes. However, I’m going to illustrate PhantomJS by performing a Bing search query and also executing JavaScript code on the page. Libraries such as jQuery can be injected into the page to perform all kinds of [...]

Posted in Bash, JavaScript | Also tagged , , , , , , , , , | Leave a comment

(PHP) auto complete like google suggestion

auto complete code snippet like google suggestions

Posted in JavaScript, PHP | Also tagged , , , , , , | Leave a comment

(jQuery) Get Latitude and Longitude using jQuery and Googles Geo Coding Service

Nice ajax function to grab the latitude and longitude of an address or postcode. Don’t forget your google key and address formatting.

Posted in JavaScript | Also tagged , , , , , , , | Leave a comment

(jQuery) jQuery input value text toggle

This is a jQuery custom function used for clearing the default input values of input fields without having to add a class or inline javascript like onclick or onblur. Just write your input and give it a value like you normally would and then add this function and you’re good to go.

Posted in JavaScript | Also tagged , , , , , , , | Leave a comment

(JavaScript) Basic jQuery form validation

CSS: .error style the error class Form HTML: class=”required” makes the input field required minlength=”2″ makes the field require at least 2 characters

Posted in JavaScript | Also tagged , , , , , , | Leave a comment

Autocompletion with the jQuery autocomplete plugin

The jQuery autocomplete plugin allows developers to implement autocompletion for text input fields. Suppose you have a dictionary application. You might want to autocomplete words for a user to ease searching.

Posted in JavaScript | Also tagged , , , , , , | Leave a comment

(jQuery) Jquery: Scrollto

Posted in JavaScript | Also tagged , , | Leave a comment

Hiding and showing elements with jQuery

If you don’t know what jQuery is, I’d recommend you to visit jquery.com for clarification. Suppose you have an HTML div element which you want to hide and show. <div id=’foo’>bar</div> The next step is to use a so called selector to select the element and call the hide() function to hide the element. $(‘#foo’).hide(); The [...]

Posted in JavaScript | Also tagged , , , , , | Leave a comment