Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - From a command line open several websites in multiple tabs

Reply
 
Old 08-21-2009   #1 (permalink)
Highlander


 
 

From a command line open several websites in multiple tabs

Hello all.

Running IE8 on an Windows XP Home machine. I'd like to be able to use
a command line to open several websites in multiple tabs in one IE
window.

I'm using the script found here:
http://jeremyrandall.org/technology/...a-command-line

What I'm wondering is if there's a purely VBScript solution to this,
without using JScript?

Any help would be greatly appreciated. Thanks!

- Dave

My System SpecsSystem Spec
Old 08-21-2009   #2 (permalink)
Tom Lavedas


 
 

Re: From a command line open several websites in multiple tabs

On Aug 21, 2:19*pm, Highlander <tron9...@xxxxxx> wrote:
Quote:

> Hello all.
>
> Running IE8 on an Windows XP Home machine. I'd like to be able to use
> a command line to open several websites in multiple tabs in one IE
> window.
>
> I'm using the script found here:http://jeremyrandall.org/technology/...in-internet-ex...
>
> What I'm wondering is if there's a purely VBScript solution to this,
> without using JScript?
>
> Any help would be greatly appreciated. Thanks!
>
> - Dave
The VBS translation of the example you cite is almost trivial ...

navOpenInBackgroundTab = &h1000
set oIE = CreateObject("InternetExplorer.Application")
oIE.Navigate2 "http://blogs.msdn.com"
oIE.Navigate2 "http://blogs.msdn.com/tonyschr",
navOpenInBackgroundTab
oIE.Navigate2 "http://blogs.msdn.com/oldnewthing",
navOpenInBackgroundTab
oIE.Navigate2 "http://blogs.msdn.com/ericlippert",
navOpenInBackgroundTab
oIE.Visible = true

I don't have IE7 or 8 here at work to test this, but I'm pretty sure
the syntax is fine.

Tom Lavedas
***********
My System SpecsSystem Spec
Old 08-21-2009   #3 (permalink)
mr_unreliable


 
 

Re: From a command line open several websites in multiple tabs

Highlander wrote:
Quote:

> What I'm wondering is if there's a purely VBScript solution to this,
> without using JScript?
>
hi Highlander,

Yes, that script could be easily re-written in vbs,
but why bother?

cheers, jw
____________________________________________________________

You got questions? WE GOT ANSWERS!!! ..(but, no guarantee
the answers will be applicable to the questions)
My System SpecsSystem Spec
Old 08-22-2009   #4 (permalink)
HL0105


 
 

Re: From a command line open several websites in multiple tabs

On Aug 21, 2:09*pm, mr_unreliable <kindlyReplyToNewsgr...@xxxxxx>
wrote:
Quote:

> Highlander wrote:
Quote:

> > What I'm wondering is if there's a purely VBScript solution to this,
> > without using JScript?
>
> hi Highlander,
>
> Yes, that script could be easily re-written in vbs,
> but why bother?
>
> cheers, jw
> ____________________________________________________________
>
> You got questions? *WE GOT ANSWERS!!! *..(but, no guarantee
> * * the answers will be applicable to the questions)
Tom - thanks for the VBS translation. I didn't realize it was that
easy.

mr_unreliable - I get your point of why even bother. I dunno, I just
like to stay with VBScript only if possible; I never work with
JScript. Maybe it's in case I want to enhance the script at some time
in the future, it'll be in a language I'm familiar with.
My System SpecsSystem Spec
Old 08-24-2009   #5 (permalink)
p byers


 
 

Re: From a command line open several websites in multiple tabs



Tom Lavedas wrote:
Quote:

> On Aug 21, 2:19 pm, Highlander <tron9...@xxxxxx> wrote:
Quote:

