krabourn
(Hey THIS is FUN)
2004-02-03 07:46 PM
Internet Explorer's Navigate method

I am trying to access a web page but not show the entire URL in the Address Bar.
This works:
Code:

$Computer = "Computer"
$IE = CreateObject("internetexplorer.application")
$IE.Navigate("http://ebiz.sbc.com/dlssms/SMS/findmachine.cfm?workstation=" + $Computer)
$IE.Visible = -1
$IE = 0



I was looking at Internet Explorer's Navigate method at http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/webbrowser/reference/methods/navigate.asp?frame=true. I think I can use the Post section, but it is not working? How do you make this work?
Code:

$Computer = "Computer"
$IE = CreateObject("internetexplorer.application")
$IE.Visible = -1
$IE.Navigate("http://ebiz.sbc.com/dlssms/SMS/findmachine.cfm","","","?workstation=" + $Computer,"")
$IE = 0



Thanks


ShaneEP
(MM club member)
2004-02-03 08:22 PM
Re: Internet Explorer's Navigate method

Does it need the ? if it is passed as a separate parameter? Maybe try something like...

Code:
$Computer = "Computer"

$IE = CreateObject("internetexplorer.application")
$IE.Visible = -1
$IE.Navigate("http://ebiz.sbc.com/dlssms/SMS/findmachine.cfm","","","workstation="+$Computer,"")
$IE = 0



krabourn
(Hey THIS is FUN)
2004-02-03 08:26 PM
Re: Internet Explorer's Navigate method

Nope I have tried that. I was hoping someone else had done this before. If all else fails I can hide all the bars.

Stevie
(Starting to like KiXtart)
2004-02-04 03:18 PM
Re: Internet Explorer's Navigate method

When you POST form data it needs to be specifically formatted. http://support.microsoft.com/default.aspx?scid=kb;EN-US;167658 This is a VB sample.

krabourn
(Hey THIS is FUN)
2004-02-05 05:07 PM
Re: Internet Explorer's Navigate method

Thanks. I have been side tracked with SMS 2003 stuff. I will look at that later.