Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with calling Registered Function
#1
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
Reply
#2
executeAjaxEvent(\"&BarCode=\" + encodeURIComponent(res),null,\"" + UpperCase(Name) + L".OnScanTicketClick\",false, null, false)");
Reply
#3
Thanks - that worked well!
Reply
#4
You're welcome.  Its actually an Alexandre fix for a similar issue I had in the past.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)