943,832 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 1464
  • PHP RSS
Aug 31st, 2009
0

JQuery Not working in Drupal

Expand Post »
Hi,

JQuery Not working in Drupal, Please help me fixing it. The below is my JQuery code.

PHP Syntax (Toggle Plain Text)
  1. $(document).ready(function(){
  2. $('#slides').cycle({
  3. fx: 'fade',
  4. speed: '300',
  5. timeout: 6000,
  6. delay: -2000,
  7. next: '#next',
  8. prev: '#prev'
  9.  
  10. });
  11.  
  12. function onBefore() {$('#title').html(this.title);}
  13. });

Regards
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
chavansoft is offline Offline
15 posts
since Aug 2009
Sep 1st, 2009
0

Re: JQuery Not working in Drupal

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.
Last edited by martin5211; Sep 1st, 2009 at 1:20 pm.
Reputation Points: 52
Solved Threads: 23
Posting Whiz in Training
martin5211 is offline Offline
271 posts
since Aug 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Regarding WYSIWYG
Next Thread in PHP Forum Timeline: Oscommerce Product Attribute Help for IE





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC