Thanks Thiago, Thanks Josh.

I used RenderSupport.addScript() as suggested. Therefore i wrote 2 mixins, one for displaying the area and one for removal Maybe this whole mixin-strategie was not what you suggested, but i did not find anything better.
So i`m happy about having implemented my first own mixins and...it works!
Thanks a lot!
Peter



Josh Canfield schrieb:
Thiago is right. What is happening is the single quotes in your
javascript are getting html encoded and IE doesn't like it. When
prototype goes to update the div using innerHTML you get two syntax
errors for the ' characters in the onclick attributes (the line
number being 1 tells you that it's going to be eval'd script and the
offsets are 18 and 16 which are the & chars in the onclick
attributes).

{"content":"<div style='background-color:#DDDDDD'
class='p_ShowActInfo' xmlns='http://www.w3.org/1999/xhtml'><a
id='info1a' onclick='Effect.SlideDown(&apos;info1&apos;); return
false;' href='#'>\\/<\/a><a id='info1b'
onclick='Effect.SlideUp(&apos;info1&apos;); return false;'
href='#'>/\\<\/a><div style='' id='info1'>\nbCblock bla
bla<br/>\nbCblock bla bla<br/>\nbCblock bla bla<br/><\/div><!-- this
goes if javascript disabled --><NOSCRIPT>\nbCblock bla
bla<br/>\nbCblock bla bla<br/>\nbCblock bla
bla<br/><\/NOSCRIPT><\/div><br
xmlns='http://www.w3.org/1999/xhtml'/><a id='linkA-12787e695b1'
href='/experiment/peterrick.linka'> show
B<\/a>","script":"Tapestry.init({\"linkZone\":[[\"linkA-12787e695b1\",\"zone\",\"/experiment/peterrick.linka\"]]});\n"}


Josh

On Mon, Mar 22, 2010 at 2:22 PM, Thiago H. de Paula Figueiredo
<thiag...@gmail.com> wrote:
On Mon, 22 Mar 2010 18:16:33 -0300, peter ricke <i...@peter-ricke.de> wrote:

           <a href="#" onclick="Effect.SlideUp('info1'); return false;"
id="info1b" >/\</a>
Use RenderSupport.addScript() to add JavaScript to the page instead of
adding it inside the HTML, specially inside zones.

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and
instructor
Owner, software architect and developer, Ars Machina Tecnologia da
Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org







---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to