> > Hello all.
> >
> > Running IE8 on an Windows XP Home machine. I'd like to be able to use
> > a command line to open several websites in multiple tabs in one IE
> > window.
> >
> > I'm using the script found here:http://jeremyrandall.org/technology/...in-internet-ex...
> >
> > What I'm wondering is if there's a purely VBScript solution to this,
> > without using JScript?
> >
> > Any help would be greatly appreciated. Thanks!
> >
> > - Dave
>
> The VBS translation of the example you cite is almost trivial ...
>
> navOpenInBackgroundTab = &h1000
> set oIE = CreateObject("InternetExplorer.Application")
> oIE.Navigate2 "http://blogs.msdn.com"
> oIE.Navigate2 "http://blogs.msdn.com/tonyschr",
> navOpenInBackgroundTab
> oIE.Navigate2 "http://blogs.msdn.com/oldnewthing",
> navOpenInBackgroundTab
> oIE.Navigate2 "http://blogs.msdn.com/ericlippert",
> navOpenInBackgroundTab
> oIE.Visible = true
>
> I don't have IE7 or 8 here at work to test this, but I'm pretty sure
> the syntax is fine.
>
> Tom Lavedas
> ***********
Hi

I have used both the JScript and VBS versions of this Technique and delightfully they work - thanks to all
concerned !!


I would like to use the technique in WebPages

I have tried it in two ways - JScript in "Client-Side" script

and

(my real preference) "Server-Side" in ASP (VBScript)


I guess that I dont want to open another Window and therefore do mot need the line

set oIE = CreateObject("InternetExplorer.Application")

I am temporarily defeated to work out how to "set oIE" to the current/existing instance of IE

So that abruptly stopped the ASP method development !!!




So back to a desultry attempt again in JScript !!

I tried replacing "oIE" with "Window" - obviously, it is not that simple.




Hopefully some of the clever folks in here can/will point me in the right direction please




Reminders that it will not work in "not IE" browsers are un-necessary - I plan to use it in an "IE Only"
environment.


Thanks in advance
Pete (Northolt UK)


My System SpecsSystem Spec
Old 08-24-2009   #6 (permalink)
Paul Randall


 
 

Re: From a command line open several websites in multiple tabs


"p byers" <pb@xxxxxx-ltd.co.uk> wrote in message
news:4A9224C7.8545F640@xxxxxx-ltd.co.uk...
Quote:

>
>
> Tom Lavedas wrote:
>
Quote:

>> On Aug 21, 2:19 pm, Highlander <tron9...@xxxxxx> wrote:
Quote:

>> > Hello all.
>> >
>> > Running IE8 on an Windows XP Home machine. I'd like to be able to use
>> > a command line to open several websites in multiple tabs in one IE
>> > window.
>> >
>> > I'm using the script found
>> > here:http://jeremyrandall.org/technology/...in-internet-ex...
>> >
>> > What I'm wondering is if there's a purely VBScript solution to this,
>> > without using JScript?
>> >
>> > Any help would be greatly appreciated. Thanks!
>> >
>> > - Dave
>>
>> The VBS translation of the example you cite is almost trivial ...
>>
>> navOpenInBackgroundTab = &h1000
>> set oIE = CreateObject("InternetExplorer.Application")
>> oIE.Navigate2 "http://blogs.msdn.com"
>> oIE.Navigate2 "http://blogs.msdn.com/tonyschr",
>> navOpenInBackgroundTab
>> oIE.Navigate2 "http://blogs.msdn.com/oldnewthing",
>> navOpenInBackgroundTab
>> oIE.Navigate2 "http://blogs.msdn.com/ericlippert",
>> navOpenInBackgroundTab
>> oIE.Visible = true
>>
>> I don't have IE7 or 8 here at work to test this, but I'm pretty sure
>> the syntax is fine.
>>
>> Tom Lavedas
>> ***********
>
> Hi
>
> I have used both the JScript and VBS versions of this Technique and
> delightfully they work - thanks to all
> concerned !!
>
>
> I would like to use the technique in WebPages
>
> I have tried it in two ways - JScript in "Client-Side" script
>
> and
>
> (my real preference) "Server-Side" in ASP (VBScript)
>
>
> I guess that I dont want to open another Window and therefore do mot need
> the line
>
> set oIE = CreateObject("InternetExplorer.Application")
>
> I am temporarily defeated to work out how to "set oIE" to the
> current/existing instance of IE
>
> So that abruptly stopped the ASP method development !!!
>
>
>
>
> So back to a desultry attempt again in JScript !!
>
> I tried replacing "oIE" with "Window" - obviously, it is not that simple.
>
>
>
>
> Hopefully some of the clever folks in here can/will point me in the right
> direction please
>
>
>
>
> Reminders that it will not work in "not IE" browsers are un-necessary - I
> plan to use it in an "IE Only"
> environment.
>
>
> Thanks in advance
> Pete (Northolt UK)
Scripts running client side may be able to reference the browser they are in
with the words 'self' or 'me'. I can't find Microsoft documentation for it,
so you might want to groups.google this vbscript newsgroup for the word
self.

