Create HTML Text Box Dynamic 
Author Message
 Create HTML Text Box Dynamic

I am tring to create a new INPUT TYPE="TEXT" dynamic (VBScript)
I have used the createElement method to do that and the <span> to put it on
the HTML,
But when I want to put a line break after the <span> (in order to put a new
element under another),
It Does not do it
What is the way to do it (To put the new Element whenever u want)?
Here is the code:

<HTML>
<HEAD></HEAD>
<TITLE></TITLE>
<FORM NAME="FrmErr">
<SCRIPT LANGUAGE=VBS>

 Sub TxtCreate()

  Dim ElementErrNum
  Dim ElementErrDesc
  Dim ElementErrReduce

  Set ElementErrNum=document.createElement("<INPUT TYPE=""text"" SIZE=10>" )
  Set ElementErrDesc=document.createElement("<INPUT TYPE=""text""
SIZE=10>" )
  Set ElementErrReduce=document.createElement("<INPUT TYPE=""text""
SIZE=10>" )

  ElementErrNum.name="txtNum" & document.all.length-12
  ElementErrDesc.name="txtDesc" & document.all.length-12
  ElementErrReduce.name="txtReduce" & document.all.length-12

  DataNum.appendChild (ElementErrNum)
  DataDesc.appendChild (ElementErrDesc)
  DataReduce.appendChild (ElementErrReduce)

 End Sub

</SCRIPT>

<BODY TOPMARGIN=0 LEFTMARGIN=0 BGPROPERTIES="FIXED" BGCOLOR="#FFFFFF"
LINK="#000000" VLINK="#808080" ALINK="#000000">
<BLOCKQUOTE CLASS="body">

Error Number Error Description Points Reduce<BR><HR>
<SPAN ID="DataNum"></SPAN>
<SPAN ID="DataDesc"></SPAN>
<SPAN ID="DataReduce"></SPAN><BR>

<INPUT TYPE="button" value="Add    " name=BtnCrt onclick=TxtCreate()>
<INPUT TYPE="button" value="Submit " name=BtnSub onclick=TxtCreate()>
<INPUT TYPE="button" value="Clear  " name=BtnClr
onclick=TxtCreate()><BR><HR>

</BLOCKQUOTE>
</FORM>
</BODY>
</HTML>



Fri, 03 May 2002 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Creating Text Box Dynamic

2. creating a text box errors message for empty text box

3. Text box text on new page text box

4. Dynamic SELECT box in HTML

5. How do you create Dynamic SELECT boxes?

6. Inserting text into an HTML text box

7. I need to display the text of an html file in a text box

8. Can you create an Object with Dynamic HTML

9. creating HTML element dynamic

10. Can you create an Object with Dynamic HTML

11. Creating INPUT TYPE="text" Dynamic

12. passing variables from a text box to a document.write text box

 

 
Powered by phpBB® Forum Software