Hi Josh,
thanks for the very wellcome help,
i created a small page reproducing the error (again only in IE)
Tapestry Version is 5.1.0.5

Thanks,
Peter

_ErrorPage.tml:_

<html xmlns="http://www.w3.org/1999/xhtml"; xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";
     xmlns:p="tapestry:parameter">


   <t:zone t:id="zone">
       <t:delegate to="aBlock"/>
   </t:zone>


      <t:block id="aBlock">
<div class="p_ShowActInfo" style="background-color:#DDDDDD"> <a href="#" onclick="Effect.SlideDown('info1'); return false; " id="info1a">\/</a> <a href="#" onclick="Effect.SlideUp('info1'); return false;" id="info1b" >/\</a>

<div id="info1" style="display:none;">
               <t:delegate to="CBlock"/>
           </div>
<!-- this goes if javascript disabled -->
           <NOSCRIPT>
               <t:delegate to="CBlock"/>
           </NOSCRIPT>
</div>
       <br/>
<t:actionLink t:id="linkA" zone="zone"> show B </t:actionLink> </t:block>


   <t:block id="CBlock">
bCblock bla bla<br/>
           bCblock bla bla<br/>
           bCblock bla bla<br/>
   </t:block>

<t:block id="BBlock"> BBlock Blablabla<br/>
               BBlock Blablabla<br/>
                   BBlock Blablabla<br/>
                       BBlock Blablabla<br/>
    <t:actionLink  t:id="linkB" zone="zone"> show A </t:actionLink>
</t:block>
</html>



and ErrorPage.java:

import org.apache.tapestry5.Block;
import org.apache.tapestry5.annotations.Property;
import org.apache.tapestry5.ioc.annotations.Inject;

public class ErrorPage {

   @SuppressWarnings("unused")    @Inject    @Property
   private Block aBlock;
   @SuppressWarnings("unused")    @Inject    @Property
   private Block bBlock;
   @SuppressWarnings("unused")    @Inject    @Property
   private Block cBlock;
public Object onActionFromLinkA(){
       return bBlock;
   }
public Object onActionFromLinkB(){
       return aBlock;
   }
}



Josh Canfield schrieb:
My guess is it has something to do with code you aren't showing us...
I'd love to help but I don't have the time to try all the variations
that might be causing your problem. If you can create a small sample
page that reproduces the problem I'll be glad to help you figure out
what's wrong.

It'd also be helpful to know what version of Tapestry you are using.

Thanks,
Josh

On Mon, Mar 22, 2010 at 6:52 AM, peter ricke <i...@peter-ricke.de> wrote:
Hello,
I`m writing a component wherein a zone is used for displaying various
content via blocks.
One of this blocks contains the following code

  <t:block id="infoBlock">
      <div class="p_ShowActInfo" style="background-color:#444444">
   <h2>${playingAct.title}</h2>
          <a href="#" onclick="Effect.SlideDown('info1'); return false; "
id="info1a">\/</a>
          <a href="#" onclick="Effect.SlideUp('info1'); return false;"
id="info1b" >/\</a>
                    <div id="info1" style="display:none;">
              <t:delegate to="InnerInfoBlock"/>
          </div>
            <!-- this goes if javascript disabled -->
          <NOSCRIPT>
              <t:delegate to="innerInfoBlock"/>
          </NOSCRIPT>
                      </div>...

This workes as expected. (By klicking the links, the info in the
innerInfoBlock is displayed or removed...)

But after displaying another block in the zone and then displaying again
this "infoBlock", the javascript doesn`t work any more
in IE (but works like a charme in Chrome or Firefox)


The Error message of IE doesnt tell me anything:


Benutzer-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1;
Trident/4.0; GTB6.4; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR
3.5.30729; AskTB5.5)
Zeitstempel: Mon, 22 Mar 2010 13:49:22 UTC

Meldung: Syntaxfehler
Zeile: 1
Zeichen: 18
Code: 0
URI: http://localhost:8080/agenda/view/music


I would be very thankfull for any advices
Thanks
Peter



---------------------------------------------------------------------
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