-Paul Randall


My System SpecsSystem Spec
Old 08-24-2009   #7 (permalink)
p byers


 
 

Re: From a command line open several websites in multiple tabs



Paul Randall wrote:
Quote:

> "p byers" <pb@xxxxxx-ltd.co.uk> wrote in message
> news:4A9224C7.8545F640@xxxxxx-ltd.co.uk...
Quote:

> >
> >
> > Tom Lavedas wrote:
> >
Quote:

> >> On Aug 21, 2:19 pm, Highlander <tron9...@xxxxxx> wrote:
> >> > Hello all.
> >> >
> >> > Running IE8 on an Windows XP Home machine. I'd like to be able to use
> >> > a command line to open several websites in multiple tabs in one IE
> >> > window.
> >> >
> >> > I'm using the script found
> >> > here:http://jeremyrandall.org/technology/...in-internet-ex...
> >> >
> >> > What I'm wondering is if there's a purely VBScript solution to this,
> >> > without using JScript?
> >> >
> >> > Any help would be greatly appreciated. Thanks!
> >> >
> >> > - Dave
> >>
> >> The VBS translation of the example you cite is almost trivial ...
> >>
> >> navOpenInBackgroundTab = &h1000
> >> set oIE = CreateObject("InternetExplorer.Application")
> >> oIE.Navigate2 "http://blogs.msdn.com"
> >> oIE.Navigate2 "http://blogs.msdn.com/tonyschr",
> >> navOpenInBackgroundTab
> >> oIE.Navigate2 "http://blogs.msdn.com/oldnewthing",
> >> navOpenInBackgroundTab
> >> oIE.Navigate2 "http://blogs.msdn.com/ericlippert",
> >> navOpenInBackgroundTab
> >> oIE.Visible = true
> >>
> >> I don't have IE7 or 8 here at work to test this, but I'm pretty sure
> >> the syntax is fine.
> >>
> >> Tom Lavedas
> >> ***********
> >
> > Hi
> >
> > I have used both the JScript and VBS versions of this Technique and
> > delightfully they work - thanks to all
> > concerned !!
> >
> >
> > I would like to use the technique in WebPages
> >
> > I have tried it in two ways - JScript in "Client-Side" script
> >
> > and
> >
> > (my real preference) "Server-Side" in ASP (VBScript)
> >
> >
> > I guess that I dont want to open another Window and therefore do mot need
> > the line
> >
> > set oIE = CreateObject("InternetExplorer.Application")
> >
> > I am temporarily defeated to work out how to "set oIE" to the
> > current/existing instance of IE
> >
> > So that abruptly stopped the ASP method development !!!
> >
> >
> >
> >
> > So back to a desultry attempt again in JScript !!
> >
> > I tried replacing "oIE" with "Window" - obviously, it is not that simple.
> >
> >
> >
> >
> > Hopefully some of the clever folks in here can/will point me in the right
> > direction please
> >
> >
> >
> >
> > Reminders that it will not work in "not IE" browsers are un-necessary - I
> > plan to use it in an "IE Only"
> > environment.
> >
> >
> > Thanks in advance
> > Pete (Northolt UK)
>
> Scripts running client side may be able to reference the browser they are in
> with the words 'self' or 'me'. I can't find Microsoft documentation for it,
> so you might want to groups.google this vbscript newsgroup for the word
> self.
>
> -Paul Randall
Thanks Paul
BUT

