473,404 Members | 2,187 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

coldfusion onclick add code to text box

200 100+
Hi, I need help!

I have a coldfusion report with a form split into two.

one being an output data table where you can search on output data
and the other just a normal text box.
what i'm struggling with is onclick of selected td code/data in bottom table to add the selected code to the top text box.

Please any ideas!

Regards,
Ismail
Sep 1 '06 #1
2 9062
hi Ismail


i dont think this thing can be done using coldfusion. but can be done using javascript.

first you have to give unique names/ids to the controls that you want to link up.
for eg the bottom control is "bottom" and the top control is "top"

then you must have a javascript function inside the page eg. "copy_to_top"

inside that put code like this

Expand|Select|Wrap|Line Numbers
  1. <SCRIPT type=text/javascript>
  2.  
  3.     function  copy_to_top(bottom_value)
  4.     {
  5.  
  6. document.top.value = bottom_value;
  7.         }
  8.  
  9. </SCRIPT>

put code like this inside the tag of "bottom"
Expand|Select|Wrap|Line Numbers
  1. <input name="bottom" onclick="copy_to_top(this.form.bottom.value);">
Then it should probably work.
Oct 17 '06 #2
Can you please elaborate and clarify more your problem? I think I can give you an idea on how to solve that.
Nov 6 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

60
by: English Teacher | last post by:
Which would be more useful to learn, PHP or COLDFUSION? I know Coldfusion is popular in the work force. Is PHP? Thanks!
2
by: Jean Luc Skywalker Baggins | last post by:
Didn't know who to ask, the java experts or the coldfusion experts... so here it is and my sincerest appologies for the crosspost. I am also going to crosspost to alt.startrek for good measure....
4
by: jnag | last post by:
Hello, I have date fields on a form which is generated by a Coldfusion custom tag (another piece of code). I want to change something else on the form when the user changes the date. But, how do...
3
by: sj3vans | last post by:
I'm trying to integrate a ColdFusion application with a webAPI provided by another company to access their services. Their requirements are that requests should be generated using standard HTTP...
3
by: jnag | last post by:
Hello, I have a website with various font options (small to large) buttons that the user can click on the banner, which runs through the site. Site contains both static and dynamic content. I...
2
acoder
by: acoder | last post by:
How to Send Mail in Coldfusion You can use Coldfusion to easily send mail. From simple plain text emails to more complex HTML and multipart emails, the job is made a lot easier with Coldfusion. ...
4
by: cfmx2008 | last post by:
Hi everyone, I have a coldfusion form (ReportMenu.cfm) that the action page is itself as below: <cfform action="/cfreport/ReportMenu.cfm" method="POST" enctype="multipart/form-data"> and it's...
7
Haitashi
by: Haitashi | last post by:
I had the following code that would create a javascript confirmation page. This code lived inside a form which wouldn't submit until the user clicked the Ok button. <input type="image"...
106
by: bonneylake | last post by:
Hey Everyone, Well i don't know if my question should be in javascript/ajax or coldfusion, i figure this is more of a coldfusion question. But if this is in the wrong section let me know an all...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.