Page 1 of 1

Some text values causing javascript errors

PostPosted: 11 Jun 2016 00:28
by sbsllc
I have a JQAutoComplete field in my app and some of customer data that is displayed contains a " character. This seems to cause a javascript error and disables the field. The javascript error is:

Error in processAjaxExecute when evaluating: $("#IWCGJQAUTOCOMPLETE3_JQ").val("CB6,CW,24VDC,3/4" ,1");var ui=$("#IWCGJQAUTOCOMPLETE3_JQ");
ui.autocomplete("option","disabled",false);$("#IWCGJQAUTOCOMPLETE3_JQ").removeAttr("disabled");
missing ) after argument list


eval(this.VarName + "= null;");


Is there anyway around this error so I can load data with a " character?
This also seems to happen with a JQDropDown field.

Thanks!

Re: Some text values causing javascript errors

PostPosted: 15 Jun 2016 12:07
by sbsllc
Any thoughts on this? Thanks.

Re: Some text values causing javascript errors

PostPosted: 15 Jun 2016 14:12
by Alexander Bulei
Hi sbsllc,

How are you populating?

Re: Some text values causing javascript errors

PostPosted: 15 Jun 2016 14:19
by sbsllc
Hi Alexander,

Directly from the database. I have the DataSource and FieldName properties set.

Re: Some text values causing javascript errors

PostPosted: 13 Jul 2016 15:23
by sbsllc
I installed version 3.0.0.23 and I no longer get a javascript error with special characters but data rendered in the control is being cut off.
The data I am loading is CB6,CW,24VDC,3/4" ,1 but once the data is display it shows CB6,CW,24VDC,3/4

Re: Some text values causing javascript errors

PostPosted: 13 Jul 2016 16:38
by Alexander Bulei
Hi sbsllc,

I have created the simple testcase. Please check.
Even come cutted from DS...

Best Regards.

Re: Some text values causing javascript errors

PostPosted: 13 Jul 2016 16:54
by sbsllc
I am having problems getting that test case to run locally but in my testing the data is coming from a DS and is getting cut off.
It saves to the database properly and when the control first displays I see the full value but it updates with the truncated value.

Re: Some text values causing javascript errors

PostPosted: 14 Jul 2016 17:57
by Alexander Bulei
Hi,

I have implemented some changes in component, it seems work fine now.
Available in next build.

Best Regards.