Solved

ASP's / VBScript behavior in MSIE 3.02

Posted on 1998-05-27
3
255 Views
Last Modified: 2013-12-25
I have installed Visual Interdev and have installed all of the server components on a system with Win95, the client components share the same machine. I have had pretty good luck developing asp's using the wizards within Visual Interdev but when I try to create an asp from scratch it doesn't respond properly.

Below is the code for (1).htm file and (1).asp:

------------VB5DemoForm.htm-------------------------------------------------
<HTML>
<HEAD>
<TITLE>VB% Active Server Demonstration Request Form</TITLE>
</HEAD>
<BODY bgcolor="White">
<h2>Demonstration Input Form</h2>
<h3>This Demonstration Will Calculate Your Approximate Age In Months</h3>
<pre>
<FORM METHOD=POST ACTION="VB5DemoForm.asp">
<p><b>Your First Name:<INPUT TYPE="text" NAME="fNameVar" SIZE=40></b></p>
<p><b> Your Last Name:<INPUT TYPE="text" NAME="lNameVar" SIZE=40></b></p>
<p><b>       Your Age:<INPUT TYPE="text" NAME="AgeVar" SIZE=10></b></p>
</pre>
<INPUT TYPE="Submit" VALUE="Do It"><INPUT TYPE="Reset" VALUE="Clear">
</BODY>
</HTML>

----------VB5DemoForm.asp------------------------------------------------------
<%@ LANGUAGE="VBSCRIPT" %>
<HTML>
<HEAD>
      <TITLE>VB5 Active Server Response Form Demonstration</TITLE>
</HEAD>
<BODY bgcolor="White">
<h2>Demonstration Response Form</h2>
<%FirstName = Request.Form("fNameVar")
  LastName = Request.Form("lNameVar")
  AgeYr = Request.Form("AgeVar")
  AgeMo = AgeYr * 12%>
 
<%Response.Write(FirstName & " " & LastName)%>
Your Age In Months Is
<%Response.Write(CStr(AgeMo))%>  
</BODY>
</HTML>
-------------------------------------------------------------------------------

When I fill out the form in the .htm file within MSIE and click on the submit ("Do It") command button the file download dialog box appears, acts as though it is downloading something, and then disappears. It does this very quickly and several times. When it is finally complete I am viewing the .htm file rather than the .asp file.


I can't even get the following asp to respond correctly.

----------------------aspdemo.asp---------------------------------------------
<%@ LANGUAGE="VBSCRIPT" %>
<HTML>
<HEAD>
<TITLE>Active Server Demo</TITLE>
</HEAD>
<BODY>
<% for i = 3 to 7 %>
<font size=<%=i%>>This Demonstrates an Active Server Page</font><br>
<%next %>
</BODY>
</HTML>
------------------------------------------------------------------------------

When I view the above file it returns this to the browser:

<%@ LANGUAGE="VBSCRIPT" %> <% for i = 3 to 7 %> >This Demonstrates an Active Server Page
<%next %>

I'm using MSIE 3.02(4.70.1310).
Any help in getting me over this hurdle is greatly appreciated.
0
Comment
Question by:m204984
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
Jagar earned 50 total points
ID: 1856645
All you ASP scripts must be put onto a directory that has exectuable premissions check.  Usually you main directory of your web site only has read permission set.  So Either move the ASP file and change the location in your code or set the exectuable permissions in the directory that contains you ASP scripts.
0
 
LVL 2

Expert Comment

by:Jagar
ID: 1856646
One more comment to explain why it is doing what it is doing.  Normal directory on your web site only have to read the HTML files no action is required from the server.  If it is not a file type that the browser recognizes it tries to download, so that you can do whatever it is you want with the file.
ASP are scripts which require the Server to process them before they can be set to the browser.  Once they are processed they become like normal HTML files so the browser can show them correctly.
0
 

Author Comment

by:m204984
ID: 1856647
Thanks for the help :-)

I changed the permissions on WWWRoot but the pages still didn't work. When I created a sub-directory under WWWRoot and set the permissions per your recommendations all worked well.
0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Two wordpress questions 3 81
Eloquent ORM manual paginator defaults to simple 2 46
migrating to phpbb forum from vBulletin 4.2 3 43
Intranet Site for Medical Practice 7 53
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question