RE: OT: CR in a textarea problem
Unfortunately, Paragraphformat will turn a single line break into 2 ..:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Denny Valliant [mailto:[EMAIL PROTECTED] Sent: Saturday, August 26, 2006 8:13 PM To: CF-Talk Subject: Re: OT: CR in a textarea problem paragraphFormat(form.fieldtxtarea) ? On 8/26/06, Kris Jones <[EMAIL PROTECTED]> wrote: > > #replacenocase(form.fieldtxtarea,chr(10),"")# > > Cheers, > Kris > > > and I want to output > > the values of the field > > exaxtly the same like: > > > > name1 > > name2 > > name3 > > > > not like: name1 name2 name3 > > > > How can I catch the CR after > > every line ? > > ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251168 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CR in a textarea problem
On 8/26/06, Mike Tangorre <[EMAIL PROTECTED]> wrote: > > htmlCodeFormat() Oh yeah. Bobby's right though, it's stored how it's stored. Generally speaking, you want it to go in how you want it to come out. :D ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251165 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: OT: CR in a textarea problem
paragraphFormat(form.fieldtxtarea) ? On 8/26/06, Kris Jones <[EMAIL PROTECTED]> wrote: > > #replacenocase(form.fieldtxtarea,chr(10),"")# > > Cheers, > Kris > > > and I want to output > > the values of the field > > exaxtly the same like: > > > > name1 > > name2 > > name3 > > > > not like: name1 name2 name3 > > > > How can I catch the CR after > > every line ? > > ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251164 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: CR in a textarea problem
That IS how they will go into the database. You just have to make sure to format it that way when outputting it since browsers dont parse CRs as line breaks. So just insert the... Name1 Name2 Name3 Then when you output it replace the CRs with tags like so... #Replace(query.column, "#chr(13)##chr(10)#", "", "all")# or just wrap it in pre tags ;-) ..:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, August 26, 2006 12:15 PM To: CF-Talk Subject: OT: CR in a textarea problem Hi list, I have the following in a textarea (form): name1 name2 name3 and I want to output the values of the field exaxtly the same like: name1 name2 name3 not like: name1 name2 name3 How can I catch the CR after every line ? Uwe ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251147 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: OT: CR in a textarea problem
#replacenocase(form.fieldtxtarea,chr(10),"")# Cheers, Kris > and I want to output > the values of the field > exaxtly the same like: > > name1 > name2 > name3 > > not like: name1 name2 name3 > > How can I catch the CR after > every line ? ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251146 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CR in a textarea problem
htmlCodeFormat() From: <[EMAIL PROTECTED]> > and I want to output > the values of the field > exaxtly the same like: ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251145 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: OT: CR in a textarea problem
replace(form.value, chr(13)&chr(10), "", "all") On 8/26/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi list, > I have the following > in a textarea (form): > > name1 > name2 > name3 > > and I want to output > the values of the field > exaxtly the same like: > > name1 > name2 > name3 > > not like: name1 name2 name3 > > How can I catch the CR after > every line ? > > Uwe > > > > ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251144 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: OT: CR in a textarea problem
Use ? On 8/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi list, > I have the following > in a textarea (form): > > name1 > name2 > name3 > > and I want to output > the values of the field > exaxtly the same like: > > name1 > name2 > name3 > > not like: name1 name2 name3 > > How can I catch the CR after > every line ? > > Uwe > > > > ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251143 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
OT: CR in a textarea problem
Hi list, I have the following in a textarea (form): name1 name2 name3 and I want to output the values of the field exaxtly the same like: name1 name2 name3 not like: name1 name2 name3 How can I catch the CR after every line ? Uwe ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251142 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: textarea problem
> IS there some secret to displaying a form variable in a HTML form - > textarea box: > > I don't get any errors, but nothing shows when I pass the > description variable to this text area: > > > scroll="yes"> The value displayed in the textarea form element is specified diferently. Try changing it to this: scroll="yes">#description# You also need to use tags of course. HTH, Stephen [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: textarea problem
> IS there some secret to displaying a form variable in a HTML > form - textarea box: > > I don't get any errors, but nothing shows when I pass the > description variable to this text area: > > > VALUE="#description#" scroll="yes"> The TEXTAREA field doesn't have a VALUE attribute: #description# Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
textarea problem
IS there some secret to displaying a form variable in a HTML form - textarea box: I don't get any errors, but nothing shows when I pass the description variable to this text area: scroll="yes"> Tim [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: textarea problem
Thanks Dave and Steven... thought I had tried that once with no success, but anyway... -Original Message- From: Stephen Hait [mailto:[EMAIL PROTECTED] Sent: Sunday, October 26, 2003 12:36 PM To: CF-Talk Subject: Re: textarea problem > IS there some secret to displaying a form variable in a HTML form - > textarea box: > > I don't get any errors, but nothing shows when I pass the > description variable to this text area: > > > scroll="yes"> The value displayed in the textarea form element is specified diferently. Try changing it to this: scroll="yes">#description# You also need to use tags of course. HTH, Stephen [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Textarea problem.
I am sure this has been dealt with before, but I'm having some issues with this one -- maybe someone can help. I am doing a search and replace routine, and I want the user to be able to enter in the text and have that passed EXACTLY how it was pasted in. It is to be used often for replacing blocks of HTML code in a database. I have seen custom tags that display the original correctly, but I they do it by substituted one thing for another. Here I need to get an exact duplicate of what was entered. Any thoughts? -Bill www.brainbox.tv ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Textarea problem
This is not the case: IsDefined is one of those 'funny' tags the proper syntax for checking the existence of a variable FORM.FirstName is: IsDefined("FORM.FirstName") Also #'s are note required inside of most other tags so the following is syntactically correct: ... Use #'s to interpolate the variable (get at the value not the name). That's why IsDefined is unusual, you are looking for the presence of a variable _name_ in the symbol table, if you put #'s in there you'll be looking for the presence of whatever FORM.FirstName's value is in the symbol table (if FORM.FirstName is Bob, then IsDefined("#FORM.FieldName#") will look in the symbol table for a variable named "BOB") Inside of tags (and outside of quotes) CF interpolates the value for you so you can do things like: But if you have a variable called ColorList and ColorList="red,green,blue" and you want to loop over that list, you'll need to use the #'s in the list="" because you want to loop over the value contained in the variable named colorList: hth -S ___ Sean Brown<[EMAIL PROTECTED]> http://www.westcar.com/ "Either way you get your dog back" -Anonymous ___ -Original Message- From: Nagesh Kumar Deva [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 09, 2000 1:27 PM To: '[EMAIL PROTECTED]' Subject: RE: Textarea problem try this, in processing form, give #form.req_just# instead form.req_just otherwise u can also may do this way, nagesh -Original Message- From: Reuben King [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 09, 2000 6:11 AM To: [EMAIL PROTECTED] Subject: Re: Textarea problem In <01A056931BA6D011AE63F84A801204446FA6@KSCMBS41>, Howell, Katie ([EMAIL PROTECTED]) in a fit of unbridled passion, wrote: > I'm having a problem processing a text area. It seem if a user enters > anything with single quotes, double quotes or the percent sign it causes > problems. The text area looks like: > class="sgs8n"> > > and on the processing page I have this for validation: > > > You must enter the justification. > Back > > > > The user gets the following error: > Error Occurred While Processing Request > > Error resolving parameter FORM.REQ_JUST [snip] Make a default value for the form, as: That should fix it for you. HTH, -R -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: Textarea problem
try this, in processing form, give #form.req_just# instead form.req_just otherwise u can also may do this way, nagesh -Original Message- From: Reuben King [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 09, 2000 6:11 AM To: [EMAIL PROTECTED] Subject: Re: Textarea problem In <01A056931BA6D011AE63F84A801204446FA6@KSCMBS41>, Howell, Katie ([EMAIL PROTECTED]) in a fit of unbridled passion, wrote: > I'm having a problem processing a text area. It seem if a user enters > anything with single quotes, double quotes or the percent sign it causes > problems. The text area looks like: > class="sgs8n"> > > and on the processing page I have this for validation: > > > You must enter the justification. > Back > > > > The user gets the following error: > Error Occurred While Processing Request > > Error resolving parameter FORM.REQ_JUST [snip] Make a default value for the form, as: That should fix it for you. HTH, -R -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: Textarea problem
CFML is not case sensitive. ___ Sean Brown<[EMAIL PROTECTED]> http://www.westcar.com/ "Either way you get your dog back" -Anonymous ___ -Original Message- From: James Mathieson [mailto:[EMAIL PROTECTED]] Sent: Monday, May 08, 2000 5:32 PM To: [EMAIL PROTECTED] Subject: RE: Textarea problem Heya, Try making your validation and see if it works. I think it may be case-sensitive, so the function is being thrown off. Cheers, James -Original Message- From: Howell, Katie [mailto:[EMAIL PROTECTED]] Sent: Monday, May 08, 2000 2:44 PM To: [EMAIL PROTECTED] Subject: Textarea problem I'm having a problem processing a text area. It seem if a user enters anything with single quotes, double quotes or the percent sign it causes problems. The text area looks like: and on the processing page I have this for validation: You must enter the justification. Back The user gets the following error: Error Occurred While Processing Request Error resolving parameter FORM.REQ_JUST The specified form field cannot be found. This problem is very likely due to the fact that you have misspelled the form field name. The error occurred while evaluating the expression: FORM.REQ_JUST Is "" The error occurred while processing an element with a general identifier of (CFIF), occupying document position (3:1) to (3:26). This only seems to happen when we have "", '', or % entered in the text area. Anyone have any suggestions? Thanks! - - Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: Textarea problem
In <01A056931BA6D011AE63F84A801204446FA6@KSCMBS41>, Howell, Katie ([EMAIL PROTECTED]) in a fit of unbridled passion, wrote: > I'm having a problem processing a text area. It seem if a user enters > anything with single quotes, double quotes or the percent sign it causes > problems. The text area looks like: > class="sgs8n"> > > and on the processing page I have this for validation: > > > You must enter the justification. > Back > > > > The user gets the following error: > Error Occurred While Processing Request > > Error resolving parameter FORM.REQ_JUST [snip] Make a default value for the form, as: That should fix it for you. HTH, -R -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: Textarea problem
Katie, I tried out your example and I'm guessing that the action="" attributes of the element is either not specified, or explicitly set to action="get". (the default is get too.) If you are posting with characters other than a-zA-Z_0-9 then you'll need to either URLEncodedFormat() them, or use the action=POST attributes to the element. Since you are using a textarea element in the form, it makes more sense to use the POST action. special characters are used in URL strings (and the GET method) to separate the name=value pairs, since your text has these special characters, the name=value pairs were mangled, resulting in a value no being defined where you thought it would be. Another suggestion: You must enter the justification. Back ___ Sean Brown<[EMAIL PROTECTED]> http://www.westcar.com/ "Either way you get your dog back" -Anonymous ___ -Original Message- From: Howell, Katie [mailto:[EMAIL PROTECTED]] Sent: Monday, May 08, 2000 2:44 PM To: [EMAIL PROTECTED] Subject: Textarea problem I'm having a problem processing a text area. It seem if a user enters anything with single quotes, double quotes or the percent sign it causes problems. The text area looks like: and on the processing page I have this for validation: You must enter the justification. Back The user gets the following error: Error Occurred While Processing Request Error resolving parameter FORM.REQ_JUST The specified form field cannot be found. This problem is very likely due to the fact that you have misspelled the form field name. The error occurred while evaluating the expression: FORM.REQ_JUST Is "" The error occurred while processing an element with a general identifier of (CFIF), occupying document position (3:1) to (3:26). This only seems to happen when we have "", '', or % entered in the text area. Anyone have any suggestions? Thanks! -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: Textarea problem
Heya, Try making your validation and see if it works. I think it may be case-sensitive, so the function is being thrown off. Cheers, James -Original Message- From: Howell, Katie [mailto:[EMAIL PROTECTED]] Sent: Monday, May 08, 2000 2:44 PM To: [EMAIL PROTECTED] Subject: Textarea problem I'm having a problem processing a text area. It seem if a user enters anything with single quotes, double quotes or the percent sign it causes problems. The text area looks like: and on the processing page I have this for validation: You must enter the justification. Back The user gets the following error: Error Occurred While Processing Request Error resolving parameter FORM.REQ_JUST The specified form field cannot be found. This problem is very likely due to the fact that you have misspelled the form field name. The error occurred while evaluating the expression: FORM.REQ_JUST Is "" The error occurred while processing an element with a general identifier of (CFIF), occupying document position (3:1) to (3:26). This only seems to happen when we have "", '', or % entered in the text area. Anyone have any suggestions? Thanks! - - Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Textarea problem
I'm having a problem processing a text area. It seem if a user enters anything with single quotes, double quotes or the percent sign it causes problems. The text area looks like: and on the processing page I have this for validation: You must enter the justification. Back The user gets the following error: Error Occurred While Processing Request Error resolving parameter FORM.REQ_JUST The specified form field cannot be found. This problem is very likely due to the fact that you have misspelled the form field name. The error occurred while evaluating the expression: FORM.REQ_JUST Is "" The error occurred while processing an element with a general identifier of (CFIF), occupying document position (3:1) to (3:26). This only seems to happen when we have "", '', or % entered in the text area. Anyone have any suggestions? Thanks! -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.