homepage Welcome to WebmasterWorld Guest from 54.204.215.209
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Website
Visit PubCon.com
Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
Forum Library, Charter, Moderators: phranque

Website Technology Issues Forum

    
I can't use form text areas with my site. How to present code to users?
mrjohncory




msg:3995728
 4:03 pm on Sep 25, 2009 (gmt 0)

I need to provide code for visitors/users to copy and paste (I'm asking people who want to link to our site to use an image hosted on our site) ... but, unfo, this particular CMS site does not allow me use a form and text areas in which I would normally present the code.

Do you know of another way to present code without using scripts (which are also verbotten in this particular instance)?

 

rocknbil




msg:3995760
 4:57 pm on Sep 25, 2009 (gmt 0)

The problem is the quotes and carats, and sometimes ampersands (rarely, if the previous are addressed.) The right way is to encode quotes and carats with html entities (", <, >, &) in the CMS programming before they are stored anywhere.

If you can't modify it, perhaps you can write/locate some Javascript that converts the quotes and carats to entities before submitting.

mrjohncory




msg:3995809
 6:16 pm on Sep 25, 2009 (gmt 0)

Thanks, Bill ... I encoded the HTML characters within a DIV. I was worried the CMS would freak out on them but it worked like a charm!

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved