Schiz, judging from the lack of responses, I don't think so. But given that Attachments 2 doesn't integrate thickbox any more, I think there needs to be a jQuery extension. From this we can then have a ThickBox "sub-extension" (kinda like Attachments 2.0 and it's "sub-extension" Inline Images 1.1) and then all sorts of other jQuery sub-extensions. I like this idea
In theory, all this jQuery extension would need to do is add a single line to the header of each page. <script type="text/javascript" src="extension/jQuery/jquery.js"></script>This will add 19,019 bytes weight to each page (using the latest compressed from today, not the 15kb the jQuery page mentions *sigh*), but if you want the pretty effects...
If someone wants to point me in the right direction for adding a line to the header I'll do this (but then they could have done this quicker already!).
If JQuery can do the autocomplete on the whisper input box, I'll put it in the core STAT. I hate the code I hacked together to do that - I still find it quite buggy.
Also, referring to ThickBox as a "sub-extension" was really stupid — it's obviously a PLUGIN! After all, it's referred to as a plugin on the jQuery page!
Is Minisweeper right here about the following code adding a line to the header of each page?$Head->AddString()) Cos if he is, I'd like to get this going as an extremely simple extension, even if it ends up being short-lived because you (Mark) add it to the core.
So in theory I just need an extension with this in?$Head->AddString(<script type=\"text/javascript\" src=\"extension/jQuery/jquery.js\">))</script>/me shows his incompetence with PHP and escaping...
I love jquery's plugin style architecture.
Hot stuff: http://interface.eyecon.ro/demos/autocompleter.html
and some docs for it: http://interface.eyecon.ro/docs/autocomplete
$Head->AddString('<script type="text/javascript" src="extension/jQuery/jquery.js"></script>'); Although, that path looks like it might fail depending on the install location of the forum software. Look to some of the plugins that add custom stylesheets/scripts (Quotations is one) and see how they deal with that.
p.s.:
This will add 19,019 bytes weight to each page
Not entirely true -- it adds that weight on the first page load. The rest of the time it's cached, so it's not a big issue.
I realise about the caching, but it still adds that much to the first page load, which is one of the most important. Besides, mainly I was pointing out that the jQuery page was incorrectly saying how big the file is
Interesting stuff.. WordPress 2.2 was just realeased a few hours ago. Apparently WordPress is in the process of making a complete switch to JQuery:
"We now use jQuery for a number of internal functions, and hope to transition all of our JS to use it."
-- http://wordpress.org/development/2007/05/wordpress-22/
"Switched to jQuery for core JS, which is lighter and faster"
-- http://codex.wordpress.org/Version_2.2#Developer_.2F_Power_User_Stuff
considering the popularity of wordpress. this will have lot of affect in the javascript library space. Look for more apps to move to jquery. specially now that ext (http://extjs.com/deploy/ext/docs/index.html) also works with it
Comments
In theory, all this jQuery extension would need to do is add a single line to the header of each page.
<script type="text/javascript" src="extension/jQuery/jquery.js"></script>
This will add 19,019 bytes weight to each page (using the latest compressed from today, not the 15kb the jQuery page mentions *sigh*), but if you want the pretty effects...If someone wants to point me in the right direction for adding a line to the header I'll do this (but then they could have done this quicker already!).
Ah, it's right above where I'm typing right now (never used it).
I wouldn't know if it could, but looking on the plugins page there is an example of an autocomplete plugin.
Also, referring to ThickBox as a "sub-extension" was really stupid — it's obviously a PLUGIN! After all, it's referred to as a plugin on the jQuery page!
$Head->AddString())
Cos if he is, I'd like to get this going as an extremely simple extension, even if it ends up being short-lived because you (Mark) add it to the core.
So in theory I just need an extension with this in?
$Head->AddString(<script type=\"text/javascript\" src=\"extension/jQuery/jquery.js\">))</script>
/me shows his incompetence with PHP and escaping.../me goes off to actually learn some PHP instead of just cutting and pasting it around...
$Head->AddString('<script type="text/javascript" src="extension/jQuery/jquery.js"></script>');
Although, that path looks like it might fail depending on the install location of the forum software. Look to some of the plugins that add custom stylesheets/scripts (Quotations is one) and see how they deal with that.
p.s.: Not entirely true -- it adds that weight on the first page load. The rest of the time it's cached, so it's not a big issue.
P.S. Thanks for the code correction