m204984
asked on
ASP's / VBScript behavior in MSIE 3.02
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.ht m--------- ---------- ---------- ---------- ----------
<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(AgeM o))%>
</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.
----------------------aspd emo.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.
Below is the code for (1).htm file and (1).asp:
------------VB5DemoForm.ht
<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
Your Age In Months Is
<%Response.Write(CStr(AgeM
</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.
----------------------aspd
<%@ 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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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.
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.
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.