Fie
Thu Jul 22 12:41:27 CDT 2004
Thank you.
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/hta/overview/htaoverview.asp
says that "The commandLine property returns an empty string when the HTA is
launched over the HTTP protocol."
I need to open the HTA through a URL, and pass the variables values from
either an HTML file or ASP file.
On IE browser I type in myserver/mydir/testoutlook.hta?ss=123.
alert(oHTA.commandLine) returns an empty string.
I then run it from the Start menu and type in J:\mydir\TestOutlook.HTA
s=123.
alert(oHTA.commandLine) returns J:\mydir\TestOutlook.HTA s=123.
So, unfortunately, this wont work when calling it on my IE browser.
Thank you.
"MikeB" <m.byerleyATVerizontDOTnet> wrote in message
news:uSwisD4bEHA.2812@tk2msftngp13.phx.gbl...
>
> "Fie Fie Niles" <fniles@wincitesystems.com> wrote in message
> news:e5nY0Y1bEHA.904@TK2MSFTNGP09.phx.gbl...
> > Thank you very much.
> > I have a problem where I need to pass some variables/values to the HTA.
> > In ASP pages, I could either do
> > sValue = Request.Form("txtBox1")
> > or
> > sValue = session("txtBox1")
> >
> > Can I pass a value to the HTA ?
>
> In the HtaApplication Parameters:
> <HTA:APPLICATION ID="oHTA"
> APPLICATIONNAME="AltDialog"
> CAPTION="yes"
> SYSMENU="yes"
> MAXIMIZEBUTTON="no"
> MINIMIZEBUTTON="no"
> SHOWINTASKBAR="no"
> SINGLEINSTANCE="yes"
> SCROLL="NO"
> BORDER="thin"
> BORDERSTYLE="dialog"
> VERSION="1.0"
> WINDOWSTATE="normal"
> ICON="time.ico">
>
> the oHTA is the HTA Application Object, and one of its' properties is
> "commandLine", so you can pass in arguments in to the HTA via the command
line.
> With multiple arguments, separate them with a character that appropriatlly
will
> not be a part of the arguments and then parse it accordingly.
>
>
>
> >
> > Thank you.
> >
> > "MikeB" <m.byerleyATVerizontDOTnet> wrote in message
> > news:uGkuKX0bEHA.3476@tk2msftngp13.phx.gbl...
> > >
> > > "Fie Fie Niles" <fniles@wincitesystems.com> wrote in message
> > > news:u%23Rq4S0bEHA.3476@tk2msftngp13.phx.gbl...
> > > > Thank you.
> > > > I will look for Micheal Harris postings.
> > > > What is HTA ?
> > >
> > > HyperTextApplication:
> > >
> > >
> >
>
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/hta/overview/htaoverview.asp
> > >
> > > > Thanks.
> > > >
> > > > "MikeB" <m.byerleyATVerizontDOTnet> wrote in message
> > > > news:e%237I4N0bEHA.2292@TK2MSFTNGP09.phx.gbl...
> > > > >
> > > > > "Fie Fie Niles" <fniles@wincitesystems.com> wrote in message
> > > > > news:%2323NbF0bEHA.1656@TK2MSFTNGP09.phx.gbl...
> > > > > > Thank you for your quick reply.
> > > > > > It is for our clients' intranet site.
> > > > >
> > > > > Do a search in this NG for some stuff Michael Harris posted that
might
> > be
> > > > > helpful. It has been awhile, but I seem to recall using HTA
either in
> > > > place of
> > > > > or in concert with ASP on an Intranet.
> > > > >
> > > > > The underlying reason for my suggestion is that with HTA, you
don't
> > have
> > > > to deal
> > > > > with the security settings, allowing the users to use their
browsers
> > > > "Inter" and
> > > > > "Intra" net without concern of the security settings.
> > > > >
> > > > > > You are correct, when I set the security settings to be the
> > following, I
> > > > am
> > > > > > able to get in to the page with no error.
> > > > > > "Download unsigned ActiveX controls" to Disable
> > > > > > "Initialize and script ActiveX controls not marked as safe" to
> > Prompt.
> > > > > >
> > > > > > But, I do not think this setup will be acceptable at our
clients'
> > > > intranet
> > > > > > site.
> > > > > > We need to create a task and appointment (calendar) on the
client's
> > > > machine
> > > > > > through a website. My colleague says there is a website that can
> > > > download
> > > > > > your flight itenarary to your Outlook.
> > > > > > I would greatly appreciate your suggestion on how to do this
using
> > > > either
> > > > > > Outlook application object or other objects.
> > > > > >
> > > > > > Thank you very much.
> > > > > >
> > > > > > "Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com>
wrote
> > in
> > > > > > message news:ez9ri1zbEHA.796@TK2MSFTNGP09.phx.gbl...
> > > > > > > You'd need some pretty low security settings in your zone in
your
> > > > browser
> > > > > > > for that to be allowed. Is this for a public site? An
intranet?
> > > > Just
> > > > > > for
> > > > > > > yourself?
> > > > > > >
> > > > > > > Ray at work
> > > > > > >
> > > > > > > "Fie Fie Niles" <fniles@wincitesystems.com> wrote in message
> > > > > > > news:eq$HpvzbEHA.2972@TK2MSFTNGP12.phx.gbl...
> > > > > > > > How do you create an Outlook application object in my web
page
> > using
> > > > > > > > VBscript? When I do the following code, I received an error
> > "ActiveX
> > > > > > > > component can't create object: 'Outlook.Application' ". The
same
> > > > code
> > > > > > runs
> > > > > > > > fine in VB 6. Thank you.
> > > > > > > >
> > > > > > > > <script language="VBScript">
> > > > > > > > set objOLApp = CreateObject("Outlook.Application")
> > > > > > > > </script>
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>