You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Jun Tsai <ju...@gmail.com> on 2006/11/21 08:52:23 UTC
How to fire off EventLister?
Hi,
all
Is it intended that if there is an AutoCompleter component in the form that
is
attached to an EventListener .After I view the page,the listener js appear
in every page .
tapestry.cleanConnect(dojo.byId("PriceTypeField2"), "onclick",
"event2102051061");
tapestry.event2102051061=function(e){
var content={beventname:"onclick"};
tapestry.event.buildEventProperties(e, content);
if (!content["beventtarget.id"])
content["beventtarget.id"]="PriceTypeField2";
tapestry.bind("/directevent.svc?component=%24Border.%24Body&entity:sale/SaleContractStyleList=BrO0ABXcTAAAAAQAADHJvb3RlZE9iamVjdHQAVUhCOmNvbS5iam1heGluZm8ucGlhbm8ubW9kZWwuc2FsZS5TYWxlQ29udHJhY3RNYWluOjpTMjgyODI4NGQwZjA5NTdjNzAxMGYwOTU3ZGJhYTAwMjY%3D&page=sale%2FSaleContractStyleList&session=T",
content);
};
dojo.event.connect(dojo.byId("PriceTypeField2"),
"onclick", tapestry, "event2102051061");
I missing something?
--
Welcome to China Java Users Group(CNJUG).
http://cnjug.dev.java.net