Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Showing bullet in my textarea for update page

Status
Not open for further replies.

evergreean

Technical User
Feb 15, 2006
68
US
I have a translation filter (changing Microsoft Word Bullet into a bullet using an <li> tag for my MX pages) where it works great.

The only issue I have is the user sees the <li> tag in the update page in the textarea part. I now have the word "BULLET" instead of the <li> tag showing up. I really want to put in an actual bullet. I dont want to use the &ordm symbol because it comes out as "&ordm" in the web page so it doesn matter if I use that or the <li> tag because the user never sees the actual bullet in the textarea tag. Anyway to put a bullet to show up in the textarea?
Code:
<cfset teststring = Replace(test,"<li>","BULLET","ALL")>
<textarea name="test" wrap="soft">#teststring#</textarea>
 
Thanks,

The <li> tag seems to look the most like a Microsoft bullet symbol. But I will take your advise and use something like the &middot; symbol bullet for the translation.

Unfortunately users copy and paste Word bullets into my page.
Can you advise how you handle the Bullet translation in the textarea tag because now my update page will have field info like this:

Code:
Test Field information that will be updated and is located in a textarea tag
[COLOR=blue]
&middot; field data here etc with

&middot; more field data here etc 
[/color]
 
I found this and it seems to handle ALL or any Microsoft copy and paste weird characters:

Code:
<cfprocessingdirective pageencoding="iso-8859-1">
<cfset setEncoding("form","iso-8859-1")>
<cfset setEncoding("URL","iso-8859-1")>
<cfcontent type="text/html; charset=iso-8859-1">

All my forms are now filtering correctly after I put the above in my application.cfm page.

Advise if anyone else is using this and any long term issues that can happen if I use it??

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top