# Web Utils executeClientSideJS callback error

**URL:** <https://forum.servoy.com/t/web-utils-executeclientsidejs-callback-error/14543>\
**Category:** Classic Servoy\
**Created:** [August 26, 2011, 8:53am UTC](https://forum.servoy.com/t/web-utils-executeclientsidejs-callback-error/14543 "2011-08-26T08:53:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![wmoerdijk](https://avatars.discourse-cdn.com/v4/letter/w/43a26b/32.png) [@wmoerdijk](https://forum.servoy.com/u/wmoerdijk)\
**Post date:** [August 26, 2011, 8:53am UTC](https://forum.servoy.com/t/web-utils-executeclientsidejs-callback-error/14543/1 "2011-08-26T08:53:23Z")

</div>

Hi,

We are using the Web Utils plugin to extract the contents of a html\_area and save it to the server. In order to get the data we are using a callback funtion to do so. This has been working in a number of test environments without problems. Now we are getting ready for production and are using actual data in the system. This is where it is going wrong. As soon a the contents of the HTML\_AREA exceed approx 4000 characters the callback is not fired. There is no error message displayed, but the code just stops. There is a lot of info in the area, so we almost always go over the limit of 4000. Here is the code involved:

```auto
function dataObtainedSave(text) {
	content = '<body>' + text + '</body>';
	databaseManager.saveData();
	application.closeForm(true);
} 

plugins.WebClientUtils.executeClientSideJS('var vText = $(\'.the_html_area\').val();', dataObtainedSave,['vText']);

```

As said the code just stops, so the dataObtaindedSave is not firing, the data is not saved and the form is not closed. I’m really hoping someone can help here, since we can not go into production without this feature installed.

---

<div class="post-metadata">

**Author:** ![pbakker](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@pbakker](https://forum.servoy.com/u/pbakker)\
**Post date:** [August 29, 2011, 8:09am UTC](https://forum.servoy.com/t/web-utils-executeclientsidejs-callback-error/14543/2 "2011-08-29T08:09:04Z")

</div>

The callback to the server is done by creating a url containing the values. I guess you’re running into the url length limitations browsers put on the lenght of the url’s.

Paul

---

<div class="post-metadata">

**Author:** ![wmoerdijk](https://avatars.discourse-cdn.com/v4/letter/w/43a26b/32.png) [@wmoerdijk](https://forum.servoy.com/u/wmoerdijk)\
**Post date:** [August 29, 2011, 9:33am UTC](https://forum.servoy.com/t/web-utils-executeclientsidejs-callback-error/14543/3 "2011-08-29T09:33:48Z")

</div>

The error occurs independent of the browser used. In the report in this article: [Bad Credit Instant Loans - We Can Pay Up To £2500 Within 30 Minutes](http://www.boutell.com/newfaq/misc/urllength.html)  
I read that this should not be a problem when using a browser like firefox. As I said the error occurs in all browsers(including IE) at the same time.

In the doc for version 1.01 of the plugin it reads:

> Callback now uses Wicket.AjaxPost() instead of Wicket.AjaxGet() to allow for any size of data to be passed back

Wouter

---

<div class="post-metadata">

**Author:** ![pbakker](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@pbakker](https://forum.servoy.com/u/pbakker)\
**Post date:** [August 29, 2011, 9:58am UTC](https://forum.servoy.com/t/web-utils-executeclientsidejs-callback-error/14543/4 "2011-08-29T09:58:58Z")

</div>

I stand corrected.

Best to raise an issue on ServoyForge with a sample, so it can be looked at.

Paul

---

<div class="post-metadata">

**Author:** ![wmoerdijk](https://avatars.discourse-cdn.com/v4/letter/w/43a26b/32.png) [@wmoerdijk](https://forum.servoy.com/u/wmoerdijk)\
**Post date:** [August 29, 2011, 10:01am UTC](https://forum.servoy.com/t/web-utils-executeclientsidejs-callback-error/14543/5 "2011-08-29T10:01:27Z")

</div>

It’s in there with a sample solution.

---

<div class="post-metadata">

**Author:** ![wmoerdijk](https://avatars.discourse-cdn.com/v4/letter/w/43a26b/32.png) [@wmoerdijk](https://forum.servoy.com/u/wmoerdijk)\
**Post date:** [August 30, 2011, 8:33am UTC](https://forum.servoy.com/t/web-utils-executeclientsidejs-callback-error/14543/6 "2011-08-30T08:33:30Z")

</div>

Hi,

Just a quick update. Good news, this issue is fixed in the latest update (1.1.6) by Patrick. Thanks to Patrick for the update. ![:D]( "Very Happy")

R,

Wouter.
