Atozed Forums
Problem with calling Registered Function - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: Problem with calling Registered Function (/thread-1691.html)



Problem with calling Registered Function - ShaneStump - 05-24-2020

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


RE: Problem with calling Registered Function - MJS@mjs.us - 05-24-2020

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


RE: Problem with calling Registered Function - ShaneStump - 05-24-2020

Thanks - that worked well!


RE: Problem with calling Registered Function - MJS@mjs.us - 05-24-2020

You're welcome.  Its actually an Alexandre fix for a similar issue I had in the past.