Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
trocat #1
MS Access, Memo Return Breaks?
I am building a backend to a web site that allows the owner to update their
text. I am having a problem getting the return breaks to display on the web
page. E.g., when they type 3 paragraphs of text and submit, the text get
crammed into one big glob of text. That's how it diplays on the public page. In
MS access, how do I specify it to recognize returns? As always. your help is
appreciated!
trocat Guest
-
Format Access memo field?
Hi all, Just trying to figure out how to format a returned MS Access memo field with Coldfusion. Nothing special. Just want it to retain returns... -
updating access memo fields
How can one use Flash to update an Access Memo field and retain the whitespace a user inputs? See Paul Gubbay's Time Entry Application: Sample... -
Memo Field with Access
Hopefully someone can help me with this. I have a memo field in Access, I type for example into the text box on the webpage: (ignore the >) *... -
MS Access Memo Field and ASP
I have a memo field in a MS Access table. The contents of the field may look like this: 1. This is number one 2. This is number 2 3. Skipping... -
Memo fields in MS Access
Is there anyone that really uses DB2 8.1 memo fields in MS Access? I'm experiencing a lot of problems with them. I tried both using LONG VARCHAR... -
rob::db #2
Re: MS Access, Memo Return Breaks?
You need a function that converts line breaks into HTML <br /> tags, or into
a set of HTML <p> tags. This is pretty much the most basic problem out there
when dealing with submitted text, and there are plenty of pre-build
solutions out there with varying levels of complexity. PHP, for example, has
a built in function for handling this called nl2br, and the language you're
using probably has one too.
You can call it either when submitting the text (so the HTML tags are stored
with the text in the database), or when the public page loads, which is
easier but less efficient.
Rob
trocat wrote:> I am building a backend to a web site that allows the owner to update
> their text. I am having a problem getting the return breaks to
> display on the web page. E.g., when they type 3 paragraphs of text
> and submit, the text get crammed into one big glob of text. That's
> how it diplays on the public page. In MS access, how do I specify it
> to recognize returns? As always. your help is appreciated!
rob::db Guest
-
trocat #3
Re: MS Access, Memo Return Breaks?
Rob,
Thanks for the post. I found the solution right here at Macromedia. Tech note
[url]http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_16725[/url]. As I
thought it's real simple:
ASP with VBScript
Find the Dreamweaver-generated code that displays the data field on the
page:
<%=(myRecordset.Fields.Item("myField").Value)%>
Modify the code as specified below (code should be contained all on one
line):
<%=Replace(myRecordset.Fields.Item("myField").
Value,Chr(13),"<br>")%>
Thats it!
trocat Guest
-
rob::db #4
Re: MS Access, Memo Return Breaks?
Aye, as I said, it's just a built in function to replace line breaks (char
13), with <br /> tags. One thing to note is that the tags there are just
<br>, not <br />, which means they're not XHTML compatible.
trocat wrote:> Rob,
>
> Thanks for the post. I found the solution right here at Macromedia.
> Tech note
> [url]http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_16725[/url].
> As I thought it's real simple:
>
> ASP with VBScript
> Find the Dreamweaver-generated code that displays the data field
> on the page:
>
>
> <%=(myRecordset.Fields.Item("myField").Value)%>
>
> Modify the code as specified below (code should be contained all
> on one line):
>
>
> <%=Replace(myRecordset.Fields.Item("myField").
> Value,Chr(13),"<br>")%>
>
> Thats it!
rob::db Guest



Reply With Quote

