cancel
Showing results for 
Search instead for 
Did you mean: 

SAP UI5 and Newer JQuery

Former Member
0 Kudos

http://scn.sap.com/people/jemin.tanna/blog/2013/10/08/sap-ui5-and-newer-jquery

Sharing a blog I wrote for combining newer JQuery features on existing SAP UI5 controls.

Bricks and Bats Welcome.

Accepted Solutions (1)

Accepted Solutions (1)

AndreasKunz
Advisor
Advisor
0 Kudos

Hi Jemin,

no bricks nor bats, just a comment I also want to repeat here, so people are aware of the easier built-in solution:

UI5 comes with different jQuery versions included and there is a special version of the UI5 core that can be easily combined with other jQuery versions:

If you load  sap-ui-core-nojQuery.js  instead of  sap-ui-core.js, UI5 will use any already loaded jQuery version.

So you don't need the trick described above: just load a jQuery version of choice (only tested with 1.7.x-1.10.x) and then start the UI5 bootstrap without jQuery.

UI5 1.18 comes with jQuery 1.10.1 included as an option, see:

https://openui5.hana.ondemand.com/resources/sap/ui/thirdparty/jquery/jquery-1.10.1-dbg.js

The next version will include jQuery 1.10.2.

But you are absolutely right, the included version is lagging behind (1.11 is not included yet, either) because we need to do testing and our own development time and the releases of jQuery and UI5 are not in sync.

Still thanks for the effort of posting the proposed solution!

Regards

Andreas

hofmann
Active Contributor
0 Kudos
because we need to do testing and our own development time and the releases of jQuery and UI5 are not in sync.

Is there any site / report published were users can see which version of jQuery was tested and if its working? Or will this be possible when the tests are released? So everyone can "donate" time to jQuery compatibility tests.

Former Member
0 Kudos

Hi Andreas,

This a good learning for me too, thanks...the only worry I had was that if we drive the UI5 on higher version...we might have some bugs ...and no support.

Best Regards,

Jemin

AndreasKunz
Advisor
Advisor
0 Kudos

Hi Jemin,

all the jQuery versions that are bundled with UI5 (i.e. up to 1.10) are supported, I'd say this also covers additional patch versions like 1.10.3 etc.

Only with 1.11 there might be no official support at the moment, but UI5 of course will support this in the future, so when you encounter an issue I don't think people would just send you away - they'd rather use this as trigger to finally make UI5 work well with 1.11.

Regards

Andreas

AndreasKunz
Advisor
Advisor
0 Kudos

Hi Tobias,

hm... I'm not sure it is reliably documented in the release notes because it does not relate to a concrete code change. You might see hints when commit messages talk about a certain jQuery version.

We want to get better regarding information about the major new features in releases, so there you would be informed about support for new jQuery versions.

Best source is to check which versions of jQuery are included with UI5. Currently the highest is 1.10.1 (soon 1.10.2), so you know 1.10 is the highest supported version.

There is no test schedule and no process to contribute to the testing at the moment...

Regards

Andreas

Answers (1)

Answers (1)

didier_bueno
Explorer
0 Kudos

Don't you think it would be better if you use jQuery.noConflict() function?

jQuery.noConflict() | jQuery API Documentation

Former Member
0 Kudos

Hi Didier,

From what I understand...the no-conflict will only avoid overriding of $ for example...I wanted to use existing as well as new version.

Best Regards,

Jemin