The book I have on FrontPage talks a lot about using JavaScript but
hardly any about VBScript.

Can I use a VBScript to validate dates in a web page?

Thanks.

Re: Can I use VBScript instead of JavaScript in FrontPage? by Thomas

Thomas
Sun Jun 10 10:35:01 CDT 2007

Only if you are running the VBScript server-side in ASP / ASP.net, otherwise you are limiting your
site to IE users under Windows only.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


"Bill" <bookreader127@yahoo.com> wrote in message news:1t5o631bsmdoeem3nb5n726iej8hmtmtaq@4ax.com...
> The book I have on FrontPage talks a lot about using JavaScript but
> hardly any about VBScript.
>
> Can I use a VBScript to validate dates in a web page?
>
> Thanks.



Re: Can I use VBScript instead of JavaScript in FrontPage? by Bill

Bill
Wed Jun 13 10:17:14 CDT 2007

On Sun, 10 Jun 2007 11:35:01 -0400, "Thomas A. Rowe" <tarowe@mvps.org>
wrote:

>Only if you are running the VBScript server-side in ASP / ASP.net, otherwise you are limiting your
>site to IE users under Windows only.

I have a limited number of users and they will all be using
IE/Windows.

Can you point me a FrontPage sample using vbScript? I guess I would
just do it like a javascript except change the "scripting language
name" to vbscript?

Thanks.

Re: Can I use VBScript instead of JavaScript in FrontPage? by Thomas

Thomas
Wed Jun 13 11:27:41 CDT 2007

Under the FP extensions on your local machine you would have to set the Default Scripting language
to VBScript (Tools |Web / Site Settings). This will then write all FP generated scripts, such as,
form field validation in VBScript, instead of the default JavaScript. If you are working with a
disk-based web locally you will not see this option, at least I don't under FP2000.

Is there a specific reason why you must use VBScript client-side instead of the internet default
client-side JavaScript?

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


"Bill" <bookreader127@yahoo.com> wrote in message news:6f2073lpl4h1mpg4rhpjep1tqss1b6ldq2@4ax.com...
> On Sun, 10 Jun 2007 11:35:01 -0400, "Thomas A. Rowe" <tarowe@mvps.org>
> wrote:
>
>>Only if you are running the VBScript server-side in ASP / ASP.net, otherwise you are limiting your
>>site to IE users under Windows only.
>
> I have a limited number of users and they will all be using
> IE/Windows.
>
> Can you point me a FrontPage sample using vbScript? I guess I would
> just do it like a javascript except change the "scripting language
> name" to vbscript?
>
> Thanks.



Re: Can I use VBScript instead of JavaScript in FrontPage? by Bill

Bill
Wed Jun 13 12:15:16 CDT 2007

On Wed, 13 Jun 2007 12:27:41 -0400, "Thomas A. Rowe" <tarowe@mvps.org>
wrote:

>Under the FP extensions on your local machine you would have to set the Default Scripting language
>to VBScript (Tools |Web / Site Settings). This will then write all FP generated scripts, such as,
>form field validation in VBScript, instead of the default JavaScript. If you are working with a
>disk-based web locally you will not see this option, at least I don't under FP2000.
>
>Is there a specific reason why you must use VBScript client-side instead of the internet default
>client-side JavaScript?

As a VB programmer, VBScript is more intuitive for me and easier to
work with. It has certain built-in functions that are not available
in JavaScript.

Thanks.

Re: Can I use VBScript instead of JavaScript in FrontPage? by Steve

Steve
Wed Jun 13 13:49:02 CDT 2007


"Bill" <bookreader127@yahoo.com> wrote in message
news:2f9073hsgfvt22qbj0p8jlo3g1v8al2k34@4ax.com...
> On Wed, 13 Jun 2007 12:27:41 -0400, "Thomas A. Rowe" <tarowe@mvps.org>
> wrote:
>
>>Under the FP extensions on your local machine you would have to set the Default
>>Scripting language
>>to VBScript (Tools |Web / Site Settings). This will then write all FP generated scripts,
>>such as,
>>form field validation in VBScript, instead of the default JavaScript. If you are working
>>with a
>>disk-based web locally you will not see this option, at least I don't under FP2000.
>>
>>Is there a specific reason why you must use VBScript client-side instead of the internet
>>default
>>client-side JavaScript?
>
> As a VB programmer, VBScript is more intuitive for me and easier to
> work with. It has certain built-in functions that are not available
> in JavaScript.
>
> Thanks.

