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 - Running JavaScript from VBS ?

Reply
 
Old 08-18-2008   #1 (permalink)
Oriane


 
 

Running JavaScript from VBS ?

Hi there,

I would like to run a javascript file directly from the desktop, like a
VBScript file.

The goal is to run this sort of script, which in turn will open an HTML page
inside a Windows window:
"window.open (http://www..., arg...)"

Thus, it will avoid the internet user from opening a navigator...

Besrt regards


My System SpecsSystem Spec
Old 08-18-2008   #2 (permalink)
Evertjan.


 
 

Re: Running JavaScript from VBS ?

Oriane wrote on 18 aug 2008 in microsoft.public.scripting.vbscript:
Quote:

> Hi there,
>
> I would like to run a javascript file directly from the desktop, like
> a VBScript file.
>
> The goal is to run this sort of script, which in turn will open an
> HTML page inside a Windows window:
> "window.open (http://www..., arg...)"
>
> Thus, it will avoid the internet user from opening a navigator...
cscript and wscript run .js jscript files.

Assign the .js to cscript,
or use a .bat to hide the calling line.

Seems off topic to me to ask about javascript here,
there are good dedicated NG's about jscript and javascript.


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
My System SpecsSystem Spec
Old 08-18-2008   #3 (permalink)
Tom Lavedas


 
 

Re: Running JavaScript from VBS ?

On Aug 18, 12:07 pm, "Oriane" <ori...@xxxxxx> wrote:
Quote:

> Hi there,
>
> I would like to run a javascript file directly from the desktop, like a
> VBScript file.
>
> The goal is to run this sort of script, which in turn will open an HTML page
> inside a Windows window:
> "window.open (http://www..., arg...)"
>
> Thus, it will avoid the internet user from opening a navigator...
>
> Besrt regards
Is it your intention to have a desktop short cut that takes a user
directly to a page in their default browser? If so, simply put the
URL on the Target line of the shortcut, as in ...

http://google.groups.com

If that's not what you're after, you'll need to try again to tell me
what you want, because I don't get it. Maybe someone else does, but I
don't. I don't see where JavaScript gets into the picture (or
VBScript for that matter), among other things.

Tom Lavedas
===========
http://members.cox.net/tglbatch/wsh/
My System SpecsSystem Spec
Old 08-18-2008   #4 (permalink)
Anthony Jones


 
 

Re: Running JavaScript from VBS ?



"Oriane" <oriane@xxxxxx> wrote in message
news:1A7434E3-AE45-4F7F-AECD-8CF766A89E0D@xxxxxx
Quote:

> Hi there,
>
> I would like to run a javascript file directly from the desktop, like a
> VBScript file.
>
> The goal is to run this sort of script, which in turn will open an HTML
page
Quote:

> inside a Windows window:
> "window.open (http://www..., arg...)"
In addition to Tom's comment why do you think you need Javascript to do this
anyway?


--
Anthony Jones - MVP ASP/ASP.NET


My System SpecsSystem Spec
Old 08-19-2008   #5 (permalink)
Oriane


 
 

Re: Running JavaScript from VBS ?


"Oriane" <oriane@xxxxxx> a écrit dans le message de
news:AECD39C6-0E46-4243-A79E-5E20748B3C62@xxxxxx
Quote:

> Hi Anthony,
> "Anthony Jones" <Ant@xxxxxx> a écrit dans le message de
> news:%23KNCJmXAJHA.5884@xxxxxx
Quote:

>> In addition to Tom's comment why do you think you need Javascript to do
>> this
>> anyway?
>>
> The overall goal is to open a intranet web site/page into a Windows window
> with a fixed size, no URL, no menu... that is to launch IE without the
> chrome. That's why I use "window.open", but this means that the users have
> to authorize pop up for my particular site, and that's what I would like
> to
> avoid.
>
> Of course I can imagine that running "window.open" in a js file outside
> the
> context of a navigator will not succeed... Nethertheless thank you for
> your
> help...and I apologize for being off topic...
>
> Oriane
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
javascript not running General Discussion
javascript Software
javascript is off Network & Sharing
javascript had it now i don't Vista General
javascript Vista music pictures video


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