共有 0 个贴子
没有任何数据可供显示
开源项目社区 | 当前位置 : |
|
www.trustie.net/open_source_projects | 主页 > 开源项目社区 > extjsjuggernautwrapper |
extjsjuggernautwrapper
|
0 | 0 | 3 |
贡献者 | 讨论 | 代码提交 |
Adapts juggernaut prototype code to extjs.
Example usage:
var jg = new Ext.Juggernaut(
{
"session_id": 000,
"flash_color": "#fff", "height": "0px",
"swf_name": "juggernaut_flash",
"bridge_name": "juggernaut",
"swf_address": "url_2_jug/juggernaut.swf",
"width": "0px", "reconnect_attempts": 3,
"ei_swf_address": "url_2_exp/expressinstall.swf",
"host": "127.0.0.1",
"debug": true,
"reconnect_intervals": 3,
"flash_version": 8,
"port": 5001,
"startup":"manual",
})
jg.addListener("juggernaut:connected",function(){
Ext.log("i am connected!")
});
jg.addListener("juggernaut:msg_received",function(data){
Ext.log ("Received " + data.WHATEVERYOUSENTASJSONINTHEBODY);
})Note that I added a new parameter "startup" which indicates whether Juggernaut flash object should be created on window.load ( startup:"auto" ) or if it should startup when the Ext Object gets created (startup:"manual").