I have a textfield that a user can enter a url into and it will load the html of that website into a textfield.
It works fine as long as someone enters http or https in the beginning, but returns nothing if someone just types “www.psu.edu” for example. So I put a regEx in to check what is entered and it will append “http://” to the url if it’s missing. That seems to work fine as evidenced in the msgBox I get after the regEx search. Even though the url has now been ‘fixed’, it still returns nothing. But if I type “http://www.psu.edu” i get the html. I don’t understand why it’s not working when I fix the url. Here is the code. BTW, I’m using XOJO 2018 r2 on an older Mac.