Just as a matter of curiosity, what functions are lacking in javascript?

--

Steve Easton
Microsoft MVP FrontPage
FP Cleaner
http://www.95isalive.com/fixes/fpclean.htm
Hit Me FP
http://www.95isalive.com/fixes/HitMeFP.htm



Re: Can I use VBScript instead of JavaScript in FrontPage? by Bill

Bill
Wed Jun 13 14:41:11 CDT 2007

On Wed, 13 Jun 2007 14:49:02 -0400, "Steve Easton"
<admin@95isalive.com> wrote:

>
>"Bill" <bookreader127@yahoo.com> wrote in message
>news:2f9073hsgfvt22qbj0p8jlo3g1v8al2k34@4ax.com...
>> On Wed, 13 Jun 2007 12:27:41 -0400, "Thomas A. Rowe" <tarowe@mvps.org>
>> wrote:
>>
>>>Under the FP extensions on your local machine you would have to set the Default
>>>Scripting language
>>>to VBScript (Tools |Web / Site Settings). This will then write all FP generated scripts,
>>>such as,
>>>form field validation in VBScript, instead of the default JavaScript. If you are working
>>>with a
>>>disk-based web locally you will not see this option, at least I don't under FP2000.
>>>
>>>Is there a specific reason why you must use VBScript client-side instead of the internet
>>>default
>>>client-side JavaScript?
>>
>> As a VB programmer, VBScript is more intuitive for me and easier to
>> work with. It has certain built-in functions that are not available
>> in JavaScript.
>>
>> Thanks.
>
>Just as a matter of curiosity, what functions are lacking in javascript?

Just as an example for validating a page, IsDate( ) in VBScript will
return whether or not the parameter is a valid date.

I looked through the Java Script books and couldn't find a similar
function.

Is there one? However, I am just used to using VBScript in other
non-web projects. If there is a compelling reason, I would do so.
Again, being only usable by Microsoft / IE is OK.

I also read that if a client does not use MS/IE, the validation script
will run on the server. Is that true?

Thanks.

Re: Can I use VBScript instead of JavaScript in FrontPage? by Thomas

Thomas
Wed Jun 13 14:50:37 CDT 2007

Bill,

>> I also read that if a client does not use MS/IE, the validation script
>> will run on the server. Is that true?

Don't know if the above is true, but it will be easy to test once you have a page on line.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


"Bill" <bookreader127@yahoo.com> wrote in message news:rrh073hqh8dpime60nm3uij9ngupdcuv11@4ax.com...
> On Wed, 13 Jun 2007 14:49:02 -0400, "Steve Easton"
> <admin@95isalive.com> wrote:
>
>>
>>"Bill" <bookreader127@yahoo.com> wrote in message
>>news:2f9073hsgfvt22qbj0p8jlo3g1v8al2k34@4ax.com...
>>> On Wed, 13 Jun 2007 12:27:41 -0400, "Thomas A. Rowe" <tarowe@mvps.org>
>>> wrote:
>>>
>>>>Under the FP extensions on your local machine you would have to set the Default
>>>>Scripting language
>>>>to VBScript (Tools |Web / Site Settings). This will then write all FP generated scripts,
>>>>such as,
>>>>form field validation in VBScript, instead of the default JavaScript. If you are working
>>>>with a
>>>>disk-based web locally you will not see this option, at least I don't under FP2000.
>>>>
>>>>Is there a specific reason why you must use VBScript client-side instead of the internet
>>>>default
>>>>client-side JavaScript?
>>>
>>> As a VB programmer, VBScript is more intuitive for me and easier to
>>> work with. It has certain built-in functions that are not available
>>> in JavaScript.
>>>
>>> Thanks.
>>
>>Just as a matter of curiosity, what functions are lacking in javascript?
>
> Just as an example for validating a page, IsDate( ) in VBScript will
> return whether or not the parameter is a valid date.
>
> I looked through the Java Script books and couldn't find a similar
> function.
>
> Is there one? However, I am just used to using VBScript in other
> non-web projects. If there is a compelling reason, I would do so.
> Again, being only usable by Microsoft / IE is OK.
>
> I also read that if a client does not use MS/IE, the validation script
> will run on the server. Is that true?
>
> Thanks.



