Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Jquery & vanilla
Is there an initiative to incorporate jquery with vanilla?
0
This discussion has been closed.
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