Dear Robert ur idea was great but I couldnt run it :(
Hovik.
----- Original Message -----
From: "Robert Nyman" <robert.nyman@c...>
To: "javascript" <javascript@p...>
Sent: Wednesday, September 18, 2002 3:23 PM
Subject: [javascript] SV: Generaing a text box
Well, you can do as Hovik says, by placing it in a layer and then
showing & hiding it...
/Robert
-----Ursprungligt meddelande-----
Från: Elindram, Maheedhar [mailto:Maheedhar_Elindram@s...]
Skickat: den 18 september 2002 12:44
Till: javascript
Ämne: [javascript] Generaing a text box
Tnx a lot
can u suggest what we can do for lower versions of Netscape.
Regards,
Maheedhar
> -----Original Message-----
> From: Robert Nyman [SMTP:robert.nyman@c...]
> Sent: Wednesday, September 18, 2002 3:36 PM
> To: javascript
> Subject: [javascript] SV: Re: Generaing a text box
>
> It depends on what browser/browsers you're targeting,
> but for IE 5 and up and Netscape 6 & 7:
>
> <input type="button" value="Create textbox" onClick="createTextBox()">
>
> function createTextBox(){
> var oTextBox = document.createElement("input");
> oTextBox.setAttribute("type", "text");
> oTextBox.setAttribute("value", "Some text in the text box");
> document.body.appendChild(oTextBox); // This, of course,
depends on
> where you want it to appear...
> // It can, for example, also be
> document.getElementById("someDiv").appendChild(oTextBox);;
> }
>
>
> /Robert
>
>
> -----Ursprungligt meddelande-----
> Från: Elindram, Maheedhar [mailto:Maheedhar_Elindram@s...]
> Skickat: den 18 september 2002 11:50
> Till: javascript
> Ämne: [javascript] Re: Generaing a text box
>
>
> thanks Hovik for ur response.
>
> I want to generate a new text box in my page,
> and that should be on click of a button.
>
> More clearly, on clicking a button, a textfield should be generated.
>
> Can you help plz....
>
> Maheedhar
>
> > -----Original Message-----
> > From: Hovik Melkomian [SMTP:melvik@b...]
> > Sent: Wednesday, September 18, 2002 2:46 PM
> > To: javascript
> > Subject: [javascript] Re: Generaing a text box
> >
> > I didnt get ur Question but if u wanna read the value of textbox &
> > do
> > dothing its code is:
> >
> > FormsName.TextBoxName.Value
> > I dont know what u wanna do?!
> >
> > HIH,
> > Hovik
> > ----- Original Message -----
> > From: "Elindram, Maheedhar" <Maheedhar_Elindram@s...>
> > To: "javascript" <javascript@p...>
> > Sent: Wednesday, September 18, 2002 1:34 PM
> > Subject: [javascript] Generaing a text box
> >
> >
> > hi,
> > How do i generate a text box oncliking a button within the form. Can
> > anyone help me out in this. thanks in advance
> >
> > Maheedhar
> >
> >
> >
> > ---
> >
> > Improve your web design skills with these new books from Glasshaus.
> >
> > Usable Web Menus
> >
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogram
> > me
> > r-20
> > Constructing Accessible Web Sites
> >
> http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogram
> me
> > r-20
> > Practical JavaScript for the Usable Web
> >
> http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogram
> me
> > r-20
> > ---
> > Change your mail options at http://p2p.wrox.com/manager.asp or to
> > unsubscribe send a blank email to
> >
> >
> >
> >
> > ---
> >
> > Improve your web design skills with these new books from Glasshaus.
> >
> > Usable Web Menus
> >
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogram
> > me
> > r-20
> > Constructing Accessible Web Sites
> >
> http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogram
> me
> > r-20
> > Practical JavaScript for the Usable Web
> >
> http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogram
> me
> > r-20
>
>
> ---
>
> Improve your web design skills with these new books from Glasshaus.
>
> Usable Web Menus
> http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogram
> me
> r-20
> Constructing Accessible Web Sites
>
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
> r-20
> Practical JavaScript for the Usable Web
>
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
> r-20
>
>
>
> ---
>
> Improve your web design skills with these new books from Glasshaus.
>
> Usable Web Menus
> http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogram
> me
> r-20
> Constructing Accessible Web Sites
>
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
> r-20
> Practical JavaScript for the Usable Web
>
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
> r-20
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20