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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Showing correct format on a page 3

Status
Not open for further replies.

kensington43

Technical User
Nov 29, 2005
50
US

Please advise the best way to preserve bullets entered into my CF MX 6.1 web site using Access 2000 Database.

Example of user entry into Form:
[ul]
[li]item 1[/li]
[li]item 2[/li]
[/ul]

Result on my View Record Web page:
Code:
      item 1
      item 2

Form preview page that the variable is coming from:
Code:
<input type="text" name="myField"  value="#htmleditformat(FORM.myField)#">

View record page:
Code:
<pre>#myField#</pre>

Currently it will not show the bullets that the user entered in the form on the View Record page.

Please advise.

 
kensington43, no reason why that shouldn't work. Double check your dB to make sure it has the <ul><li> tags saved in the record.

I just did a small test, and I see it fine.

[sub]
____________________________________
Just Imagine.
[sub]
 
Its sometimes comes from a Word Document and copied over into my Form so I assume it should not show up as <ul><li> tags saved in the record?

In the database it shows the bullet with a square character next to it.
 
view the source and see what it looks like.

We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true.
 
kensington43, imstillatwork is right. MS Word uses wierd HTML code. And, to try use the rereplace() function sometimes works and sometimes not, mainly because you might miss some tags that Word uses.

[sub]
____________________________________
Just Imagine.
[sub]
 
viewing the page source will confirm that.

We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true.
 
Thanks,

It now works but the format doesnt always look exactly the same as the copied version from Word.

Is it correct to advise users that Bullet formatted info or any info copied from Word to the Web page might not always show or format the same way as it did on the original Microsoft Document?
Is there any official words or more friendlier way of documenting this on my web page?
 
I wonder if it pastes any kind of characters. for example if you replace char(10) with <br> you'll get the page breaks in your display the same way a user enter's it in the text area. Might be something there, you just can't see it. then again, there may not be.

We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true.
 
I assume this is just an ongoing issue with only Cold Fusion handling the Word characters or do other SSL have the issue?

“test of word quotes”

• Test of bullet
 
kensington43, its not that this is a CF issue, its more like an MS causing the issue. If you ever used Word to create an HTML file you'll see Word "creates" pages of un-necesary code. Its as if Bill Gates is saying, "I'm special so I get to make up tons of crap and you have to deal with it". its more like a nusciance then anything else because developers need to create solution to make sure the display is correct.

I'm sure ASP, PHP, and other languages have this kind of issue to deal with.

[sub]
____________________________________
Just Imagine.
[sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top