Does Web Author Provide jQuery Support?

Are you missing a feature? Request its implementation here.
dreifsnider
Posts: 105
Joined: Thu Aug 30, 2018 10:06 pm

Does Web Author Provide jQuery Support?

Post by dreifsnider »

Hi,

I'm curious if Web Author natively supports/includes jQuery? I am developing a JS plugin and was wondering if I can use jQuery syntax and selectors.

If it doesn't, what's the best way to include support for jQuery?

Thanks!

Daniel
Gabriel Titerlea
Site Admin
Posts: 95
Joined: Thu Jun 09, 2016 2:01 pm

Re: Does Web Author Provide jQuery Support?

Post by Gabriel Titerlea »

Hello,
At the moment JQuery is loaded in Web Author, but we won't guarantee that it will be available in future versions.
The best approach would be to package JQuery yourself, with the plugin code. And use JQuery.noconflict to avoid JQuery version conflicts.
Best,
Gabriel
dreifsnider
Posts: 105
Joined: Thu Aug 30, 2018 10:06 pm

Re: Does Web Author Provide jQuery Support?

Post by dreifsnider »

Hi Gabriel,

Thank you for your reply. I will investigate packaging jQuery alongside the plugin code. I would like to avoid having to package it for every plugin that we build, so I'm wondering if we could create a plugin that only contains jQuery but is still available to other plugins. Perhaps we could use the WebappStaticResourcesFolder plugin extension to add the min file to a resources folder.

Thanks for the tip about using Jquery.noconflict too.

Daniel
Gabriel Titerlea
Site Admin
Posts: 95
Joined: Thu Jun 09, 2016 2:01 pm

Re: Does Web Author Provide jQuery Support?

Post by Gabriel Titerlea »

Hello,

You can expose a WebappStaticResourcesFolder in a plugin and load jquery from that folder by writing a script tag in the oxygen.html file.

Best,
Gabriel
Post Reply