Atozed Forums

Full Version: Problem with calling Registered Function
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Howdy All!

I use the following code to call a registered function in my form from javascript:

executeAjaxEvent(\"&BarCode=\" + res,null,\"" + UpperCase(Name) + L".OnScanTicketClick\",false, null, false)");

If the 'res' variable has a value of '+12345-', the value passed to my registered function is '12345-'.

How do I get the leading  '+' value to NOT be stripped?

Thanks in advance,

Shane
executeAjaxEvent(\"&BarCode=\" + encodeURIComponent(res),null,\"" + UpperCase(Name) + L".OnScanTicketClick\",false, null, false)");
Thanks - that worked well!
You're welcome.  Its actually an Alexandre fix for a similar issue I had in the past.