=================================================
<script language="JavaScript" type="text/javascript">
<!--

var navOpenInBackgroundTab = 0x1000;
//var oIE = new ActiveXObject("InternetExplorer.Application");



function newTab()
{
self.Navigate2("http://blogs.msdn.com", navOpenInBackgroundTab);
}
//-->
</script>

=================================================

Results in

"Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR
1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; yie8)
Timestamp: Mon, 24 Aug 2009 14:18:26 UTC


Message: Object doesn't support this property or method"


Looks like I need to do some more poking around !!

Pete (Northolt UK)

My System SpecsSystem Spec
Old 08-24-2009   #8 (permalink)
p byers


 
 

Re: From a command line open several websites in multiple tabs



Paul Randall wrote:
Quote:

> "p byers" <pb@xxxxxx-ltd.co.uk> wrote in message
> news:4A9224C7.8545F640@xxxxxx-ltd.co.uk...
Quote:

> >
> >
> > Tom Lavedas wrote:
> >
Quote:

> >> On Aug 21, 2:19 pm, Highlander <tron9...@xxxxxx> wrote:
> >> > Hello all.
> >> >
> >> > Running IE8 on an Windows XP Home machine. I'd like to be able to use
> >> > a command line to open several websites in multiple tabs in one IE
> >> > window.
> >> >
> >> > I'm using the script found
> >> > here:http://jeremyrandall.org/technology/...in-internet-ex...
> >> >
> >> > What I'm wondering is if there's a purely VBScript solution to this,
> >> > without using JScript?
> >> >
> >> > Any help would be greatly appreciated. Thanks!
> >> >
> >> > - Dave
> >>
> >> The VBS translation of the example you cite is almost trivial ...
> >>
> >> navOpenInBackgroundTab = &h1000
> >> set oIE = CreateObject("InternetExplorer.Application")
> >> oIE.Navigate2 "http://blogs.msdn.com"
> >> oIE.Navigate2 "http://blogs.msdn.com/tonyschr",
> >> navOpenInBackgroundTab
> >> oIE.Navigate2 "http://blogs.msdn.com/oldnewthing",
> >> navOpenInBackgroundTab
> >> oIE.Navigate2 "http://blogs.msdn.com/ericlippert",
> >> navOpenInBackgroundTab
> >> oIE.Visible = true
> >>
> >> I don't have IE7 or 8 here at work to test this, but I'm pretty sure
> >> the syntax is fine.
> >>
> >> Tom Lavedas
> >> ***********
> >
> > Hi
> >
> > I have used both the JScript and VBS versions of this Technique and
> > delightfully they work - thanks to all
> > concerned !!
> >
> >
> > I would like to use the technique in WebPages
> >
> > I have tried it in two ways - JScript in "Client-Side" script
> >
> > and
> >
> > (my real preference) "Server-Side" in ASP (VBScript)
> >
> >
> > I guess that I dont want to open another Window and therefore do mot need
> > the line
> >
> > set oIE = CreateObject("InternetExplorer.Application")
> >
> > I am temporarily defeated to work out how to "set oIE" to the
> > current/existing instance of IE
> >
> > So that abruptly stopped the ASP method development !!!
> >
> >
> >
> >
> > So back to a desultry attempt again in JScript !!
> >
> > I tried replacing "oIE" with "Window" - obviously, it is not that simple.
> >
> >
> >
> >
> > Hopefully some of the clever folks in here can/will point me in the right
> > direction please
> >
> >
> >
> >
> > Reminders that it will not work in "not IE" browsers are un-necessary - I
> > plan to use it in an "IE Only"
> > environment.
> >
> >
> > Thanks in advance
> > Pete (Northolt UK)
>
> Scripts running client side may be able to reference the browser they are in
> with the words 'self' or 'me'. I can't find Microsoft documentation for it,
> so you might want to groups.google this vbscript newsgroup for the word
> self.
>
> -Paul Randall
I tried the following ASP file and got the same error
"Object doesn't support this property or method"

