Monday 09 May 2011 2:07:10 am
Hi all, I'm new in the eZpublish templating and I have a problem with a particular point! I need to get the output of a XML bloc and send it to a javascript function, the problem is that javacript functions need to have their text arguments on the same line. I use this method to get XML content : data_map.myBlocXML.content.output.output_text And when I add a image in the XML bloc, the output add some return carriage that make me this :
map.addPoint ("Siège social ", "",
|
|
"<div><h1>Siège - Pc intevin</h1> <div class=\"infos\"><div class="">
|
|
<div class="image_">...etc...");
|
|
|
So it break my javascript code! I looking for a solution to remove these return carriage from output. Thank's for answer, JB Crestot
|