Can't seem to make server-side VBScript work 
Author Message
 Can't seem to make server-side VBScript work

What am I doing wrong?

I would expect this script to show "start - middle - end" but it shows only
"start -  - end".  I've tried it with one, two and three quote marks around
the literal word "middle", to no avail.

It would appear that server-side scripts aren't working on my IIS 3.0 server
(with FP98 Gold Server Extensions installed; FP Server Administrator reports
V3.0.2.926, and "server configuration file" is unused).

Other information:  The Web Page properties are set for VBScript on all
directories of the website, and permissions are Read and Execute.  I've
proven to my satisfaction that client-side VBScript works.

Any help gratefully appreciated.  I don't know what I don't know!

The simplest test script I could imagine:

<html>
<head>
<title>Server-side VBScript test</title>
</head>
<body>
<p>start - <%= """middle"""%> - end</p>
</body>
</html>



Wed, 31 May 2000 03:00:00 GMT  
 Can't seem to make server-side VBScript work

1)  make sure you have defined a virtual directory for you web (iis mgr)
2)  make sure your page extension is .asp

cheers

Quote:

>What am I doing wrong?

>I would expect this script to show "start - middle - end" but it shows only
>"start -  - end".  I've tried it with one, two and three quote marks around
>the literal word "middle", to no avail.

>It would appear that server-side scripts aren't working on my IIS 3.0
server
>(with FP98 Gold Server Extensions installed; FP Server Administrator
reports
>V3.0.2.926, and "server configuration file" is unused).

>Other information:  The Web Page properties are set for VBScript on all
>directories of the website, and permissions are Read and Execute.  I've
>proven to my satisfaction that client-side VBScript works.

>Any help gratefully appreciated.  I don't know what I don't know!

>The simplest test script I could imagine:

><html>
><head>
><title>Server-side VBScript test</title>
></head>
><body>
><p>start - <%= """middle"""%> - end</p>
></body>
></html>



Thu, 01 Jun 2000 03:00:00 GMT  
 Can't seem to make server-side VBScript work

Try this instead:

<html>
<head>
<title>start</title>
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
</head>
<body>
<p>start</p>
<p><%Response.Write "<B>middle</B>"
%></p>
<p>&nbsp;</p>
<p>end</p>
</body>
</html>

You need to read up on VB script syntax and get familiar with objects,
properties, methods, etc. (so do I :) Then you can script to your hearts
content!

Some great sites:

The following places offer free support for Microsoft FrontPage:
Microsoft FrontPage Support Options at
http://www.microsoft.com/frontpage/support.htm
Microsoft FrontPage Advanced Support Options at
http://support.microsoft.com/support/c.asp?PR=FPG&M=F
Akorn Access also has a very helpful e-mailing list you can be on;
you can subscribe at http://www.akorn.net/fpreffaq.htm
MD Tips at http://www.websunlimited.com/mdtips.htm
Keith Parnell's FrontPage Help at
http://surfdesign-webs.com/frontpage
FrontPage 98 Refugee Camp at http://www.TNTenterprises.com/frontpage/
Microsoft FrontPage Support Area at
http://www.pmpcs.com/support/frontpage.htm
Peter Perchansky,  Computer Consultant & Microsoft FrontPage MVP
PMP Computer Solutions
FrontPage Web Hosting at
http://www.pmpcs.com/services/fpwebhosting.htm
FrontPage Support http://www.pmpcs.com/support/frontpage.htm
Kevin Spencer's page - lots of good stuff there.
http://www.connectrans.com/takempis/

Stephen Genusas Frequently Asked Questions
http://www.15seconds.com/faq/default.asp

Hope that helps,

James Schuldes
Information Processing Consultant
School of Business Administration
University of Wisconsin - Milwaukee

http://www.uwm.edu/Dept/Business/SBA

Quote:

>What am I doing wrong?

>I would expect this script to show "start - middle - end" but it shows only
>"start -  - end".  I've tried it with one, two and three quote marks around
>the literal word "middle", to no avail.

>It would appear that server-side scripts aren't working on my IIS 3.0
server
>(with FP98 Gold Server Extensions installed; FP Server Administrator
reports
>V3.0.2.926, and "server configuration file" is unused).

>Other information:  The Web Page properties are set for VBScript on all
>directories of the website, and permissions are Read and Execute.  I've
>proven to my satisfaction that client-side VBScript works.

>Any help gratefully appreciated.  I don't know what I don't know!

>The simplest test script I could imagine:

><html>
><head>
><title>Server-side VBScript test</title>
></head>
><body>
><p>start - <%= """middle"""%> - end</p>
></body>
></html>



Fri, 02 Jun 2000 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Server Side Includes don't work

2. Calling Server Side JScript from Server Side VBScript

3. define a measurement doesn't seem to work

4. location.replace doesn't seem to work

5. comparisons between decimal and hex values doesn't seem to work

6. response.expires doesn't seem to work!

7. My Script...Doesn't Seem to Work

8. CDONTS.DLL doesn't seem to work.

9. STMAdmin.dll to query NT Log doesn't seem to work properly

10. focus() doesn't seem to work in IE-6

11. Simple server-side VBScript not working

12. Server side VBScript and Netscape not working correctly.

 

 
Powered by phpBB® Forum Software