Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - javascript assistance
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

javascript assistance

 Post Reply Post Reply
Author
Lofty View Drop Down
Newbie
Newbie
Avatar

Joined: 03 April 2005
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote Lofty Quote  Post ReplyReply Direct Link To This Post Topic: javascript assistance
    Posted: 11 May 2005 at 12:43pm

Hello y'all.

I've encountered a problem in a mod i'm making on my site to allow users to paste code into their forum messages using htmlarea and fckeditor.

I have the popup box working and pasting the code into the editor all fine. the issue I'm having is that both htmlarea and fckeditor replace the /n carraiage return  chr(13) with a <br /> tag.

now this is fine.  but as soon as i run the code section through server.htmlencode all the formatting is lost and theres <br /> tags all the way through the displayed code snippet.

so what i'm trying to do is to replace the carriage return with a custom tag.  which I will convert back into the carriage return on the thread view page.

so.. my plea for help.

anyone know a javascript fucntion that can find and replace the carriage return keys from a string?


Edited by Lofty - 11 May 2005 at 12:47pm
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.