WebView Load Html vs Load Url

Cableguy

Expert
Licensed User
Longtime User
It's me again!!!

SO I have this new issue...

Say I have a web page with a Form, and I load it tjrough the Load Url method...The Form works perfectly, and the redirection is done. BUT if I first retrieve the html code and refeed it to the WebView using LoadHtml, the Redirect fails, as it seems to search for a local file instead of "going on-line", is this the normal behaviour???
 
Hi.

Look at the action attribute of the form.

The form will submit itself to the URL specified in the action attribute.

However a form could have an empty action attribute - when it is submitted it is submitted to the page that contains the form.
(The page submits to itself).

If you load such a form from the internet then it will work as intended, but loaded locally it will no longer submit to the original server.

Martin.
 
Upvote 0
Hi.

Look at the action attribute of the form.

The form will submit itself to the URL specified in the action attribute.

However a form could have an empty action attribute - when it is submitted it is submitted to the page that contains the form.
(The page submits to itself).

If you load such a form from the internet then it will work as intended, but loaded locally it will no longer submit to the original server.

Martin.

Thanks Martin...That's what I suspected...
 
Upvote 0
Back
Top