(This is the complete ASP file !!)

===========================================================================

<%
navOpenInBackgroundTab = &h1000
''oIE = Server.CreateObject("InternetExplorer.Application")

''oIE.Navigate2 "http://blogs.msdn.com"
me.Navigate2 "http://blogs.msdn.com/tonyschr", navOpenInBackgroundTab
''oIE.Navigate2 "http://blogs.msdn.com/oldnewthing", navOpenInBackgroundTab
''oIE.Navigate2 "http://blogs.msdn.com/ericlippert", navOpenInBackgroundTab
''oIE.Visible = true
%>

Job Done


===========================================================================

Pete (Northolt UK)


My System SpecsSystem Spec
Old 08-24-2009   #9 (permalink)
Tom Lavedas


 
 

Re: From a command line open several websites in multiple tabs

On Aug 24, 10:54*am, p byers <p...@xxxxxx-ltd.co.uk> wrote:
Quote:

> Paul Randall wrote:
Quote:

> > "p byers" <p...@xxxxxx-ltd.co.uk> wrote in message
> >news:4A9224C7.8545F640@xxxxxx-ltd.co.uk...
>
Quote:
Quote:

> > > Tom Lavedas wrote:
>
Quote:
Quote:

> > >> On Aug 21, 2:19 pm, Highlander <tron9...@xxxxxx> wrote:
> > >> > Hello all.
>
Quote:
Quote:

> > >> > Running IE8 on an Windows XP Home machine. I'd like to be able to use
> > >> > a command line to open several websites in multiple tabs in one IE
> > >> > window.
>
Quote:
Quote:

> > >> > I'm using the script found
> > >> > here:http://jeremyrandall.org/technology/...in-internet-ex...
>
Quote:
Quote:

> > >> > What I'm wondering is if there's a purely VBScript solution to this,
> > >> > without using JScript?
>
Quote:
Quote:

> > >> > Any help would be greatly appreciated. Thanks!
>
Quote:
Quote:

> > >> > - Dave
>
Quote:
Quote:

> > >> The VBS translation of the example you cite is almost trivial ...
>
Quote:
Quote:

> > >> navOpenInBackgroundTab = &h1000
> > >> set oIE = CreateObject("InternetExplorer.Application")
> > >> oIE.Navigate2 "http://blogs.msdn.com"
> > >> oIE.Navigate2 "http://blogs.msdn.com/tonyschr",
> > >> navOpenInBackgroundTab
> > >> oIE.Navigate2 "http://blogs.msdn.com/oldnewthing",
> > >> navOpenInBackgroundTab
> > >> oIE.Navigate2 "http://blogs.msdn.com/ericlippert",
> > >> navOpenInBackgroundTab
> > >> oIE.Visible = true
>
Quote:
Quote:

> > >> I don't have IE7 or 8 here at work to test this, but I'm pretty sure
> > >> the syntax is fine.
>
Quote:
Quote:

> > >> Tom Lavedas
> > >> ***********
>
Quote:
Quote:

> > > Hi
>
Quote:
Quote:

> > > I have used both the JScript and VBS versions of this Technique and
> > > delightfully they work - thanks to all
> > > concerned !!
>
Quote:
Quote:

> > > I would like to use the technique in WebPages
>
Quote:
Quote:

> > > I have tried it in two ways - JScript in "Client-Side" script
>
Quote:
Quote:

> > > and
>
Quote:
Quote:

> > > (my real preference) "Server-Side" in ASP (VBScript)
>
Quote:
Quote:

> > > I guess that I dont want to open another Window and therefore do mot need
> > > the line
>
Quote:
Quote:

> > > set oIE = CreateObject("InternetExplorer.Application")
>
Quote:
Quote:

> > > I am temporarily defeated to work out how to "set oIE" to the
> > > current/existing instance of IE
>
Quote:
Quote:

> > > So that abruptly stopped the ASP method development !!!
>
Quote:
Quote:

> > > So back to a desultry attempt again in JScript !!
>
Quote:
Quote:

