Hi Bob,

Thanks for the response.  Here is the code, trimmed down in the interest of saving 
some space.  
The javascript:

function buildFieldList(qNumber)
 {
     var iqNumber = parseInt(qNumber);
          iqNumber = iqNumber + 1;
     var sLayer = document.getElementById("fieldLayer");
          sTable = document.createElement("TABLE");
          sTable.cellPadding = 0;
          sTable.cellSpacing = 4;
          sTable.border = 0;
          sTable.width = 325;
          sTableBody = document.createElement("TBODY");
          sTableRow = document.createElement("TR");
          sTableCell = document.createElement("TD");
          sTableCellText = document.createTextNode("Form Field Information");
          sTableCell.appendChild(sTableCellText);
          sTableRow.appendChild(sTableCell);
          sTableCell.className = "BoxBorder";
          sTableBody.appendChild(sTableRow);

for (x=1; x<iqNumber; x++)
          {
           sTableRow = document.createElement("TR");
           sTableCell = document.createElement("TD");
           sTableCellText = document.createTextNode("Field Name #" + x);
           sTableCell.appendChild(sTableCellText);
           sTableRow.appendChild(sTableCell);
           sTableBody.appendChild(sTableRow);
           sTableRow = document.createElement("TR");
           sTableCell = document.createElement("TD");
           sTableCellText = document.createElement("INPUT");
           sTableCell.appendChild(sTableCellText);
           sTableCellText.setAttribute("type","text","name","fldName" + x);
           sTableCellText.style.width = "100";
           sTableRow.appendChild(sTableCell);
          }
    sTable.appendChild(sTableBody);
    sLayer.appendChild(sTable);
  }
 }

What this function is doing is creating a table with a certain number of text input 
fields based on a number the user selects from a drop down menu.  The table is then 
placed in a div tag with the id of "fieldLayer".  The code itself works just fine, the 
table is created/formatted perfectly.  However, when I submit the form (Post) the 
request.form method does not work in retrieving the values entered into the fields 
created by the javascript.  
My question is, any suggestions on either combining vbscript with javascript or am i 
approaching this in the wrong way?
Thanks in advance for the suggestions.

Sean

 

 

Message: 2
Date: Mon, 10 May 2004 11:44:10 -0400
From: "BobFilipiak" 
Subject: Re: Accessing Form Fields Created Using Javascript DOM

It is hard to help without seeing actual code. Are you doing a GET or a
POST? How are you creating the fields dynamically? Try using an OnSubmit
function on your form and check for the fields before submitting the form.



Bob Filipiak
A question not asked
is a lost opportunity to learn.
----- Original Message ----- 
From: "Sean Dougherty" 
To: 
Sent: Monday, May 10, 2004 11:27 AM
Subject: [ASP] Accessing Form Fields Created Using Javascript DOM


> Hi Everybody,
>
> This is my first post to this list. Hoping to find some assistance with a
problem I've run into. I'm currently developing some forms that will be
used to insert data into a database. One section of the form has a number
of text input fields created dynamically via the javascript DOM. When I
view the html source code, the table/form fields created are not visibile in
the code, although they are on the page. When the form is submitted, the
ASP script can not find these form fields using request.form. My question
is, is this method possible? Is there another way to access the input
values from these form fields? Maybe a client side javascript? Any help
would be much appreciated. Thanks.
>
> Sean


                
---------------------------------
Do you Yahoo!?
Yahoo! Movies - Buy advance tickets for 'Shrek 2' 

[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/17folB/TM
---------------------------------------------------------------------~->

---------------------------------------------------------------------    
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [EMAIL PROTECTED]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
--------------------------------------------------------------------- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/active-server-pages/

<*> To unsubscribe from this group, send an email to:
     [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 

Reply via email to