Quantcast
Channel: IanJGough.com » JavaScript
Browsing all 10 articles
Browse latest View live

Hide and Show

Often you want to hide or show an image or one or more tags on your page and using this reusable script you can do just that.No code to edit and it also changes (Toggles) the button value. You just...

View Article



Image Swapper

The post Image Swapper appeared first on IanJGough.com.

View Article

Split String

Why might you need to use the split string function? Well imagine you have a load of keywords separated by commas you want to list individually or like in the example above separate your users full...

View Article

Get the Page Title Description and Url

JQuery version: <script type="text/javascript"> $(document).ready(function () { var pageTitle = $(document).attr('title'); var pageHref = $(location).attr('href'); var pageDescription =...

View Article

Passing Arguments to a Function

The post Passing Arguments to a Function appeared first on IanJGough.com.

View Article


Ajax update innerHTML

Ajax is very useful for when you want todo something without refreshing the page plus it’s the way things are done now. For my Banner Bar program i allow the user to upload images or insert links to...

View Article

Get Location of Currently Running Script

Do you need to get the URL or folder location of the currently executing script? Here’s how i did it! Why would you need to do this? Well if you have a script you distribute which is setup to...

View Article

Populate drop-down list from XML

Question So now i have what i want how can i put that into a select tag? Answer Demo xml-select-tag.phpThe post Populate drop-down list from XML appeared first on IanJGough.com.

View Article


Dynamic drop-down from XML (2 drop-downs 1 populates other)

Question How can i use my XML file to populate two drop-downs where the 1st one defines whats displayed in the second? Answer Demo xml-miltiple-select.phpThe post Dynamic drop-down from XML (2...

View Article


Load HTML file from drop-down created from XML file

Question How can i now load the HTML file selected from the Dynamically created drop-down. Answer Demo xml-select-html.phpThe post Load HTML file from drop-down created from XML file appeared first on...

View Article
Browsing all 10 articles
Browse latest View live




Latest Images