# Update jQuery version

**URL:** <https://forum.servoy.com/t/update-jquery-version/17484>\
**Category:** Classic Servoy\
**Created:** [September 24, 2013, 10:31am UTC](https://forum.servoy.com/t/update-jquery-version/17484 "2013-09-24T10:31:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Janssenjos](https://avatars.discourse-cdn.com/v4/letter/j/ee7513/32.png) [@Janssenjos](https://forum.servoy.com/u/Janssenjos)\
**Post date:** [September 24, 2013, 10:31am UTC](https://forum.servoy.com/t/update-jquery-version/17484/1 "2013-09-24T10:31:45Z")

</div>

Hi,

Is it possible to update the jquery.js file that servoy is using?  
Now I have the follwing include:

```auto
<script type="text/javascript" src="resources/mask/jquery.min.js?w:lm=1360918136"></script>

```

But this version is too old, I need a newer version of jQuery. Is there any way to update the .js file that Servoy takes and includes?  
Or maybe a way to remove this include?

Thanks!

---

<div class="post-metadata">

**Author:** ![david](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@david](https://forum.servoy.com/u/david)\
**Post date:** [September 24, 2013, 10:35pm UTC](https://forum.servoy.com/t/update-jquery-version/17484/2 "2013-09-24T22:35:05Z")

</div>

The jquery resource is located in:

```auto
//you-host/servoy-webclient/resources/servoyjs/jquery/jquery-1.8.2.min.js

```

I would try replacing this file out with a new version (rename the new version the same as the old as it’s most likely referenced by exact name upstream somewhere). You’ll have to connect to this directory via webdav. (On a mac \> Finder \> Go menu \> Connect to server… \> [http://localhost:8080/servoy-webclient/ … yjs/jquery](http://localhost:8080/servoy-webclient/resources/servoyjs/jquery).)

The deal with Servoy’s various webdav directories is that they are generated by Servoy as web client solutions are spun up. If you modify one of those files yourself, Servoy will not overwrite your modification. So your “new” jquery file should be loaded in via the normal Servoy process of producing web pages.

---

<div class="post-metadata">

**Author:** ![Janssenjos](https://avatars.discourse-cdn.com/v4/letter/j/ee7513/32.png) [@Janssenjos](https://forum.servoy.com/u/Janssenjos)\
**Post date:** [September 25, 2013, 6:48am UTC](https://forum.servoy.com/t/update-jquery-version/17484/3 "2013-09-25T06:48:14Z")

</div>

Thanks for the answer. But i don’t really get it ![:)]( "Smile")

So everytime I import a new solution, i should replace the jquery file at that location.  
In development (i’m not on a mac) I go to [http://localhost:8084/servoy-webclient/ … js/jquery/](http://localhost:8084/servoy-webclient/resources/servoyjs/jquery/) (or …/jquery-1.8.2.min.js) and i get a 404 page.

Where does servoy gets the jquery.js file from, which it uses to put it there?

---

<div class="post-metadata">

**Author:** ![Janssenjos](https://avatars.discourse-cdn.com/v4/letter/j/ee7513/32.png) [@Janssenjos](https://forum.servoy.com/u/Janssenjos)\
**Post date:** [September 25, 2013, 7:19am UTC](https://forum.servoy.com/t/update-jquery-version/17484/4 "2013-09-25T07:19:40Z")

</div>

I’m going to use the following work-around:

I will use a javascript function to find the jquery.min.js and remove this include:[http://www.javascriptkit.com/javatutors/loadjavascriptcss2.shtml#.UkKGnYbIZMY](http://www.javascriptkit.com/javatutors/loadjavascriptcss2.shtml#.UkKGnYbIZMY).

And then i will include the latest jquery myself.

---

<div class="post-metadata">

**Author:** ![ngervasi](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@ngervasi](https://forum.servoy.com/u/ngervasi)\
**Post date:** [September 25, 2013, 8:24am UTC](https://forum.servoy.com/t/update-jquery-version/17484/5 "2013-09-25T08:24:36Z")

</div>

I’m not sure it’s a good idea, I would check with servoy support first.

---

<div class="post-metadata">

**Author:** ![david](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@david](https://forum.servoy.com/u/david)\
**Post date:** [September 25, 2013, 10:10pm UTC](https://forum.servoy.com/t/update-jquery-version/17484/6 "2013-09-25T22:10:51Z")

</div>

Just tested the webdav and turns out Servoy only exposes the …/templates directory via webdav. Checked with Troy and he has tested newer versions of jquery with Servoy using [URLRewrite](http://tuckey.org/urlrewrite/) and the following rule:

```auto
<rule enabled="true">
 <name>Servoy jQuery debug</name>
 <note>Find issues in included jQuery plugins</note>
 <from>^/servoy-webclient/resources/servoyjs/jquery/jquery-1.8.2.min.js(.*)$</from>
 <to last="true">/ds/jquery.debug.js$1</to>
</rule>

```

Apparently newer versions of jquery do break all kinds of things in Servoy web client though as Nicola warns.

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [September 26, 2013, 7:55am UTC](https://forum.servoy.com/t/update-jquery-version/17484/7 "2013-09-26T07:55:35Z")

</div>

from jquery 1.9 they removed a lot of depricated api (i still think this is really a bad move from them, on the wicket list there where also quite a lot of discussions about this)  
So many older stuff that did depend on that where completely broken.
