| | |
JQuery Not working in Drupal
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Aug 2009
Posts: 15
Reputation:
Solved Threads: 0
Hi,
JQuery Not working in Drupal, Please help me fixing it. The below is my JQuery code.
Regards
JQuery Not working in Drupal, Please help me fixing it. The below is my JQuery code.
PHP Syntax (Toggle Plain Text)
$(document).ready(function(){ $('#slides').cycle({ fx: 'fade', speed: '300', timeout: 6000, delay: -2000, next: '#next', prev: '#prev' }); function onBefore() {$('#title').html(this.title);} });
Regards
•
•
Join Date: Aug 2007
Posts: 189
Reputation:
Solved Threads: 14
The jQuery questions should be made on JavaScript / DHTML / AJAX forum.
From Drupal perspective, some jQuery plugins could not work with the jQuery bundle included on Drupal core (the jQuery distribution included maybe is too old). To fix this issue, there is a module to update the jQuery distribution: http://drupal.org/project/jquery_update
Looking at your code, use comments into OnBefore() line to test the cycle plugin alone. title isn't a defined object. Try to use a jQuery selector instead.
From Drupal perspective, some jQuery plugins could not work with the jQuery bundle included on Drupal core (the jQuery distribution included maybe is too old). To fix this issue, there is a module to update the jQuery distribution: http://drupal.org/project/jquery_update
Looking at your code, use comments into OnBefore() line to test the cycle plugin alone. title isn't a defined object. Try to use a jQuery selector instead.
Last edited by martin5211; Sep 1st, 2009 at 1:20 pm.
![]() |
Similar Threads
- CSS/PHP Web Developer Needed (Web Development Job Offers)
- convert submit button of php array into image button (PHP)
- jQuery XML manipulation NOT WORKING in Internet Explorer (JavaScript / DHTML / AJAX)
- Regarding drupal and Jquery (PHP)
- Please help me on the drupal urls (PHP)
- How to build a community portal (Growing an Online Community)
- JQuery Accordion Menu (Help Needed) (JavaScript / DHTML / AJAX)
- Can't put 2 Javasript working in the same page! (JavaScript / DHTML / AJAX)
Other Threads in the PHP Forum
- Previous Thread: Dynamically creating checkbox
- Next Thread: Oscommerce Product Attribute Help for IE
| Thread Tools | Search this Thread |
advanced apache api array beginner binary broken cakephp check checkbox class cms code cookies cron curl database date datepart display dropdownlist dynamic echo email eregi error execution file files folder form forms function functions google head href htaccess html if...loop image include includingmysecondfileinthechain insert ip javascript job joomla jquery key library limit link login mail menu mlm multiple mysql oop password paypal pdf pdfdownload php phpvotingscript problem query radio random recursion remote screen script search server sessions smarty sms sorting source space sql startup stored syntax system table traffic tutorial unicode update upload url validator variable video web youtube zend





