craig_phillips2
10-01-2001, 06:48 AM
I am using the inet control to open a url locally. The url is a html file stored locally. However, the html file posts data to a remote html file using javascript. The html file is setup perfectly, it works under internet explorer. However, the point in using the Inet control is to open the document secretively. Not opening explorer, and keeping the activity hidden from the user. However, the local html file uses JavaScript to post and validate the data. I am just wondering if Inet Control supports JavaScript because it opens the url but it doesnt seem to work as it would if execute by internet explorer. When executed i should get a text message to my mobile phone. but i dont receive one with the inet control. Any idea or recommendations for doing it a better way?
Cheers
ChiefRedBull
10-01-2001, 10:37 AM
The Inet control is not what you should be using. It does the wrong thing, it doesn't "open" a URL, it merely reads the info in there. For example - if you put
<font color=blue>text1.text = Inet1.OpenURL (localFile)</font color=blue>
Then <font color=red>Text1.Text</font color=red> would contain the HTML for <font color=red>localFile</font color=red>
To load a page you have to use the webbrowser control (It's basically Internet Explorer). If you want to hide the activity from your user (not advisable... i dont like hidden internet activity) then just set its visible property to false.
images/icons/smile.gif
Chief
"How are we to learn, if those that know will not teach... ?" - Me.
Garrett Sever
10-01-2001, 02:02 PM
Chief,
Congrats on your Expert title!
-<font color=purple>The Hand</font color=purple>
<font color=green>All your code are belong to us...</font color=green> images/icons/tongue.gif
ChiefRedBull
10-01-2001, 02:45 PM
Thanks Hand!
<font color=blue>I</font color=blue> <font color=green>feel</font color=green> <font color=red>I</font color=red> <font color=blue>need</font color=blue> <font color=green>a</font color=green> <font color=red>new</font color=red> <font color=blue>color</font color=blue> <font color=green>though....</font color=green> <font color=red>(hint</font color=red> <font color=blue>hint</font color=blue> <font color=green>Mods</font color=green>/<font color=red>Admins</font color=red> images/icons/wink.gif<font color=red>)</font color=red>
Chief
"How are we to learn, if those that know will not teach... ?" - Me.
Thinker
10-01-2001, 04:13 PM
Not that there is anything wrong with Chief's idea, I just wanted to point
out that you can use the Internet Transfer Control to accomplish what
you need, just not the way you want to do it. Basically, you will have to
decipher what the javascript is really doing. All form submits are really
just html, the javascript is just giving some extra functionallity. Once
you understand what each form input value is, it is just a matter of
executing the correctly formated Post command with the ITC. You don't
need to mess with the locally stored html.
I think therefore I am... sometimes right. images/icons/wink.gif
ChiefRedBull
10-03-2001, 06:11 AM
I see what you mean Thinker, but surely the page needs to be parsed before anything happens. The Inet merely receives raw code does it not? Whereas the Webbrowser parses and "executes" it. In order to submit forms, be it via JS or HTML, you need to "execute" the page, using a webbrowser of some sort.
You may be able to do it via Inet.Execute, but I'm not sure how. I'll look into it when I get home
Chief
"How are we to learn, if those that know will not teach... ?" - Me.
Derek Stone
10-03-2001, 01:02 PM
No, you do not need to execute anything to submit a form.
Just post the correct data to the server.
I'd like to be able to give you an example but I don't have one at the moment.
Good Luck
-cl
ChiefRedBull
10-03-2001, 02:19 PM
Re-read Thinkers post, and realisation dawns.
Of course - the <font color=red>Inet1.Execute "POST" etc...</font color=red>
Whoopsy. images/icons/wink.gif
Chief
"How are we to learn, if those that know will not teach... ?" - Me.