Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Input on ajax callbacks not working
#6
I'll test it but ajaxCall() doesn't escape the input when it sends a GET request. It is up to the developer to encode it properly.

You might ask "why does it work when I type 06:20 in an input?".

Because in this case, a POST request is generated and the browser does most of the work.

I believe it will work if you use encodeURIComponent() on your parameters. It should be like:

Code:
<script language="javascript" type="text/javascript">function EditSchedule(d) { ajaxCall("EditSchedule","&1="+encodeURIComponent(d), true); }</script>

IntraWeb will decode them properly on the other side
Reply


Messages In This Thread
RE: Input on ajax callbacks not working - by Alexandre Machado - 10-22-2019, 07:48 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)