My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members

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").

Powered by Google Project Hosting