From: <luc...@po...> - 2005-07-11 19:29:09
|
L have a problem with javascript very strange! My page have a button <input type="button" name="evento" value="F7-Novo" onclick="setBotaoAcao(getBotaoArray('INCLUIR')); redirect('/ecp/aplicacao.do?evento=x');"> and when click on it, return a exception java.lang.stackoverflow! When l was analyzing l found the problem in DomNode Class in this method public Object getScriptObject() { if (scriptObject_ == null) { scriptObject_ = ((SimpleScriptable) getPage().getScriptObject()).makeScriptableFor(this); } return scriptObject_; } This method was called by ClickableElement class in public Page Click(){..} It´s strange because this method ever throw a exception(when scriptObject is null on the first time, stop and analize it); What this method do? L can´t understand how everybody can use javascript onclick event, if this method is wrong! HELP ME, l´m pulling out my hair!! Lucas Gonçalves - PowerLogic |