You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by ma...@mail.bg on 2011/09/02 11:02:13 UTC

Javascript does not detect components loaded upon panel replacement



Hello guys, 


I've got the following issue. I have a main page that declares in its
markup . Once I replace an existing panel with another one, some JQuery
within the file scripts.js cannot detect markup that come with the new
panel and therefore does not call them. It acts just like that markup is
not present in DOM. 


Would you please assist? 


Thanks,
Martin 

-------------------------------------
Mail.bg: Безплатен e-mail адрес. Най-добрите характеристики на българския пазар - 10 GB пощенска кутия, 20 MB прикрепен файл, безплатен POP3, мобилна версия, SMS известяване и други.

Ultra strange behaviour AjaxButton - Form

Posted by ma...@mail.bg.
 


Hello, guys, 


I'm experiencing some very strange problem - an AjaxButton's onSubmit never
gets called. 


Here are snippets of what I have: 


HTML: 


... some fields...


in code: 


Form form = new Form("form"); 


AjaxButton submitButton = new AjaxButton("submit") { 


public void onSubmit(ART target, Form form) { 


System.out.println("clicked"); // never printed


... some logic ...  


} 


}; 


form.add(submitButton); 


add(form); 


The above statement and logic are never reached.
The Ajax debugger prints nothing. 


Any help is appreciated. 


Thanks,
Martin  

-------------------------------------
Mail.bg: Безплатен e-mail адрес. Най-добрите характеристики на българския пазар - 10 GB пощенска кутия, 20 MB прикрепен файл, безплатен POP3, мобилна версия, SMS известяване и други.

Re: Javascript does not detect components loaded upon panel replacement

Posted by ma...@mail.bg.


Thanks, fixed it. 


----- Цитат от Igor Vaynberg (igor.vaynberg@gmail.com), на
02.09.2011 в 18:20 -----   google "jquery live"


-igor


On Fri, Sep 2, 2011 at 2:02 AM,  wrote:


Hello guys,


I've got the following issue. I have a main page that declares in its
markup . Once I replace an existing panel with another one, some JQuery
within the file scripts.js cannot detect markup that come with the new
panel and therefore does not call them. It acts just like that markup is
not present in DOM.


Would you please assist?


Thanks,
Martin


-------------------------------------
Mail.bg: Безплатен e-mail адрес. Най-добрите
характеристики на българския пазар - 10 GB
пощенска кутия, 20 MB прикрепен файл,
безплатен POP3, мобилна версия, SMS
известяване и други.   
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


 

-------------------------------------
Mail.bg: Безплатен e-mail адрес. Най-добрите характеристики на българския пазар - 10 GB пощенска кутия, 20 MB прикрепен файл, безплатен POP3, мобилна версия, SMS известяване и други.

Re: Javascript does not detect components loaded upon panel replacement

Posted by Igor Vaynberg <ig...@gmail.com>.
google "jquery live"

-igor

On Fri, Sep 2, 2011 at 2:02 AM,  <ma...@mail.bg> wrote:
>
>
>
> Hello guys,
>
>
> I've got the following issue. I have a main page that declares in its
> markup . Once I replace an existing panel with another one, some JQuery
> within the file scripts.js cannot detect markup that come with the new
> panel and therefore does not call them. It acts just like that markup is
> not present in DOM.
>
>
> Would you please assist?
>
>
> Thanks,
> Martin
>
> -------------------------------------
> Mail.bg: Безплатен e-mail адрес. Най-добрите характеристики на българския пазар - 10 GB пощенска кутия, 20 MB прикрепен файл, безплатен POP3, мобилна версия, SMS известяване и други.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org