-
FEATURED COMPONENTS
First time here? Check out the FAQ!
i test my app in zk5 .
i want to init a component when the page is open.
i tried following method:
1)
$init: function () {
this.$supers('$init', arguments);
this.$afterInit(this._init);
},
_init: function () {
jq("#"+this.uuid).myfunction()....
}
in this case,jq(this.uuid) execute,but it get null when getelement in jquery.
i thinks the document don't init so i can't get it.
2)
$define: {
init_data:function (v){
jq("#"+this.uuid).myfunction()...
},
in this case ,get null when getelement in jquery again.
so, how can i init my widget in zk5.
thanks!
Asked: 2009-09-08 08:28:03 +0800
Seen: 250 times
Last updated: Sep 21 '09