What authentication is enabled for the entire website, the page generating
this HTML, and the target POST page?
It is possible for form data to be "missing" if the original page is
authenticated but the target POST page is not authenticated due to an IE
POST optimization (if IE is POST'ing to a website it thinks is
authenticated, it will NOT send the Form data on the first POST because it
thinks it will get rejected by 401 -- however, you fool IE by making the
target POST page not require authentication -- thus, it results in a 200 but
no form data sent). The optimization is reasonable in the case of
high-latency authenticated requests -- suppose the post is for 100MB --
should IE send 100MB on the first post, have it rejected by 401, then send
100MB again with the right credentials the second time?
If this is your problem, then the solution is to make your website uniform
authenticated.
--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Noozer" <dont.spam@me.here> wrote in message
news:cl1Ee.10988$s54.6574@pd7tw2no...
Below is some ASP, HTML and javascript. It is part of a page used to
maintain a small database. This code did work at one time, but has since
stopped. For some reason the data on my form is not being passed to the page
specified in the Action property of the form. This is on a Windows 2000 Pro
PC.
I copied the code to another server (Windows XP Pro machine) and it DOES
work as expected there.
The first block is the data located near the middle of the body of my main
page. Each "row" has an OnClick event that calls the function in the second
block.
The second block of code calls a javascript function in the page located on
an IFrame on this page and then makes the IFrame visible.
The third block is located in the IFrame page. It should list all the values
passed from a form POSTed to this page. This comes up empty... All I see is
Start -><- End.
The fourth block is located in another ASP file situated in an IFrame on the
main page. This IFrame is not visible until the javascript in the third
block is executed by clicking a row located in the second block of code. It
contains a hidden form used to pass data back to ASP code on this page.
The final block is also located on the IFrame page. It loads values onto a
hidden form within this page and then submits the form. This is where I'm
having a problem... When this code is called, the Alert function shows the
proper value for "key", and the SUBMIT occurs as expected, but the
subEdit.asp page does not recieve any form value.
Any idea why the Windows 2000 server is not working as expected? I've
already tried restarting IIS and the properties on the virtual directory is
identical on the two PC's.
Thx!!!
<span id="72" class="row" onmouseover="SelectAgent('72','Anne Agent')"
onclick="editAgent('72');" >
<span class="item" style="width: 10em;"><span class="data">Anne
Agent</span></span>
</span>
<span id="69" class="row" onmouseover="SelectAgent('69','Al Over')"
onclick="editAgent('69');">
<span class="item" style="width: 10em;"><span class="data">Al
Over</span></span>
</span>
// Edit an agent ------------------------------------------------
function editAgent(key) {
//Retrieve agent info and make IFRAME visible
frames("EditFrame").getAgent(key);
EditContainer.style.display="block";
}
<%'Located near the beginning of the subEdit.asp page.
response.Write "START ->"
for each name in Request.Form
response.Write name & "<br />" & vbcrlf
next
response.Write "<- END"
%>
<script type="text/javascript" language="javascript">
// Load agent key & activity onto form and
submit ------------------------------------------------
function getAgent(key) {
alert(key);
document.forms("actionForm").reset();
document.forms("actionForm").Key.value = key;
document.forms("actionForm").ToDo.value="Get";
document.forms("actionForm").submit();
}
</script>
<form name="actionForm" id="actionForm" method="POST" action="subEdit.asp"
style="display: none;">
<input type="text" name="Key" id="Key" value="">
<input type="text" name="Name" id="Name" value="">
<input type="text" name="ToDo" id="ToDo" value="">
</form>