C
Chris Walls
If there is a better newsgroup for this, please let me know. I also cannot
seem to get to the MSDN forums; the page never loads...
We have an ASP.NET 2.0 application that uses the AJAX Extensions and the
AJAX Control Toolkit. Many of our pages use JavaScript confirm dialogs for
standard "Are you sure" messages. One of our users is running IE 7 on Vista
Business. The following code displays the confirm correctly, but the cancel
response is essentially ignored and the user is taken to page2.html. This
exact same code works on Vista Home Premium w/IE 7 and WinXP w/IE, Firefox,
Opera, and Safari. It also works on the Vista Business machine with
Firefox, so we are fairly certain this is an IE 7 / Vista Business issue.
Any thoughts on what it could be? We perused the options available for IE
and none drew our attention as being a possible culprit. The other
JavaScript code in the application has been executing as expected.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Page 1</title>
</head>
<body>
<form action="Page2.htm" method="post">
<h1>You are now on page 1</h1>
<input type="submit" onclick="return confirm('Are you sure you want to go
to page 2?');" value="Click here for page 2">
</form>
</body>
</html>
************* Page2.htm ****************
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Untitled Page</title>
</head>
<body>
<h1>You are now on page 2</h1>
<a href="Page1.htm">Back To Page 1</a>
</body>
</html>
seem to get to the MSDN forums; the page never loads...
We have an ASP.NET 2.0 application that uses the AJAX Extensions and the
AJAX Control Toolkit. Many of our pages use JavaScript confirm dialogs for
standard "Are you sure" messages. One of our users is running IE 7 on Vista
Business. The following code displays the confirm correctly, but the cancel
response is essentially ignored and the user is taken to page2.html. This
exact same code works on Vista Home Premium w/IE 7 and WinXP w/IE, Firefox,
Opera, and Safari. It also works on the Vista Business machine with
Firefox, so we are fairly certain this is an IE 7 / Vista Business issue.
Any thoughts on what it could be? We perused the options available for IE
and none drew our attention as being a possible culprit. The other
JavaScript code in the application has been executing as expected.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Page 1</title>
</head>
<body>
<form action="Page2.htm" method="post">
<h1>You are now on page 1</h1>
<input type="submit" onclick="return confirm('Are you sure you want to go
to page 2?');" value="Click here for page 2">
</form>
</body>
</html>
************* Page2.htm ****************
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Untitled Page</title>
</head>
<body>
<h1>You are now on page 2</h1>
<a href="Page1.htm">Back To Page 1</a>
</body>
</html>