> > > I tried replacing "oIE" with "Window" - obviously, it is not that simple.
>
Quote:
Quote:

> > > Hopefully some of the clever folks in here can/will point me in the right
> > > direction please
>
Quote:
Quote:

> > > Reminders that it will not work in "not IE" browsers are un-necessary- I
> > > plan to use it in an "IE Only"
> > > environment.
>
Quote:
Quote:

> > > Thanks in advance
> > > Pete (Northolt UK)
>
Quote:

> > Scripts running client side may be able to reference the browser they are in
> > with the words 'self' or 'me'. *I can't find Microsoft documentation for it,
> > so you might want to groups.google this vbscript newsgroup for the word
> > self.
>
Quote:

> > -Paul Randall
>
> I tried the following ASP file and got the same error
> "Object doesn't support this property or method"
>
> (This is the complete ASP file !!)
>
> ===========================================================================
>
> <%
> navOpenInBackgroundTab = &h1000
> ''oIE = Server.CreateObject("InternetExplorer.Application")
>
> ''oIE.Navigate2 "http://blogs.msdn.com"
> me.Navigate2 "http://blogs.msdn.com/tonyschr", navOpenInBackgroundTab
> ''oIE.Navigate2 "http://blogs.msdn.com/oldnewthing", navOpenInBackgroundTab
> ''oIE.Navigate2 "http://blogs.msdn.com/ericlippert", navOpenInBackgroundTab
> ''oIE.Visible = true
> %>
>
> Job Done
>
> ===========================================================================
>
> Pete (Northolt UK)
Personally, I don't know, but I doubt you'll be able to do this
because it's a nasty behavior that any web browser should prohibit
from happening. How would you like every "Tom, Dick and Harry" web
builder to force you to close tabs that they opened against your
will? It's akin to Popups, but a bit more insidious. (I know, I know
- it's for your internal intranet app, but still ..).

Tom Lavedas
***********
My System SpecsSystem Spec
Old 08-25-2009   #10 (permalink)
p byers


 
 

Re: From a command line open several websites in multiple tabs



Tom Lavedas wrote:
Quote:

> On Aug 24, 10:54 am, p byers <p...@xxxxxx-ltd.co.uk> wrote:
Quote:

> > Paul Randall wrote:
Quote:

> > > "p byers" <p...@xxxxxx-ltd.co.uk> wrote in message
> > >news:4A9224C7.8545F640@xxxxxx-ltd.co.uk...
> >
Quote:

> > > > Tom Lavedas wrote:
> >
Quote:

> > > >> On Aug 21, 2:19 pm, Highlander <tron9...@xxxxxx> wrote:
> > > >> > Hello all.
> >
Quote:

> > > >> > Running IE8 on an Windows XP Home machine. I'd like to be able to use
> > > >> > a command line to open several websites in multiple tabs in one IE
> > > >> > window.
> >
Quote:

> > > >> > I'm using the script found
> > > >> > here:http://jeremyrandall.org/technology/...in-internet-ex...
> >
Quote:

> > > >> > What I'm wondering is if there's a purely VBScript solution to this,
> > > >> > without using JScript?
> >
Quote:

> > > >> > Any help would be greatly appreciated. Thanks!
> >
Quote:

> > > >> > - Dave
> >
Quote:

> > > >> The VBS translation of the example you cite is almost trivial ...
> >
Quote:

> > > >> navOpenInBackgroundTab = &h1000
> > > >> set oIE = CreateObject("InternetExplorer.Application")
> > > >> oIE.Navigate2 "http://blogs.msdn.com"
> > > >> oIE.Navigate2 "http://blogs.msdn.com/tonyschr",
> > > >> navOpenInBackgroundTab
> > > >> oIE.Navigate2 "http://blogs.msdn.com/oldnewthing",
> > > >> navOpenInBackgroundTab
> > > >> oIE.Navigate2 "http://blogs.msdn.com/ericlippert",
> > > >> navOpenInBackgroundTab
> > > >> oIE.Visible = true
> >
Quote:

> > > >> I don't have IE7 or 8 here at work to test this, but I'm pretty sure
> > > >> the syntax is fine.
> >
Quote:

