Forum Moderators: coopster

Message Too Old, No Replies

Insert into textbox when image is clicked

possible without javascript?

         

dragon master mokuba

5:58 am on Feb 18, 2008 (gmt 0)

10+ Year Member



i need to be able to insert text into a textbox/textarea when an image is clicked without using javascript. is this possible?

phparion

6:18 am on Feb 18, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



you can always do it with PHP but your page will refresh since PHP requires a server side event to do something. With javascript you dont go to server and can do it on the client end i.e without refreshing the page.

for such tasks javascript is recommended

dragon master mokuba

7:52 am on Feb 18, 2008 (gmt 0)

10+ Year Member



well, i cant seem to get the javascript working. what is the code i need? i have it in php by submitting the form that its part of and reinserting the text into the textbox with the value added to the end. i would prefer javascript, but it isnt working.

whoisgregg

2:32 pm on Feb 18, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There's a Javascript forum [webmasterworld.com] at WebmasterWorld. :)