PDF's are working fine in this application, so I removed various
sections from the non-PDF-able page to see what specific part of the page might
be causing the issue. The page contains an html form, and it turned out that if
I removed one of the form controls -- a form input of type file (a file
, so I removed
various sections from the non-PDF-able page to see what specific part of
the page might be causing the issue. The page contains an html form, and it
turned out that if I removed one of the form controls -- a form input of
type file (a file upload control) -- then the PDF
I am trying to troubleshoot why my text input fields are suddenly becoming
disabled. I run something on the page and all inputs become disabled
throughout the system until I refresh the browser. There are no JS errors or
anything to indicate errors. I have the following on the page to re
you should use $(input).removeAttr(disabled);
$(input).attr(disabled, false); will not work.
Thanks and Regards,
Pradeep Viswanathan R
pradeepviswanatha...@gmail.com
On Mon, Feb 6, 2012 at 9:09 PM, Chad Baloga cbal...@gmail.com wrote:
I am trying to troubleshoot why my text input fields
The AntiSamy project is maybe the best way to sanitize any user input out
there.
--
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/
Google+: http://plus.google.com/108193156965451149543
On Thu, Feb 2, 2012 at 8:33 AM, douglas cohn douglas.c...@gmail.com wrote
I second that.
The AntiSamy project is maybe the best way to sanitize any user input out
there.
--
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/
Google+: http://plus.google.com/108193156965451149543
On Thu, Feb 2, 2012 at 8:33 AM, douglas cohn douglas.c...@gmail.com wrote
Sorry for the OT post but I could not help but think of Little Bobby
Tables.
http://imgs.xkcd.com/comics/exploits_of_a_mom.png
G!
On Thu, Feb 2, 2012 at 9:42 PM, Andrew Grosset rushg...@yahoo.com wrote:
I second that.
The AntiSamy project is maybe the best way to sanitize any user input
the following (see below). What I am looking for is a way to control
user input within CF. I found an MS page that has a VB script but would prefer
something in CF.
http://msdn.microsoft.com/en-us/library/ms525361%28v=vs.90%29.aspx
From the Security Company
You will need to make sure all user input
below). What I am looking for is a way to
control user input within CF. I found an MS page that has a VB script but
would prefer something in CF.
http://msdn.microsoft.com/en-us/library/ms525361%28v=vs.90%29.aspx
From the Security Company
You will need to make sure all user input is being
You can wrap any user input in xmlformat() to rid yourself of any special
characters. I would use that around the function that sends the stuff to
your security software.
-Original Message-
From: Matt Quackenbush [mailto:quackfu...@gmail.com]
Sent: Wednesday, February 01, 2012 3:46 PM
The AntiSamy project is maybe the best way to sanitize any user input out
there.
--
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/
Google+: http://plus.google.com/108193156965451149543
On Thu, Feb 2, 2012 at 8:33 AM, douglas cohn douglas.c...@gmail.com wrote:
I recently
that
sanitizes input data, that is - escapes invalid code so as to prevent
SQL injection and the like.
I've have been unable to trap/filter the following:
www.MyWebsite.com\index.cfm?start=-1%27
to keep it from emailing me an error message, and instead CFABORT or
CFLOCATION to Home Page or some
cfset city = model(Cities).findOne(where=id=#id# AND
some_other_param=#param#)
If you know it should only accept a numeric value, you can just throw in a
Val() function and that will ensure nothing but numbers get passed ( e.g.
id=#Val(id)# ). If you need to allow strings, and can restrict to
If you know it should only accept a numeric value, you can
just throw in a Val() function and that will ensure nothing
but numbers get passed ( e.g. id=#Val(id)# ).
For numeric inputs that has been my standard for years:
cfparam name=url.id default=0 /
cfset url.id = abs(val(trim(url.id))) /
I need a cffunction similar to PHP's mysql_escape_string that
sanitizes input data, that is - escapes invalid code so as to prevent
SQL injection and the like.
I've have been unable to trap/filter the following:
www.MyWebsite.com\index.cfm?start=-1%27
to keep it from emailing me an error
Hi -
I have a form that contains an outcome field, which has an _#ac_id
appended to it so I can properly identify it (their can be many fields
passed in). I seem to be at a loss for how to output what appears to be two
variables as one ('#outcome_#ac_id##' -- see below query). Is their a way to
I have a form that contains an outcome field, which has an _#ac_id
appended to it so I can properly identify it (their can be many fields
passed in). I seem to be at a loss for how to output what appears to be two
variables as one ('#outcome_#ac_id##' -- see below query). Is their a way to
try using:
#Evaluate('outcome_#ac_id#')#
Regards,
Arsalan
--
From: Dakota Burns dakota.bu...@gmail.com
Sent: Saturday, October 23, 2010 9:34 PM
To: cf-talk cf-talk@houseoffusion.com
Subject: How to Capture Field Name with Two Input Variables
with Two Input Variables
Hi -
I have a form that contains an outcome field, which has an _#ac_id
appended to it so I can properly identify it (their can be many fields
passed in). I seem to be at a loss for how to output what appears to be two
variables as one ('#outcome_#ac_id##' -- see below
Go with Form[outcome_ i], not Evaluate or
'#form.outcome##form._ac_id#'. It's just way cleaner.
d
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Outstanding response to my question here on CF-Talk! Thank you very much
Dave, Arsalan, Russ, and Enigment -- the variety of your responses showing
differing ways to accomplish this simple task is great.
Thanks again!
Dakota
On Sat, Oct 23, 2010 at 11:34 AM, Dakota Burns
On 6/1/2010 3:42 PM, Chad Gray wrote:
Apprently chr(13) chr(10) represents a Windows newline.
Carriage return-linefeed is what was used in teletype systems. It
isn't a Windows thing specifically, but was the norm for many moons
before other OS systems were developed.
If you try to send just a
I have a PDF with a text field that is Multi-Line. You can type into it and
use carriage return to write paragraphs of text.
So I type in it and use a carriage return. Submit the form to a CFQuery and
insert the data into a varchar field.
I use CFPDF and CFPDFformparam to take the field
#replace(FORM.Contact_Name, #chr(10)#, #chr(13)#)#
You need the ## around the characters. Otherwise you're looking to replace
the literal string 'chr(10)'.
Robert B. Harrison
Director of Interactive Services
Austin Williams
125 Kennedy Drive, Suite 100
Hauppauge NY 11788
P : 631.231.6600 Ext.
On 6/1/2010 11:48 AM, Robert Harrison wrote:
#replace(FORM.Contact_Name, #chr(10)#, #chr(13)#)#
You need the ## around the characters. Otherwise you're looking to replace
the literal string 'chr(10)'.
No you don't.
#replace(FORM.Contact_Name, chr(10), chr(13))#
Is perfectly fine and
returns, but it submits to the
update as double carriage returns.
Im stumped!
Chad
-Original Message-
From: Ian Skinner [mailto:h...@ilsweb.com]
Sent: Tuesday, June 01, 2010 3:05 PM
To: cf-talk
Subject: Re: PDF multi-line input
On 6/1/2010 11:48 AM, Robert Harrison wrote:
#replace
To: cf-talk
Subject: RE: PDF multi-line input
Either way, it seems to be when I pull the data from the database and use
CFPDFFORM and insert it back into the PDF.
If I submit the PDF there are extra carriage returns in the data.
Using the replace of chr(10) and chr(13) did not help either
Is it possible to use a variable in the range parameter in a CFinput text
field?
I have tried both
cfinput type=Text name=test range=5,#var# required=No size=3
maxlength=3
And
cfinput type=Text name=test range=5,var required=No size=3
maxlength=3
And it does not display the field in the form.
Just had a revelation as to what was happening. Then I checked back here and I
got the same answer.
Yeah I'm using a cfform because I'm using a cftextarea (love me some
richtext editing) I'm wondering is there another way I can do this to make it
work? Any ideas would be helpful.
Just had a revelation as to what was happening. Then I checked back here and I
got the same answer.
Yeah I'm using a cfform because I'm using a cftextarea (love me some
richtext editing) I'm wondering is there another way I can do this to make it
work? Any ideas would be helpful.
:38 PM, Kevin Huff kh...@tourandtravelnow.com wrote:
I have this form, in a cflayout tab that I submit to a different page. The
form has a input type file field in it. This works fine outside of the tab
but within the tab the type file field always returns none. What is going on
here? Any
this post on ben's blog may help you create an 'ajax file upload'
functionality:
http://www.bennadel.com/blog/1244-ColdFusion-jQuery-And-AJAX-File-Upload-Demo.htm
it does not go into processing data (file array) returned after
uploading file, but if you know even a little bit of js you'll be
I have this form, in a cflayout tab that I submit to a different page. The form
has a input type file field in it. This works fine outside of the tab but
within the tab the type file field always returns none. What is going on here?
Any help would be great
09:38, Kevin Huff wrote:
I have this form, in a cflayout tab that I submit to a different page. The
form has a input type file field in it. This works fine outside of the tab
but within the tab the type file field always returns none. What is going on
here? Any help would be great
Hi frnds,
How to call a javascript function on
tdinput type=Image src=/images/search.gif width=55 height=22
onclick=callActionMethod('searchForm','search');return true;
name=Searchbutton/td
this function is not calling why?
Rama
My guess is because it's an input with type image so it's just going to submit
instead of honor the onclick. Try onSubmit in the form tag.
FORM
ACTION=../cgi-bin/mycgi.pl
NAME=testform
onSubmit=return TestDataCheck()
Hi frnds,
How to call a javascript function
My guess is because it's an input with type image so it's just going to submit
instead of honor the onclick. Try onSubmit in the form tag.
FORM
ACTION=../cgi-bin/mycgi.pl
NAME=testform
onSubmit=return TestDataCheck()
Hi frnds,
How to call a javascript function
Hey all
I'm displaying a bunch of data in a Flash CFGRID.. At the end of the row I'd
like to add a column called Approve. Which would be a checkbox.
I have two possible scenarios for updating the DB
1) I click the check box and the action page is called, the db is updated
and the CFGRID
Raleigh, NC 27616
(h) 919.874.6229 (c) 703.220.2835
-Original Message-
From: Scott Stewart [mailto:sstwebwo...@bellsouth.net]
Sent: Monday, March 02, 2009 2:55 PM
To: cf-talk
Subject: CFGRID (Flash) I need a checkbox as input
Hey all
I'm displaying a bunch of data in a Flash CFGRID
This error went away! I will try to get some more information about
what happened and why... J
I have the same problem, except that mine didn't go away. The simple upload
script worked for a few weeks and then just stopped working and I got the same
JRun error.
It is failing on my
This error went away! I will try to get some more information about what
happened and why... J
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
is happening... please
help!
Here's the code:
-
body
cfif isdefined(FORM.btnSubmit)
cfdump var=#FORM#
/cfif
form action=test.cfm method=post enctype=multipart/form-data
input type=text name=TestText value=Test Text /
input type=file name=TestFile /
input
Hello I'm new in coldfusion and I try to create a input form, but instead I
use a regular cfselect or select, I need to use table o grid to input some
amount.
the product type change according SQL table
The main idea is input all prodcut for company in one time
Any Advise
Prod1 Prod2
#/cfoutput/cfif/td
/tr
I am having space between Address and input filed and its only in internet
explorer (using ie 8). Please help
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
tr
tdCountry/td
td
select name=addr_country
cfoutput query=getCountries
option value=#getCountries.cty_iso2# cfif variables.addr_country eq
getCountries.cty_iso2selectedcfelseif not len(trim(variables.addr_country))
and getCountries.cty_iso2 eq
tr
tdCountry/td
td
select name=addr_country
cfoutput query=getCountries
option value=#getCountries.cty_iso2# cfif variables.addr_country eq
getCountries.cty_iso2selectedcfelseif not len(trim(variables.addr_country))
and getCountries.cty_iso2 eq
On Friday 27 Jun 2008, Rick Faircloth wrote:
You weren't kidding when you said taking the load data infile
approach was quick! And it's accurate, too! The data seems to
be going in perfectly.
Yup, it's ace.
All with just this code: (spot any issues?)
Looks like what we've got - except I
I explicitly define the field separators
That's a good idea...
-Original Message-
From: Tom Chiverton [mailto:[EMAIL PROTECTED]
Sent: Monday, June 30, 2008 4:39 AM
To: CF-Talk
Subject: Re: Trying to read a text file of data and input into db...
On Friday 27 Jun 2008, Rick
, 2008 10:31 AM
To: CF-Talk
Subject: Re: Trying to read a text file of data and input into db...
On Thursday 26 Jun 2008, Rick Faircloth wrote:
Hi, Tom... it's MySQL 5.
By coincidence, I'm doing bulk loads into that too.
You can use CFQUERY to do:
LOAD DATA LOCAL INFILE '/a/file
Flex LiveCycle Data Services
(http://www.adobe.com/products/livecycle/dataservices/)
allows the server to push messages to the client which
means a users page could refresh data without having to be
refreshed or poll the server.
I'm not sure how they do it, but it might be similar to
Here's my solution, for anyone interested:
cfquery name=delete_offices datasource=#application.dsn#
delete from hmls_office_temp
/cfquery
cfset filepath =
e:\inetpub\webroot\real_estate_data\hmls\data\#DateFormat(now(),
'_mmdd')#_idx_custom\office.txt
cffile action = read file =
On Thursday 26 Jun 2008, Rick Faircloth wrote:
I'm trying to read a tab-delimited text file of data
and separate it into field data so I can input it into a database.
Almost all databases have a special bulk import tool or command, which may or
may not require cfexecute.
What database
To: CF-Talk
Subject: Re: Trying to read a text file of data and input into db...
On Thursday 26 Jun 2008, Rick Faircloth wrote:
I'm trying to read a tab-delimited text file of data
and separate it into field data so I can input it into a database.
Almost all databases have a special bulk
file of data and input into db...
Hi, Tom... it's MySQL 5.
The code in my last email is working properly.
However, now I have a problem executing this:
cfschedule
action = run
task = 02_Process HMLS Office Data Text
File
On Thursday 26 Jun 2008, Rick Faircloth wrote:
Hi, Tom... it's MySQL 5.
By coincidence, I'm doing bulk loads into that too.
You can use CFQUERY to do:
LOAD DATA LOCAL INFILE '/a/file/on/the/web.server'
INTO TABLE demoTable
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY ''
LINES TERMINATED BY
Thanks for the suggestion, Tom.
I may need to go that route.
Rick
-Original Message-
From: Tom Chiverton [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2008 10:31 AM
To: CF-Talk
Subject: Re: Trying to read a text file of data and input into db...
On Thursday 26 Jun 2008
-
From: Dave Francis [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2008 10:13 AM
To: CF-Talk
Subject: RE: Trying to read a text file of data and input into db...
From a CF5 lang ref, so may be out of date... Is the task registered?
Also try for startdate format. And you don't need
Hi, all...
I'm trying to read a tab-delimited text file of data
and separate it into field data so I can input it into a database.
I can read the file, and output the entire contents,
but nothing I tried worked to output the contents into
separate pieces of data and separate records. The code
:26 PM
To: CF-Talk
Subject: Trying to read a text file of data and input into db...
Hi, all...
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk
Subject: RE: Trying to read a text file of data and input into db...
Off the top of my head, shouldn't it be cfoutput#record#/cfoutput?
And I know you said tab-delimited, but have you confirmed that it really
is? ie what does listlen(list,Chr(09)) give you
/cfoutput
cfelse
cfset firstline = false
/cfif
/cfloop
-Original Message-
From: Rick Faircloth [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2008 10:59 PM
To: CF-Talk
Subject: RE: Trying to read a text file of data and input into db...
Hi
Oops... list=hmls_offices should have been list = #hmls_offices#
Now, I get an error stating:
Expression Exception - in
E:\Inetpub\webroot\c21-ar-homesite\tasks\0_process_hmls_offices_text_file.cfm :
line 14
Invalid list index 3.
(Index 3 is the cfset street_no_street_name... line)
Thoughts?
:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2008 11:40 PM
To: CF-Talk
Subject: RE: Trying to read a text file of data and input into db...
Oops... list=hmls_offices should have been list = #hmls_offices#
Now, I get an error stating:
Expression Exception - in
E:\Inetpub\webroot\c21-ar
On Wed, Jun 25, 2008 at 8:47 PM, Rick Faircloth
[EMAIL PROTECTED] wrote:
I think I see what's happening... when the file is read
with cffile, the variable, hmls_offices, apparently has
all the chr(9)'s, chr(10)'s, and chr(13)'s stripped out.
those characters aren't rendered by the browser, so
PROTECTED]
Sent: Friday, June 20, 2008 10:24 PM
To: CF-Talk
Subject: page self refresh whenever database gets new input
Hi,
I'm having a system that has two different consoles one for people input
data, and other for people view data. One isn't connected to the other.
Meaning, they work separatedly
This would involve a client side language (ie. javascript) to repeatedly
request the new info; ColdFusion can only act server side. I'd say some kind
of AJAX setup will be the ideal solution as opposed to some javascript that
constantly auto-refreshes the page.
HTH
Dominic
2008/6/21 Will
Thanks, but forgive me, I don't know AJAX much. Coule you please give some
example code.?
Let's say: table user is used by both consoles, sys admin section and enrole
section. Whenever a new user submit an enrolment, sys admin can see the new
user from the sys admin page
Thanks
I would jus have a periodic refresh of the page...there is nothing that
could detect a change then cause a refresh that I could think of...though
that would be cool. Set a metataq refresh to occur every x number of
seconds as appropriate for the frequency of user input. Even outlook checks
mail
I can't give you sample code, no. It is far too broad a topic and there is
heaps of info at the end of a search engine. However, the idea would be
something like:
Sys admin page
Do Loop every x seconds
Request user data through js ajax - request would be to a url that
Hi,
I'm having a system that has two different consoles one for people input data,
and other for people view data. One isn't connected to the other. Meaning, they
work separatedly but at the same time. If there is a new input, then the new
input will show on the diplay console right away
he
idea similar to MS Outlook. Whenever a new mail comes, it just shows
up by itself. Or just like a stock reports with live feeding.
Is there any way to do this in cold fusion ? Database is MS Access.
Thanks
Sounds like you just need some SQL to show the newest items first.
ORDER
:
I've got the following simple form:
--
form action=index.cfm?go=Load method=post name=LoadForm
divChoose File/div
input type=file name=filename
input type=submit/
/form
Why is ColdFusion not getting the file information? And if Safari
isn't passing back the necessary html form field information when type
= 'file' how do I code around that behavior?
Yeah, That used to catch me when I first started building file upload tools.
The first thing you should
I've got the following simple form:
--
form action=index.cfm?go=Load method=post name=LoadForm
divChoose File/div
input type=file name=filename
input type=submit/
/form
I have a form which in part includes the option of checking a workshop
(4 different workshops in all) and a place for the number of attendees.
Workshop 1:input type=checkbox name=wrkshp value=Workshop 1 /
Attendees:input type=text name=att1 /
Workshop 2:input type=checkbox name=wrkshp value
of attendees.
Workshop 1:input type=checkbox name=wrkshp value=Workshop 1 /
Attendees:input type=text name=att1 /
Workshop 2:input type=checkbox name=wrkshp value=Workshop 2 /
Attendees:input type=text name=att2 /
Workshop 3:input type=checkbox name=wrkshp value=Workshop 3
Hey guys,
I have a real simple problem here, but unfortunately, I can't seem to figure it
out. I'm developing a site where there are different items that are listed, by
using a loop on a database. Really simple stuff, just looping the row in the
table with the different fields from the
-Original Message-
From: George Linderman [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 27, 2007 9:13 AM
To: CF-Talk
Subject: Select different records based on user input.
Hey guys,
I have a real simple problem here, but unfortunately, I can't seem to figure
it out. I'm developing a site where
Wow, I appreciate the quick response. That solved the problem perfectly! Thank
you very much. Now I'm inspired to buy your CF8 books :)
Do you want to OR or AND those fields?
If OR, the SQL IN clause lets you specify a list if values, something like
WHERE key IN (117,123,141). So, if #cb# is
be sure to pick up this one as well
http://www.amazon.com/Sams-Teach-Yourself-SQL-Minutes/dp/0672325675/ref=pd_bbs_sr_3?ie=UTF8s=booksqid=1198826200sr=8-3
and if you are using mysql then get his crash course one instead the one
above..
head
meta http-equiv=content-type content=text/html ;
charset=iso-8859-1
/head
body
form action=https://www.paypal.com/cgi-bin/webscr; method=post
input type=image
src=http://www.visitcenter.org/center/x-click-but02.gif; border=0
name=submit alt
Your button is of type image. Even if you call it submit, it
won't submit the form.
You could use an onClick event to submit the form, but most eMail
readers won't execute Javascript,
so better use a standard submit button.
--
___
REUSE CODE! Use custom
Cold fusion do not support input param array like below:
input type='hidden' name='hid_id[]' value='1'
input type='hidden' name='hid_id[]' value='2'
input type='hidden' name='hid_id[]' value='3'
Whereas PHP can handle it as an array.
But i have a code which will display some events
Cold fusion do not support input param array like below:
input type='hidden' name='hid_id[]' value='1' input
type='hidden' name='hid_id[]' value='2' input type='hidden'
name='hid_id[]' value='3'
Whereas PHP can handle it as an array.
But i have a code which will display some events
I wrote a CFC that will parse arbitrarily nested structures, arrays, arrays
of structures, etc., based on the form field name(s).
http://formutils.riaforge.org/
On Nov 19, 2007 11:47 PM, Tarek Jubaer [EMAIL PROTECTED] wrote:
Cold fusion do not support input param array like below:
input type
Hi
I am trying to get value from posted input array
(input type='hidden' name='inp[]' value='1'
input type='hidden' name='inp[]' value='2'
input type='hidden' name='inp[]' value='3').
But from the article
http://www.christian-web-masters.com/forums/index.php?showtopic=10873 i found
trying to get value from posted input array
(input type='hidden' name='inp[]' value='1'
input type='hidden' name='inp[]' value='2'
input type='hidden' name='inp[]' value='3').
But from the article
http://www.christian-web-masters.com/forums/index.php?showtopic=10873 i found
show them this:
http://xkcd.com/327/
(Most of them are good... this one just happens to appropriate.)
Jim Davis
~|
Enterprise web applications, build robust, secure
scalable apps today - Try it now ColdFusion Today
PROTECTED]
Sent: Wednesday, 17 October 2007 8:41 AM
To: CF-Talk
Subject: CFWINDOW Input Focus
I'm having trouble trying to focus to a form field that is contained in a
CFWINDOW.
Is there a trick to this. I've tried lots of combos with no luck
Regards
Dale Fraser
http://learncf.com
I'm having trouble trying to focus to a form field that is contained in a
CFWINDOW.
Is there a trick to this. I've tried lots of combos with no luck
Regards
Dale Fraser
http://learncf.com
~|
Get involved in the
in an
editable cell. Is this possible, I saw they do it on Ext docs.
I can put them in just by placing the input type=checkbox type of code as
the cell value, but I would prefer that they were bound to the data set. If
it's not possible, I could probably do it with a lot of workarounds
in just by placing the input type=checkbox type of code as
the cell value, but I would prefer that they were bound to the data set. If
it's not possible, I could probably do it with a lot of workarounds.
Regards
Dale Fraser
http://learncf.com
Looking for everyone's input on an issue. Trying to see how the
community-at-large deals with this situation. See details, and please
comment, over on my blog:
http://blog.cutterscrossing.com/index.cfm/2007/6/22/Call-For-Input-Document-Revision-Comments
--
Steve Cutter Blades
Adobe Certified
How would one go about adding another text input field to a form when a user
clicks a more button? I'm open to anything - Javascript, cfform, Flash
forms. If you say Ajax please try and be a bit specific as I've never used
it.
TIA, Dave
I do this all the time with JS. My basic process is to create a JS
variable that represents a DOM node of the field(s) I want to add when
the control as clicked. Then some simple JS on that event can add a
copy of the node to the document.
Confidentiality Notice: This message including any
Dave Francis wrote:
How would one go about adding another text input field to a form when a user
clicks a more button?
Put the field in your form and hide it with CSS / javascript until the
user clicks the more button.
If you use the same technique for hiding (i.e. the same DOM methods
How would one go about adding another text input field to a form when a
user
clicks a more button? I'm open to anything - Javascript, cfform, Flash
forms. If you say Ajax please try and be a bit specific as I've never
used
it.
This is the kind of thing jQuery makes very easy - you don't
is clicked.
Josh, Can jQuery do this? What's the learning curve? (I'm old and slow)
Again, TIA
Dave
-Original Message-
From: Josh Nathanson [mailto:[EMAIL PROTECTED]
Sent: Monday, April 23, 2007 11:27 AM
To: CF-Talk
Subject: Re: adding form input fields
Josh, Can jQuery do this? What's the learning curve? (I'm old and slow)
It sure can...not that you couldn't do this in JS from scratch, but jQuery
will make it easier. Just to qualify, there's no magic bullet in jQuery
that will automatically do this for you - you'll still have to write some
Look into the javascripts createElement(). I posted a detailed working
example a while back. You could check the archives for it too.
-Original Message-
From: Dave Francis [mailto:[EMAIL PROTECTED]
Sent: Monday, April 23, 2007 1:02 PM
To: CF-Talk
Subject: adding form input fields
How
1 - 100 of 730 matches
Mail list logo