Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > Adobe Web Programming > Dreamweaver (all versions)
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old September 27th, 2005, 07:15 AM
Friend of Wrox
 
Join Date: May 2005
Location: tehran, tehran, Iran.
Posts: 201
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to hastikeyvan
Default sending values to texbox

i have some arrow images i want to send their names to my textbox
is this coding right or wrong?i would be very thankfull to have your answers:
<input type="image" src="Imagepic2.gif" width="21" height="17" name="Marand" alt="Marand">
              <script for="Marand" language="VBScript" event="Onclick">
              t1.value="Marand"
              </script>
and the textboxname is t1:
<input type="text" name="t1">
thank you

Reply With Quote
  #2 (permalink)  
Old September 27th, 2005, 08:59 AM
Imar's Avatar
Wrox Author
Points: 71,804, Level: 100
Points: 71,804, Level: 100 Points: 71,804, Level: 100 Points: 71,804, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,050
Thanks: 80
Thanked 1,581 Times in 1,558 Posts
Default

You're the best person to determine if this is wrong or not. Does it work? If not, do you get an error?

You can shorten things a bit (and fix the t1.value problem) with the following code:
Code:
<input type="image" src="Imagepic2.gif" width="21" height="17" 
    name="Marand" alt="Marand" onclick="document.getElementById('t1').value='Marand';" />

<input type="text" name="t1">
HtH,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Reply With Quote
Reply


Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem sending values into SQL Server Proc lisabb ASP.NET 2.0 Basics 2 May 23rd, 2007 02:19 PM
texbox update in Datagrid msrnivas General .NET 1 June 1st, 2005 02:46 AM
Problem in sending arabic values in email using CD Basma Classic ASP Components 1 October 11th, 2004 06:34 PM
Retrieving value from Datagrid texbox eli2003 ASP.NET 1.0 and 1.1 Basics 2 September 3rd, 2003 04:36 PM



All times are GMT -4. The time now is 10:04 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.