Wasn't it you that said to me once "C'mon Rich show me your js skills" to which I replied "Why reinvent the wheel!"
[RFC|Merged] Include and use jQuery (originally for 3.2)
Re: [RFC|Accepted] Include and use jQuery
Do not hire Christian Bullock he won't finish the job and will keep your money
Re: [RFC|Accepted] Include and use jQuery
YesRMcGirr83 wrote:Wasn't it you that said to me once "C'mon Rich show me your js skills" to which I replied "Why reinvent the wheel!"
Has an irascible disposition.
Re: [RFC|Accepted] Include and use jQuery
To clarify, I meant replacing $ with jQuery in the diff posted so far for all code that runs in global scope (including inline event handlers).
Re: [RFC|Accepted] Include and use jQuery
I think jQuery in phpBB could have a few basic options:
-User can choose a specific version to use
-User can choose their preferred hosting method.
Here are some screenshots of that implemented in the ACP (I have implemented this in a MOD I developed, but have not released. It's pretty easy, and I can submit the code wherever if interested).
Version Select: Hosting method select:
-User can choose a specific version to use
-User can choose their preferred hosting method.
Here are some screenshots of that implemented in the ACP (I have implemented this in a MOD I developed, but have not released. It's pretty easy, and I can submit the code wherever if interested).
Version Select: Hosting method select:
Has an irascible disposition.
Re: [RFC|Accepted] Include and use jQuery
IIRC, it must be hosted locally, no CDN, etc.
Do not hire Christian Bullock he won't finish the job and will keep your money
Re: [RFC|Accepted] Include and use jQuery
Yep, I wouldn't want it to be hosted by google. I google is down, you whole site laggs because of that or doesn't work probably. (And yes, google can go down.)RMcGirr83 wrote:IIRC, it must be hosted locally, no CDN, etc.
Re: [RFC|Accepted] Include and use jQuery
As you can see in my previous post - give users the choice.RMcGirr83 wrote:IIRC, it must be hosted locally, no CDN, etc.
I just think it is cooler and more professional to add the option to choose. phpBB has so many restrictions/limitations as it is (it's why we MOD it so heavily).
Let the Admins determine what is the best way they want to serve up jQuery.
Otherwise, somebody will just create a MOD to make it do this anyways I already did (just haven't made it public since it looks like jQuery is coming to phpBB)
Has an irascible disposition.
Re: [RFC|Accepted] Include and use jQuery
The core code will be compatible with some specific version. Therefore that particular version should be loaded. In the event of a security issue we will update the bundled version and the new version will be loaded from then on.VSE+ wrote:I think jQuery in phpBB could have a few basic options:
-User can choose a specific version to use
This seems useful.VSE+ wrote: -User can choose their preferred hosting method.
Re: [RFC|Accepted] Include and use jQuery
We have to know which version to target, even if the file name is just "jquery.js". This information needs to go into somewhere where it can be found - coding guidelines perhaps? (Although I think coding guidelines now cover a lot more than just coding guidelines.)igorw wrote: I'm not very familiar with the API history of jQuery. But I believe there have been hardly any API breakages so far. Thus, I would suggest sticking with the latest 1.x. I'm not really a fan of having the version in the file name, because it means you have to change it in several places when a new version comes out.
Does jquery provide documentation for a particular version? That is, if 1.5 is currently the most recent release and 1.6 is released next month, two months from now can I browse the documentation of 1.5 (reasonably easily) to see what features I can or cannot use?
Perhaps someone can go to jquery support and inquire about backwards compatibility breaks in the 1.x line, as well as what their official policies are on this matter.
Re: [RFC|Accepted] Include and use jQuery
All versions and changelogs and release notes can be found here.nn- wrote:Does jquery provide documentation for a particular version? That is, if 1.5 is currently the most recent release and 1.6 is released next month, two months from now can I browse the documentation of 1.5 (reasonably easily) to see what features I can or cannot use?
http://docs.jquery.com/Downloading_jQuery
Has an irascible disposition.