[Cartoweb-users] CRLF in TEXTAREA (edition plugin) - problems

Igor Evdokimov igev at mail.ru
Wed Jun 27 23:52:03 EDT 2007


Hi again!

I created one TEXTAREA field in edition plugin instead of INPUT.
I works, but if user adds string in this TEXTAREA with CRLF (wrap  
lines),
further edition (selection of this point to edit) fails with error

Error: unterminated string literal
Source: http://imac.local/cartoweb/htdocs/terraphoto.php
String 86, Symbol 92
Source:
     feature.attributes = new Array("4","shgsdfh","/terraphoto/ 
incoming/2249Puerto_Rico.gif","sdhsdfhsdf

(after "sdhsdfhsdf" there was CRLF).

I think I must replace CRLF symbol with <br> (for example) via  
STR_REPLACE,
but I don't know - where in sources I must insert this replacing.
Or I should do it any other way?

Best regards, Igor.


More information about the Cartoweb-users mailing list