Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Form not passing data?

Reply
Thread Tools

Form not passing data?

 
 
Noozer
Guest
Posts: n/a
 
      07-22-2005
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.

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.

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 - All I get is "Start -><-
End".

Am I overlooking something obvious here?


<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.name & " - " & name.value & "<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>


 
Reply With Quote
 
 
 
 
Noozer
Guest
Posts: n/a
 
      07-22-2005

"Noozer" <> wrote in message
news:J%%De.10422$5V4.10053@pd7tw3no...
> 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.


<snip>

I copied my code to a different machine and it works as expected, so I can
only assume that IIS is configured differently on the first machine.

<sigh>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to retrieve form field value if form is EncType=multipart/form-dataForm? Li Zhang ASP .Net 4 02-27-2009 01:23 AM
passing values from one web form to another web form bbawa1@yahoo.com ASP .Net 5 06-12-2007 05:50 AM
How passing values from a form through another form DanC ASP General 2 01-24-2005 07:53 AM
passing arguments from web-form to win-form Mart Rogers ASP .Net 3 07-09-2003 07:18 AM
passing arguments from web-form to win-form David Boaz ASP .Net Web Services 2 07-08-2003 04:23 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57