NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page textbox to div

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 02-08-2006, 08:30 AM THREAD STARTER               #1 (permalink)
Account Closed
Join Date: Nov 2004
Posts: 101
toolman is on a distinguished road
 



textbox to div


Hi
I am looking for a script that will allow me to type in a text box then instantly disply it somewhere else on a page. Any ideas what its called or where to get one?

thanks
toolman is offline  
Old 02-08-2006, 04:04 PM   #2 (permalink)
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
Join Date: Jan 2005
Location: UK
Posts: 2,408
PoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nice
 



you want something like this:

HTML Code:
<div id="someDIV" name="someDIV" border="1"></div>
<input type="text" name="someTEXT" onKeyUp="document.all.someDIV.innerHTML=this.value;" />
Put the DIV wherever you want it on the page. When a user types in the "input" textbox, the DIV value changes automatically. If you want a multi-line textbox, just remove "input type="text"" and change it to "textarea" you then need to close it (</textarea>)
PoorDoggie is offline  
Old 02-08-2006, 05:51 PM   #3 (permalink)
Senior Member
 
nasaboy007's Avatar
Join Date: Jul 2005
Location: NJ
Posts: 1,219
nasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud of
 



or, if u want to learn a little server side scripting, you cud always just use php to echo the variable which is sent over thru the form. thats guarenteed to work if its done rite
nasaboy007 is offline  
Old 02-08-2006, 06:28 PM   #4 (permalink)
Senior Member
 
Crusader's Avatar
Join Date: Aug 2003
Location: Canada
Posts: 1,257
Crusader is just really niceCrusader is just really niceCrusader is just really niceCrusader is just really nice
 



This can be done with AJAX but it would call on your server every second (which could be a resource hog).
Crusader is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Div Tags aal814 Web Design Discussion 8 11-01-2005 07:25 PM
How do I place my banner and links around this div layer? BeckyTheStrange Programming 4 07-12-2005 10:17 AM
DIV positioning tsalexey544 Website Development 2 06-11-2005 06:16 PM
Problem with firefox display - div width volos Web Design Discussion 3 02-03-2005 10:10 AM
div height problem tot Programming 2 05-12-2004 07:50 AM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 11:50 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger