Category Archives: jQuery

Integrate CakePHP and jQuery UI

jQuery UI provides many fancy user interfaces for web developers. You can follow the steps below in order to use jQuery UI in CakePHP.

1. Download the jQuery UI library at jqueryui.com
 

2. Unzip the downloaded archive and copy the css folder and two .js files to <CAKEPHP_PROJECT>/app/webroot Continue reading Integrate CakePHP and jQuery UI

jQuery – Avoid Conflict with other Javascript Libraries

Recently start learning jQuery =)

When you are using jQuery with other Javascript libraries such as Prototype. There will be conflict on the $() function. There are 3 ways to bypass the conflict.

1. Only use jQuery() for the jQuery calls and revert the $() to Prototype

jQuery.noConflict();
   
// Use jQuery via jQuery(...)
jQuery(document).ready(function(){
	jQuery("div").hide();
});

// Use Prototype with $(...), etc.
$('someid').hide();

Continue reading jQuery – Avoid Conflict with other Javascript Libraries