Re: Can I use VBScript instead of JavaScript in FrontPage? by Bill

Bill
Wed Jun 13 15:24:43 CDT 2007

On Wed, 13 Jun 2007 15:50:37 -0400, "Thomas A. Rowe" <tarowe@mvps.org>
wrote:

>Bill,
>
>>> I also read that if a client does not use MS/IE, the validation script
>>> will run on the server. Is that true?
>
>Don't know if the above is true, but it will be easy to test once you have a page on line.

Thanks, Thomas.

Can you help me with this one?

>> Can you point me a FrontPage sample using vbScript? I guess I would
>> just do it like a javascript except change the "scripting language
>> name" to vbscript?

Thanks again.

Re: Can I use VBScript instead of JavaScript in FrontPage? by Steve

Steve
Wed Jun 13 16:09:23 CDT 2007

There is one, it's hard to find though
Using Windows Explorer browse to: C:\Program Files\Microsoft Office\OFFICE11\1033
Double click the file: JSCRIPT5.CHM
Click the Index tab
Scroll down to: Date object constructor and click to open the page.
Click: See Also.
Click: Date Object Methods.
Scroll down and click: toLocaleString Method


--

Steve Easton
Microsoft MVP FrontPage
FP Cleaner
http://www.95isalive.com/fixes/fpclean.htm
Hit Me FP
http://www.95isalive.com/fixes/HitMeFP.htm

"Bill" <bookreader127@yahoo.com> wrote in message
news:rrh073hqh8dpime60nm3uij9ngupdcuv11@4ax.com...
> On Wed, 13 Jun 2007 14:49:02 -0400, "Steve Easton"
> <admin@95isalive.com> wrote:
>
>>
>>"Bill" <bookreader127@yahoo.com> wrote in message
>>news:2f9073hsgfvt22qbj0p8jlo3g1v8al2k34@4ax.com...
>>> On Wed, 13 Jun 2007 12:27:41 -0400, "Thomas A. Rowe" <tarowe@mvps.org>
>>> wrote:
>>>
>>>>Under the FP extensions on your local machine you would have to set the Default
>>>>Scripting language
>>>>to VBScript (Tools |Web / Site Settings). This will then write all FP generated
>>>>scripts,
>>>>such as,
>>>>form field validation in VBScript, instead of the default JavaScript. If you are
>>>>working
>>>>with a
>>>>disk-based web locally you will not see this option, at least I don't under FP2000.
>>>>
>>>>Is there a specific reason why you must use VBScript client-side instead of the
>>>>internet
>>>>default
>>>>client-side JavaScript?
>>>
>>> As a VB programmer, VBScript is more intuitive for me and easier to
>>> work with. It has certain built-in functions that are not available
>>> in JavaScript.
>>>
>>> Thanks.
>>
>>Just as a matter of curiosity, what functions are lacking in javascript?
>
> Just as an example for validating a page, IsDate( ) in VBScript will
> return whether or not the parameter is a valid date.
>
> I looked through the Java Script books and couldn't find a similar
> function.
>
> Is there one? However, I am just used to using VBScript in other
> non-web projects. If there is a compelling reason, I would do so.
> Again, being only usable by Microsoft / IE is OK.
>
> I also read that if a client does not use MS/IE, the validation script
> will run on the server. Is that true?
>
> Thanks.



Re: Can I use VBScript instead of JavaScript in FrontPage? by Thomas

Thomas
Wed Jun 13 16:15:36 CDT 2007

Yes, I can help you or you can download and install FireFox, Netscape or Opera to test with.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


"Bill" <bookreader127@yahoo.com> wrote in message news:dik07354ndi9dlhbe7u5tcvja9ffmtf637@4ax.com...
> On Wed, 13 Jun 2007 15:50:37 -0400, "Thomas A. Rowe" <tarowe@mvps.org>
> wrote:
>
>>Bill,
>>
>>>> I also read that if a client does not use MS/IE, the validation script
>>>> will run on the server. Is that true?
>>
>>Don't know if the above is true, but it will be easy to test once you have a page on line.
>
> Thanks, Thomas.
>
> Can you help me with this one?
>
>>> Can you point me a FrontPage sample using vbScript? I guess I would
>>> just do it like a javascript except change the "scripting language
>>> name" to vbscript?
>
> Thanks again.



