Web Utils executeClientSideJS callback error

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:

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.

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

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
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

I stand corrected.

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

Paul

It’s in there with a sample solution.

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

R,

Wouter.