I tried adding

public void renderHead(IHeaderResponse response) {
        response.renderJavascriptReference("views/js/ToggleHighLigh.js");
        response.renderJavascriptReference("views/js/jquery-1.3.2.min.js");
        }

from IHeaderResponse, but it isn't work

2010/4/6 Daniela Valero <danielavalero...@gmail.com>

> Hi everybody
>
> I'm having a problem with my call to javascript from a panel. The problem
> is tah javascript does not work (if i call it from a page it works fine)
>
> I'm doing this:
>
> <wicket:head>
>     <script language="JavaScript1.2"
> src="views/js/jquery-1.3.2.min.js"></script>
>     <script language="JavaScript1.2"
> src="views/js/ToggleHighLigh.js"></script>
> </wicket:head>
>
> <p class="row">Click to toggle</p>
>   <p class="row highLightedRow">highlight</p>
>   <p class="row">on these</p>
>   <p class="row">paragraphs</p
>
>
> When I click the <p> element it should call ToggleHighLigh.js, and add a
> css background.
>
> I tried calling the javascript from Page parent, but it isn't work
>
> What I'm missing?
>
>
> --
> | Daniela Valero
>
> "No hay vientos favorables para quien no sabe a donde quiere ir!
>



-- 
| Daniela Valero

"No hay vientos favorables para quien no sabe a donde quiere ir!

Reply via email to