Re: Can I use VBScript instead of JavaScript in FrontPage? by Bill

Bill
Wed Jun 13 20:41:02 CDT 2007

On Wed, 13 Jun 2007 17:15:36 -0400, "Thomas A. Rowe" <tarowe@mvps.org>
wrote:

>Yes, I can help you or you can download and install FireFox, Netscape or Opera to test with.

I meant could yo upoint me to a sample vb Sdcript in FrontPage.

The audience for this web site is restricted and will only use IE and
no other browsers.

Re: Can I use VBScript instead of JavaScript in FrontPage? by Bill

Bill
Wed Jun 13 20:41:34 CDT 2007

On Wed, 13 Jun 2007 17:09:23 -0400, "Steve Easton"
<admin@95isalive.com> wrote:

>There is one, it's hard to find though
>Using Windows Explorer browse to: C:\Program Files\Microsoft Office\OFFICE11\1033
>Double click the file: JSCRIPT5.CHM
>Click the Index tab
>Scroll down to: Date object constructor and click to open the page.
>Click: See Also.
>Click: Date Object Methods.
>Scroll down and click: toLocaleString Method

Thank you very much.

Re: Can I use VBScript instead of JavaScript in FrontPage? by Bill

Bill
Wed Jun 13 20:56:59 CDT 2007

On Wed, 13 Jun 2007 17:09:23 -0400, "Steve Easton"
<admin@95isalive.com> wrote:

>There is one, it's hard to find though
>Using Windows Explorer browse to: C:\Program Files\Microsoft Office\OFFICE11\1033
>Double click the file: JSCRIPT5.CHM
>Click the Index tab
>Scroll down to: Date object constructor and click to open the page.
>Click: See Also.
>Click: Date Object Methods.
>Scroll down and click: toLocaleString Method

I'm sorry. I didn't explain this correctly.

I know how to write a vbScript function.

How do I insert a vbScript into the HTML using FrontPage?

Or do I do it manually? If so, where does it go int the HTML code?

I meant to ask for a sample HTML file containing a vbScript function.
There, I think I got it right this time. <grin>

Thanks again.


Re: Can I use VBScript instead of JavaScript in FrontPage? by Steve

Steve
Thu Jun 14 07:21:02 CDT 2007

In FrontPage, with the page opened in the editor, click Tools,
Scroll down to Macro, in the menu that opens to the right click Visual Basic Editor.

--

Steve Easton
Microsoft MVP FrontPage
FP Cleaner
http://www.95isalive.com/fixes/fpclean.htm
Hit Me FP
http://www.95isalive.com/fixes/HitMeFP.htm

"Bill" <bookreader127@yahoo.com> wrote in message
news:hk7173940pki4q2bgbm3qqtp61150knavr@4ax.com...
> On Wed, 13 Jun 2007 17:09:23 -0400, "Steve Easton"
> <admin@95isalive.com> wrote:
>
>>There is one, it's hard to find though
>>Using Windows Explorer browse to: C:\Program Files\Microsoft Office\OFFICE11\1033
>>Double click the file: JSCRIPT5.CHM
>>Click the Index tab
>>Scroll down to: Date object constructor and click to open the page.
>>Click: See Also.
>>Click: Date Object Methods.
>>Scroll down and click: toLocaleString Method
>
> I'm sorry. I didn't explain this correctly.
>
> I know how to write a vbScript function.
>
> How do I insert a vbScript into the HTML using FrontPage?
>
> Or do I do it manually? If so, where does it go int the HTML code?
>
> I meant to ask for a sample HTML file containing a vbScript function.
> There, I think I got it right this time. <grin>
>
> Thanks again.
>



Re: Can I use VBScript instead of JavaScript in FrontPage? by Bill

Bill
Thu Jun 14 16:34:56 CDT 2007

On Thu, 14 Jun 2007 08:21:02 -0400, "Steve Easton"
<admin@95isalive.com> wrote:

>In FrontPage, with the page opened in the editor, click Tools,
>Scroll down to Macro, in the menu that opens to the right click Visual Basic Editor.

That's what I need! Thank you.