FYI dlgopen: does not escape spaces

Hi everyone. It seems that when sending a URL to dlgopen, it no longer escapes the spaces. I found this out the hard way. If you are sending javascript variables to a link like

you will need to use the encodeURI function.

:slight_smile:

hi @growlingflea , wouldn’t encodeURIComponent() be better:

var URL = ... + "sdsd.php?to=" + encodeURIComponent(sendto) + "&replyID=" + encodeURIComponent(replyMessageId) +

That does sound better. As soon as I finish up some small usability issues, the SMS reminder tool and its documentation should be ready to submit. I hope you like it!!

1 Like