Add jQuery integration to your Drupal 4.7 site

(Submitted Sat, 2006-09-23 19:09) | |

One of the hot new features for the upcoming release of Drupal 5.0 is that it includes the jQuery library ("New Wave Javascript" ... I'm sure some find the description appealing, and that it makes just as many others shudder ...)

Well, if you are running 4.7, you need not feel left out. Steve McKenzie - with a bit of help from Ted Serbinski - has released a patch that updates all of Drupal 4.7's internal javascript to make use jQuery, and allows you to develop against the jQuery library.

Very nice. Note that that is most definately not yet production ready, and a backup is definately in order before applying.

Grab the patch and have a play. (On a test site!)

Submitted by Anonymous (not verified) on Sun, 2006-09-24 17:29.

Hi, I think it should be included to the a new version as 4.74 of Drupal, since not everyone can apply an extensive patch like this, though most of the people would like to see jQuary in Drupal till v5 comes out and modules updated too.

meanwhile can you please tell what core document this patch applied to?
I use iPatch for macosx and i like to test it

regards

Submitted by drawk on Mon, 2006-09-25 06:08.

"meanwhile can you please tell what core document this patch applied to?"

It's a huge patch. Among the files affected:
common.inc
theme.inc
autocomplete.js
collapse.js
drupal.js
progress.js
textarea.js
update.js
upload.js

Pretty much anywhere and everywhere you find a lick of javascript.

"I think it should be included to the a new version as 4.74 of Drupal"

This would be nice, but it is so large and still being ironed out. I, too, would love to see it - or something like it - make it into an official 4.7.x iteration, though. For sites that rely heavily on a lot of contrib modules, a 5.0 upgrade might not happen for awhile, and it would be great to see the jQuery bits rolled back into the 4.7 branch.

Submitted by greggles@drupal.org on Mon, 2006-09-25 16:09.

In My Opinion: 4.7 should not be open for new features...it is stable and should only get bugfixes. Giving bugfixes to a stable release makes it less...stable...

The point of a patch like this is that if you are stuck on 4.7 you can still use jQuery if you are savvy enough to use the patch. I imagine that very few people using 4.7 expect a major change like this to come automatically in a tarball, hence it is provided as a patch. This is something that companies like Bryght or CivicSpaceLabs can provide as a value added extra feature...e.g. "use Bryght hosting to get JQuery before 5.0".

Submitted by admin on Mon, 2006-09-25 16:36.

Ah, the voice of reason.

You're right, greggles.

Submitted by David (not verified) on Sun, 2006-10-29 20:37.

Personally I find patches to be quite frustrating. If you are a Linux user, then they are very straight forward, navigate to the correct directory, and use something like 'patch filename.patch', no sweat.

Does anyone have a zipped version of these files, pre-patched?

Dave

Submitted by Pozycjonowanie (not verified) on Tue, 2007-01-09 13:01.

Someone else below asked this already about antispam scripts.
I am getting nailed with Spam on my website mails and in our blog website - now its offline too much spam. Is there anyway to stop this? If not, there really isn't any point in leaving it up and active. Any help will be greatly appreciated.

Submitted by Rings (not verified) on Fri, 2007-03-23 21:44.

You're absolutelly right Dave

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
More information about formatting options

Hosted By Dreamhost.com


Did you know?

You don't need to register at WWDD to post comments.

Isn't it annoying when you want to comment on an article, but don't want to go through the hassle of creating yet-another-user account at yet-another-website?

Feel free to comment anonymously, or log in with your username@drupal.org account.

We won't mind a bit.