| | |
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 (Social Media and Online Communities)
- 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
Views: 308 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code cron curl database date directory display download dynamic ebooks echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla jquery js limit link login loop mail mediawiki menu methods mlm mod_rewrite multiple mysql oop parse paypal pdf php problem query radio random recursion regex remote script search select server sessions sms soap source space speed sql stored structure subdomain syntax system table tutorial update updates upload url validation validator variable video web xml youtube