> > > >> Tom Lavedas
> > > >> ***********
> >
Quote:

> > > > Hi
> >
Quote:

> > > > I have used both the JScript and VBS versions of this Technique and
> > > > delightfully they work - thanks to all
> > > > concerned !!
> >
Quote:

> > > > I would like to use the technique in WebPages
> >
Quote:

> > > > I have tried it in two ways - JScript in "Client-Side" script
> >
Quote:

> > > > and
> >
Quote:

> > > > (my real preference) "Server-Side" in ASP (VBScript)
> >
Quote:

> > > > I guess that I dont want to open another Window and therefore do mot need
> > > > the line
> >
Quote:

> > > > set oIE = CreateObject("InternetExplorer.Application")
> >
Quote:

> > > > I am temporarily defeated to work out how to "set oIE" to the
> > > > current/existing instance of IE
> >
Quote:

> > > > So that abruptly stopped the ASP method development !!!
> >
Quote:

> > > > So back to a desultry attempt again in JScript !!
> >
Quote:

> > > > I tried replacing "oIE" with "Window" - obviously, it is not that simple.
> >
Quote:

> > > > Hopefully some of the clever folks in here can/will point me in the right
> > > > direction please
> >
Quote:

> > > > Reminders that it will not work in "not IE" browsers are un-necessary - I
> > > > plan to use it in an "IE Only"
> > > > environment.
> >
Quote:

> > > > Thanks in advance
> > > > Pete (Northolt UK)
> >
Quote:

> > > Scripts running client side may be able to reference the browser they are in
> > > with the words 'self' or 'me'. I can't find Microsoft documentation for it,
> > > so you might want to groups.google this vbscript newsgroup for the word
> > > self.
> >
Quote:

> > > -Paul Randall
> >
> > I tried the following ASP file and got the same error
> > "Object doesn't support this property or method"
> >
> > (This is the complete ASP file !!)
> >
> > ===========================================================================
> >
> > <%
> > navOpenInBackgroundTab = &h1000
> > ''oIE = Server.CreateObject("InternetExplorer.Application")
> >
> > ''oIE.Navigate2 "http://blogs.msdn.com"
> > me.Navigate2 "http://blogs.msdn.com/tonyschr", navOpenInBackgroundTab
> > ''oIE.Navigate2 "http://blogs.msdn.com/oldnewthing", navOpenInBackgroundTab
> > ''oIE.Navigate2 "http://blogs.msdn.com/ericlippert", navOpenInBackgroundTab
> > ''oIE.Visible = true
> > %>
> >
> > Job Done
> >
> > ===========================================================================
> >
> > Pete (Northolt UK)
>
> Personally, I don't know, but I doubt you'll be able to do this
> because it's a nasty behavior that any web browser should prohibit
> from happening. How would you like every "Tom, Dick and Harry" web
> builder to force you to close tabs that they opened against your
> will? It's akin to Popups, but a bit more insidious. (I know, I know
> - it's for your internal intranet app, but still ..).
>
> Tom Lavedas
> ***********
It is a normal practice that when a user clicks on a Link or Button in a WebPage that a
new window is opened.
Especially when it is necessary to retain the visibility of information in the first
Window - and maybe "flip/flop" between the Windows

(hence 'target=_blank')

I 'umbly and respectfully suggest that this is quite different from intrusive, obnoxious,
pervasive PopUps - this is to do with Business/Logical Flow od Data !!!

Instead of a new window, a new Tab seems reasonable !!

On the pages that I have developed in anticipation of "target=_tab" there are two Radio
Buttons
One for 'New Window'
One for 'New Tab'
So the user can choose their prefered 'Way-of-working'

BUT

Thank you for your comment.

Pete (Northolt UK)

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
VBS script to open IE8 with specific websites in multiple TABS ? VB Script
how to open standard Run dialog from command line? General Discussion
how to Open notepad with a command-line argument VB Script
Open Scrreensaver Settings From the Command Line? Vista General
get command line to open in specified directory Vista account administration


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46