freelanceprogrammers.org Forum Index » ASP

Re: javascript question(urgent!!)


View user's profile Post To page top
peter_brunone Posted: Mon Jan 10, 2005 10:26 pm


Joined: 11 Jan 2006

Posts: 38
Re: javascript question(urgent!!)
Hi Amet,

   Assuming you`re coding just for IE, you should bookmark
http://msdn.microsoft.com/workshop/author/dhtml/reference/dhtml_reference_entry.
asp
which is a reference covering all elements, methods, and properties in the IE
DOM.

   Quick example for what you want to do:

// Create the element
var sText = document.createElement("<input type=`text` name=`txtStart` >");

// Make it the child element of some other object on the page, like a table cell
var myCell = document.getElementById("myTableCellID");
myCell.appendChild(sText);

Cheers,

Peter

From: "amet" gulbasa@...

how can I insert html elements (like textbox ) to the html page without posting
the page?I know it can be done with javascript..when user clicks on a button,a
textbox should be inserted to the page.help please.....



[Non-text portions of this message have been removed]
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
Booking Calendar - reservation calendar script
Land Surveying - total station instruments and equipments
China Wholesale - Electronics Products
Character Studio - Tutorials and Help