473,395 Members | 1,462 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Javascript and IIS 6.0

JAC
The code JavaScript is not executed in the pages ASP in a server IIS 6.0 in
Windows 2003 but if makes it in a IIS 5.1 in Windows XP, like I can configure
it so that it is executed.

Jul 22 '05 #1
5 6731
Server-side jscript? Show code. Give more details. How do you know it's
not executed? What happens with
<%@ Language=JScript %>
<% Response.write("hey"); %>

Do you have ASP enabled in IIS6?

Ray at work

"JAC" <JA*@discussions.microsoft.com> wrote in message
news:CE**********************************@microsof t.com...
The code JavaScript is not executed in the pages ASP in a server IIS 6.0 in Windows 2003 but if makes it in a IIS 5.1 in Windows XP, like I can configure it so that it is executed.

Jul 22 '05 #2
http://www.aspfaq.com/2476
http://www.aspfaq.com/2147

--
This is my signature. It is a general reminder.
Please post DDL, sample data and desired results.
See http://www.aspfaq.com/5006 for info.

"JAC" <JA*@discussions.microsoft.com> wrote in message
news:CE**********************************@microsof t.com...
The code JavaScript is not executed in the pages ASP in a server IIS 6.0
in
Windows 2003 but if makes it in a IIS 5.1 in Windows XP, like I can
configure
it so that it is executed.

Jul 22 '05 #3
JAC
Not, the code ASP is good, but code JavaScript of client no, example of codes:

<html>
<HEAD>
<title>-------</title>
<link href="../css/Styles.css" rel="stylesheet" type="text/css">
</HEAD>
<body bgcolor="white">
<script language=javascript>
function VerificaDatos()
{
if (fIngreso.usuario.value.length == 0)
{
alert("Ingrese su usuario, por favor");
fIngreso.usuario.focus();
fIngreso.usuario.select();
return false;
}
return true;
}
</script>
..
..
<form name=fIngreso method=post action=Ingreso.asp onsubmit='return
VerificaDatos());'>
..
..

In the instant of submit not executes the JavaScript code.
"Aaron [SQL Server MVP]" wrote:
http://www.aspfaq.com/2476
http://www.aspfaq.com/2147

--
This is my signature. It is a general reminder.
Please post DDL, sample data and desired results.
See http://www.aspfaq.com/5006 for info.

"JAC" <JA*@discussions.microsoft.com> wrote in message
news:CE**********************************@microsof t.com...
The code JavaScript is not executed in the pages ASP in a server IIS 6.0
in
Windows 2003 but if makes it in a IIS 5.1 in Windows XP, like I can
configure
it so that it is executed.


Jul 22 '05 #4
Aaron could you also insert comments explaing which parts of your post are
the body of the message? :>)

I'm confused.

Bob Lehmann

"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:Oj**************@TK2MSFTNGP09.phx.gbl...
http://www.aspfaq.com/2476
http://www.aspfaq.com/2147

--
This is my signature. It is a general reminder.
Please post DDL, sample data and desired results.
See http://www.aspfaq.com/5006 for info.

"JAC" <JA*@discussions.microsoft.com> wrote in message
news:CE**********************************@microsof t.com...
The code JavaScript is not executed in the pages ASP in a server IIS 6.0
in
Windows 2003 but if makes it in a IIS 5.1 in Windows XP, like I can
configure
it so that it is executed.


Jul 22 '05 #5

"JAC" <JA*@discussions.microsoft.com> wrote in message
news:E6**********************************@microsof t.com...
Not, the code ASP is good, but code JavaScript of client no, example of codes:

Then this question does not belong to an ASP group. See the jscript group I
cross-posted the answer.

Btw, you may get around the problem by (instead of using a regular submit
button) putting a regular button on the form that calls your function
(VerificaDatos()) in its onclick event which in turn issues a
fIngreso.submit();
statement at the end - or it doesn't if the verification failed. (You may
have to set the form's ID property to "fIngreso" as well for the above
statement to take effect because it is referred to directly.)


<html>
<HEAD>
<title>-------</title>
<link href="../css/Styles.css" rel="stylesheet" type="text/css">
</HEAD>
<body bgcolor="white">
<script language=javascript>
function VerificaDatos()
{
if (fIngreso.usuario.value.length == 0)
{
alert("Ingrese su usuario, por favor");
fIngreso.usuario.focus();
fIngreso.usuario.select();
return false;
}
return true;
}
</script>
.
.
<form name=fIngreso method=post action=Ingreso.asp onsubmit='return
VerificaDatos());'>
.
.

In the instant of submit not executes the JavaScript code.
"Aaron [SQL Server MVP]" wrote:
http://www.aspfaq.com/2476
http://www.aspfaq.com/2147

--
This is my signature. It is a general reminder.
Please post DDL, sample data and desired results.
See http://www.aspfaq.com/5006 for info.

"JAC" <JA*@discussions.microsoft.com> wrote in message
news:CE**********************************@microsof t.com...
The code JavaScript is not executed in the pages ASP in a server IIS 6.0 in
Windows 2003 but if makes it in a IIS 5.1 in Windows XP, like I can
configure
it so that it is executed.


Jul 22 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.