[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 02-08-2006, 07:30 AM   #1 (permalink)
NamePros Member
 
Join Date: Nov 2004
Posts: 101
38.00 NP$ (Donate)

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, 03:04 PM   #2 (permalink)
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
 
Join Date: Jan 2005
Location: UK
Posts: 2,390
316.50 NP$ (Donate)

PoorDoggie 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, 04:51 PM   #3 (permalink)
Senior Member
 
nasaboy007's Avatar
 
Join Date: Jul 2005
Location: NJ
Posts: 1,112
1,454.30 NP$ (Donate)

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 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, 05:28 PM   #4 (permalink)
Senior Member
 
Crusader's Avatar
 
Join Date: Aug 2003
Location: Canada
Posts: 1,293
1,264.40 NP$ (Donate)

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).
__________________

Near Fantastica
| Matthew Good - Vancouver
>> Do you Frawlik? <<
Crusader is offline  
Closed Thread


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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

Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 07:46 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85