Create Ecommerce WDK
  • Getting Started
  • Tutorials
  • Tags
  • Support
  • Change Log
Login

Tutorials

  • Uploading & Using Files
  • Requirements & Restrictions
  • Setting your version
  • How it Works
  • The Basics
  • The Header
  • Colours
  • Creating a Template
  • Download Example Template
  • Using Icons
  • The Footer
  • Advanced Colour Functions
  • Using Menus
  • Header Images
  • Side Columns & Content Width
  • Conditional Tags
  • Using jQuery
  • Converting to WDK
  • Extras & Finishing Touches
  • Pagebuilder

Using jQuery

This documentation is in need of review and further clarification.

Create websites utilise the Javascript library jQuery for various dynamic features.

In the <!--WDK:display:headinfo--> tag is a <script> tag loading in “loader.js” which is what we use to include jQuery in the page.

/include/js/loader.js

function jsload( src ) {
	document.write(unescape('%3Cscript src="' + src + '"%3E%3C/script%3E'));
}

var jqv = "1.9.1";
if (typeof jQuery == "undefined") {
	jsload('//ajax.googleapis.com/ajax/libs/jquery/' + jqv + '/jquery.min.js');
	jsload('http://code.jquery.com/jquery-migrate-1.1.1.js');
}

If you need to use jQuery in your own template, you should not include it again, simply use it normally below the headstuff WDK tag.

Versions

You can check the current version of jQuery that your Create is using by looking at loader.js and referring to the jqv variable.

If you need to use a different version of jQuery, you will need to namespace it and include it above the headstuff WDK tag. You can do this using jQuery’s built in noConflict method. Read More

Last Updated: 5 April 2013

  • Latest News
  • Features & Pricing
  • Build Before You Buy
  • Web Designer's Kit
  • Partners

© Copyright 2001 - 2014 Create. All Rights Reserved.