This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > September 2004 > java script expert needed





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author java script expert needed
Russ

2004-09-29, 11:15 pm

Hello,

I'm working on a dynamic site i came across this pice of code
<%if(!isEmpty(card.bottomtext)){%><p><%=card.bottomtext.replace(/\n/g,"<p>")%></p><%}%>

what it appears to be doing is this
<p>text, text.
<p>
<p>text, text.</p>

and i dont know why the above text is in the db like this

text, text.

text, text.

Im trying to fix it to do this
<p>text, text.</p>
<p></p>
<p>text, text.</p>

or
<p>text, text.</p>
<p>text, text.</p>

Any help is greatly appreciated.

thank you
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews