Web UI for ARGUS server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

646 lines
17 KiB

6 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
6 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
6 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //<?php require_once('../../js_asm.php'); ?>
  2. var selectedSite = <?=$SiteID;?>;
  3. var SettingsLidar3D = null;
  4. var SelectedNodeID = 0;
  5. function loadSettingsLidar3D( NodeID, Master ){
  6. SelectedNodeID = NodeID;
  7. Ext.Ajax.request({
  8. url: '/lib/controller/getSettingsLidsr3D.php',
  9. params: {
  10. NID: NodeID,
  11. MST: ((Master)?1:0),
  12. UID: <?=$UserID;?>,
  13. SID: '<?=$Session;?>',
  14. },
  15. success: function( response, opts ){
  16. // If the response is JSON, you have to decode it
  17. var data = Ext.decode(response.responseText);
  18. Ext.getCmp('setting_master_ip').setValue( data.ip_address );
  19. Ext.getCmp('setting_master_port').setValue( data.port );
  20. Ext.getCmp('setting_slave_ip').setValue( data.aux_ip_address );
  21. Ext.getCmp('setting_slave_port').setValue( data.aux_port );
  22. Ext.getCmp('setting_lat').setValue( data.lat );
  23. Ext.getCmp('setting_lon').setValue( data.lon );
  24. Ext.getCmp('setting_alt').setValue( data.alt );
  25. Ext.getCmp('setting_roll').setValue( data.roll );
  26. Ext.getCmp('setting_pitch').setValue( data.pitch );
  27. Ext.getCmp('setting_yaw').setValue( data.yaw );
  28. },
  29. failure: function( response, opts ) {
  30. //Ext.fly('some_div').update('Fail!');
  31. }/*,
  32. callback: function(options,success,response){
  33. // use this if you need to perform your own success/failure checking
  34. }*/
  35. });
  36. };
  37. function SaveSettingsLidar3D( ){
  38. if( SelectedNodeID == 0 ) return;
  39. t1 = Ext.getCmp('setting_master_ip').getValue();
  40. t2 = Ext.getCmp('setting_master_port').getValue();
  41. t3 = Ext.getCmp('setting_slave_ip').getValue();
  42. t4 = Ext.getCmp('setting_slave_port').getValue();
  43. t5 = Ext.getCmp('setting_lat').getValue();
  44. t6 = Ext.getCmp('setting_lon').getValue();
  45. t7 = Ext.getCmp('setting_alt').getValue();
  46. t8 = Ext.getCmp('setting_roll').getValue();
  47. t9 = Ext.getCmp('setting_pitch').getValue();
  48. t10 = Ext.getCmp('setting_yaw').getValue();
  49. Ext.Ajax.request({
  50. url: '/lib/controller/setSettingsLidsr3D.php',
  51. params: {
  52. NID: SelectedNodeID,
  53. UID: <?=$UserID;?>,
  54. SID: '<?=$Session;?>',
  55. MIP: t1,
  56. MPP: t2,
  57. SIP: t3,
  58. SPP: t4,
  59. LAT: t5,
  60. LON: t6,
  61. ALT: t7,
  62. ROL: t8,
  63. PCH: t9,
  64. YAW: t10
  65. },
  66. success: function( response, opts ){
  67. // If the response is JSON, you have to decode it
  68. var data = Ext.decode(response.responseText);
  69. if( data.success == true ) {
  70. Ext.Msg.show({
  71. title:'Info Message',
  72. msg: 'Settings are sucessfully saved.',
  73. buttons: Ext.Msg.OK,//YESNOCANCEL,
  74. fn: function(){
  75. SettingsLidar3D.hide();
  76. },
  77. //animEl: 'elId',
  78. icon: Ext.MessageBox.INFO //QUESTION
  79. });
  80. } else {
  81. Ext.Msg.show({
  82. title:'Error Message',
  83. msg: data['error'],
  84. buttons: Ext.Msg.OK,//YESNOCANCEL,
  85. fn: function(){
  86. SettingsLidar3D.hide();
  87. },
  88. //animEl: 'elId',
  89. icon: Ext.MessageBox.ERROR //QUESTION
  90. });
  91. };
  92. },
  93. failure: function( response, opts ) {
  94. //Ext.fly('some_div').update('Fail!');
  95. }/*,
  96. callback: function(options,success,response){
  97. // use this if you need to perform your own success/failure checking
  98. }*/
  99. });
  100. };
  101. function editSettingsLidar3D( NodeID, Master ){
  102. if( SettingsLidar3D == null ){
  103. SettingsLidar3D = new Ext.Window({
  104. modal: true,
  105. title: '<?=$Labels->GetLabel("_EDIT_LRF3D_SETTINGS_");?>',
  106. width: 773,
  107. height: 600,
  108. layout: 'fit',
  109. closeAction: 'hide',
  110. listeners:{
  111. beforehide : function(){
  112. Ext.getCmp('connectstarterbutton').toggle( false, false );
  113. }
  114. },
  115. items:[{
  116. layout: 'table',
  117. border: false,
  118. defaults: {
  119. // applied to each contained panel
  120. bodyStyle:'padding-top:10px;padding-left:20px;padding-right:20px;padding-bottom:10px;'
  121. },
  122. layoutConfig: {
  123. // The total column count must be specified here
  124. columns: 4
  125. },
  126. items: [{
  127. border: false,
  128. html: 'Master IP Address:'
  129. },{
  130. xtype: 'textfield',
  131. id: 'setting_master_ip',
  132. width: '70%'
  133. },{
  134. border: false,
  135. html: 'Port:'
  136. },{
  137. xtype: 'textfield',
  138. id: 'setting_master_port',
  139. width: '30%'
  140. },{
  141. border: false,
  142. html: 'Slave IP Address:'
  143. },{
  144. xtype: 'textfield',
  145. id: 'setting_slave_ip',
  146. width: '70%'
  147. },{
  148. border: false,
  149. html: 'Port:'
  150. },{
  151. xtype: 'textfield',
  152. id: 'setting_slave_port',
  153. width: '30%'
  154. },{
  155. border: false,
  156. html: 'Position Lat/Lon/Alt:'
  157. },{
  158. xtype: 'textfield',
  159. id: 'setting_lat',
  160. width: '30%'
  161. },{
  162. xtype: 'textfield',
  163. id: 'setting_lon',
  164. width: '30%'
  165. },{
  166. xtype: 'textfield',
  167. id: 'setting_alt',
  168. width: '30%'
  169. },{
  170. border: false,
  171. html: 'Orientation Roll/Pitch/Yaw:'
  172. },{
  173. xtype: 'textfield',
  174. id: 'setting_roll',
  175. width: '30%'
  176. },{
  177. xtype: 'textfield',
  178. id: 'setting_pitch',
  179. width: '30%'
  180. },{
  181. xtype: 'textfield',
  182. id: 'setting_yaw',
  183. width: '30%'
  184. }]
  185. }],
  186. bbar: [{
  187. text: '<?=$Labels->GetLabel("_CANCEL_");?>',
  188. handler: function(){
  189. SettingsLidar3D.hide();
  190. }
  191. },{
  192. text: '<?=$Labels->GetLabel("_SAVE_");?>',
  193. handler: SaveSettingsLidar3D
  194. }]
  195. });
  196. };
  197. SettingsLidar3D.show();
  198. loadSettingsLidar3D( NodeID, Master );
  199. };
  200. function reloadNetworkData(){
  201. Ext.Ajax.request({
  202. url: '/lib/controller/getNetwork.php',
  203. params: {
  204. NID: <?=$SiteID;?>,
  205. UID: <?=$UserID;?>,
  206. SID: '<?=$Session;?>',
  207. },
  208. success: function( response, opts ){
  209. // If the response is JSON, you have to decode it
  210. var data = Ext.decode(response.responseText);
  211. netwodkData.nodes = new vis.DataSet( data.nodes );
  212. netwodkData.edges = new vis.DataSet( data.edges );
  213. networkObj.setData( netwodkData );
  214. networkObj.redraw();
  215. },
  216. failure: function( response, opts ) {
  217. //Ext.fly('some_div').update('Fail!');
  218. }/*,
  219. callback: function(options,success,response){
  220. // use this if you need to perform your own success/failure checking
  221. }*/
  222. });
  223. };
  224. function createNode( STYPE ){
  225. Ext.Ajax.request({
  226. url: '/lib/controller/addNetworkNode.php',
  227. params: {
  228. NID: <?=$SiteID;?>,
  229. UID: <?=$UserID;?>,
  230. SID: '<?=$Session;?>',
  231. TYPE: STYPE
  232. },
  233. success: function( response, opts ){
  234. // If the response is JSON, you have to decode it
  235. reloadNetworkData( <?=$SiteID;?> );
  236. },
  237. failure: function( response, opts ) {
  238. //Ext.fly('some_div').update('Fail!');
  239. }/*,
  240. callback: function(options,success,response){
  241. // use this if you need to perform your own success/failure checking
  242. }*/
  243. });
  244. };
  245. function loadNodeSockets( NID, store ){
  246. Ext.Ajax.request({
  247. url: '/lib/controller/listNodeSockets.php',
  248. params: {
  249. NID: <?=$SiteID;?>,
  250. UID: <?=$UserID;?>,
  251. SID: '<?=$Session;?>',
  252. DID: NID
  253. },
  254. success: function( response, opts ){
  255. var data = Ext.decode( response.responseText );
  256. if( data['success'] == true ){
  257. store.loadData( data, false );
  258. } else {
  259. Ext.Msg.show({
  260. title:'Error Message',
  261. msg: data['error'],
  262. buttons: Ext.Msg.OK,//YESNOCANCEL,
  263. //fn: processResult,
  264. //animEl: 'elId',
  265. icon: Ext.MessageBox.ERROR //QUESTION
  266. });
  267. };
  268. //Ext.getCmp('zigzag').getEl().unmask();
  269. },
  270. failure: function( response, opts ) {
  271. //Ext.fly('some_div').update('Fail!');
  272. }/*,
  273. callback: function(options,success,response){
  274. // use this if you need to perform your own success/failure checking
  275. }*/
  276. });
  277. };
  278. function createConnection( SID, EID, CTY ){
  279. if( addConnectionDialog == null ){
  280. addConnectionDialog = new Ext.Window({
  281. modal: true,
  282. title: '<?=$Labels->GetLabel("_ADD_CONNECTION_");?>',
  283. width: 773,
  284. height: 600,
  285. layout: 'hbox',
  286. closeAction: 'hide',
  287. listeners:{
  288. beforehide : function(){
  289. Ext.getCmp('connectstarterbutton').toggle( false, false );
  290. }
  291. },
  292. items:[{
  293. xtype: 'grid',
  294. width: 380,
  295. height: 400,
  296. ds: A_socketsListStore,
  297. cm: socketListColModel,
  298. sm: A_socketSelModel
  299. },{
  300. xtype: 'grid',
  301. width: 380,
  302. height: 400,
  303. ds: B_socketsListStore,
  304. cm: socketListColModel,
  305. sm: B_socketSelModel
  306. }],
  307. bbar: [{
  308. text: '<?=$Labels->GetLabel("_CANCEL_");?>',
  309. handler: function(){
  310. addConnectionDialog.hide();
  311. }
  312. },{
  313. id: 'con_to_src',
  314. text: '<?=$Labels->GetLabel("_ADD_");?>',
  315. disabled: true,
  316. handler: function(){
  317. if( selected_A_socket != null && selected_B_socket != null ){
  318. Ext.Ajax.request({
  319. url: '/lib/controller/addConnection.php',
  320. params: {
  321. NID: <?=$SiteID;?>,
  322. SNID: SID,
  323. SOSID: selected_A_socket.id,
  324. ENID: EID,
  325. SOEID: selected_B_socket.id,
  326. UID: <?=$UserID;?>,
  327. SID: '<?=$Session;?>'
  328. },
  329. success: function( response, opts ){
  330. var data = Ext.decode(response.responseText);
  331. if( data.status ){
  332. //reloadNetworkData( NID );
  333. netwodkData.edges.add( data.edge );
  334. } else {
  335. startCreateConnection();
  336. //alert( data.message );
  337. };
  338. Ext.getCmp('connectstarterbutton').toggle( false, false );
  339. },
  340. failure: function( response, opts ) {
  341. //Ext.fly('some_div').update('Fail!');
  342. }/*,
  343. callback: function(options,success,response){
  344. // use this if you need to perform your own success/failure checking
  345. }*/
  346. });
  347. };
  348. }
  349. }]
  350. });
  351. };
  352. loadNodeSockets( SID, A_socketsListStore );
  353. loadNodeSockets( EID, B_socketsListStore );
  354. addConnectionDialog.show();
  355. };
  356. function loadNodeProperties( NodeID ){
  357. //alert( 'Node: ' + NodeID );
  358. Ext.Ajax.request({
  359. url: '/lib/controller/getNetworkNodeProps.php',
  360. params: {
  361. NID: <?=$SiteID;?>,
  362. UID: <?=$UserID;?>,
  363. SID: '<?=$Session;?>',
  364. NODE: NodeID
  365. },
  366. success: function( response, opts ){
  367. // If the response is JSON, you have to decode it
  368. var data = Ext.decode(response.responseText);
  369. var tPanel = Ext.getCmp('prop_content');
  370. tPanel.remove(0);
  371. tPanel.add( data );
  372. tPanel.doLayout();
  373. },
  374. failure: function( response, opts ) {
  375. //Ext.fly('some_div').update('Fail!');
  376. }/*,
  377. callback: function(options,success,response){
  378. // use this if you need to perform your own success/failure checking
  379. }*/
  380. });
  381. };
  382. function loadServerProperties( NodeID ){
  383. Ext.Ajax.request({
  384. url: '/lib/controller/getNetworkServerProps.php',
  385. params: {
  386. NID: <?=$SiteID;?>,
  387. UID: <?=$UserID;?>,
  388. SID: '<?=$Session;?>',
  389. NODE: NodeID
  390. },
  391. success: function( response, opts ){
  392. var data = Ext.decode(response.responseText);
  393. var tPanel = Ext.getCmp('prop_content');
  394. tPanel.remove(0);
  395. tPanel.add( data );
  396. tPanel.doLayout();
  397. },
  398. failure: function( response, opts ) {
  399. //Ext.fly('some_div').update('Fail!');
  400. }/*,
  401. callback: function(options,success,response){
  402. // use this if you need to perform your own success/failure checking
  403. }*/
  404. });
  405. };
  406. function loadSystemEditor(){
  407. if( tlInterval!= null ){
  408. window.clearInterval( tlInterval );
  409. tlInterval = null;
  410. timelineObj = null;
  411. };
  412. var tPanel = Ext.getCmp('main_portal');
  413. tPanel.removeAll( true );
  414. Ext.getCmp('main_content').setTitle( 'System Map' );
  415. tPanel.add({
  416. //title: 'System Map',
  417. //id: 'main_content',
  418. columnWidth: 0.83,
  419. //xtype: 'panel',
  420. //region:'center',
  421. ////id: 'sys_map',
  422. frame: false,
  423. border: false,
  424. ////layout: 'column', // Specifies that the items will now be arranged in columns
  425. //layout: 'vbox',
  426. /*
  427. layoutConfig: {
  428. align : 'stretch',
  429. pack : 'start',
  430. //padding:'5',
  431. //align:'middle'
  432. },*/
  433. items: [{
  434. xtype: 'panel',
  435. layout: 'fit',
  436. layoutConfig: {
  437. align : 'stretch',
  438. pack : 'start'
  439. //padding:'5',
  440. //align:'middle'
  441. },
  442. height: 700,
  443. flex: 1,
  444. frame: false,
  445. border: false,
  446. items:{
  447. id: 'sys_map'
  448. },
  449. tbar: [{
  450. xtype: 'splitbutton',
  451. text: 'Add Laser Sensor',
  452. split: true,
  453. enableToggle : undefined,
  454. menu : {
  455. items: [{
  456. text:'ALS',
  457. icon: '/style/assets/!cid_ii_jvmzuzrq10.png',
  458. handler: function(){
  459. createNode( 1 );
  460. }
  461. },{
  462. text:'LFS',
  463. icon: '/style/assets/!cid_ii_jvmzuzpt0.png',
  464. handler: function(){
  465. createNode( 2 );
  466. }
  467. },{
  468. text:'PLS-200',
  469. icon: '/style/assets/!cid_ii_jvmzuzql4.png',
  470. handler: function(){
  471. createNode( 3 );
  472. }
  473. },{
  474. text:'PLS-360',
  475. icon: '/style/assets/!cid_ii_jvmzuzr87.png',
  476. handler: function(){
  477. createNode( 4 );
  478. }
  479. },{
  480. text:'3DLIDAR',
  481. icon: '/style/assets/unnamed34.png',
  482. handler: function(){
  483. createNode( 5 );
  484. }
  485. }]
  486. }
  487. },{
  488. xtype: 'splitbutton',
  489. text: 'Add Additional Equipment',
  490. split: true,
  491. enableToggle : true,
  492. menu : {
  493. items: [{
  494. text:'Static Analog Camera',
  495. icon: '/style/assets/11_node.png'
  496. },{
  497. text:'PTZ Analog Camera',
  498. icon: '/style/assets/12_node.png'
  499. },{
  500. text:'Static IP Camera',
  501. icon: '/style/assets/11_node.png',
  502. handler: function(){
  503. SelectedCamPTZ = false;
  504. addIpCam();
  505. }
  506. },{
  507. text:'PTZ IP Camera',
  508. icon: '/style/assets/12_node.png',
  509. handler: function(){
  510. SelectedCamPTZ = true;
  511. addIpCam();
  512. }
  513. },{
  514. text:'DVR/Video Server/Streamer',
  515. icon: '/style/assets/videoServer.png',
  516. handler: function(){
  517. addMediaServer();
  518. }
  519. },{
  520. text:'Network Video Recorder',
  521. icon: '/style/assets/15_node.png'
  522. },{
  523. text:'Ethernet to UART transeiver',
  524. icon: '/style/assets/eth2uart.png',
  525. handler: function(){
  526. addEthernet2Uart();
  527. }
  528. },{
  529. text:'DC to Ethernet (ADAM)',
  530. icon: '/style/assets/adam-1.png',
  531. }]
  532. }
  533. },{
  534. xtype: 'button',
  535. id: 'connectstarterbutton',
  536. text: 'Add Connection',
  537. enableToggle : undefined,
  538. handler: function(){
  539. Ext.getCmp('connectstarterbutton').toggle( true, true );
  540. startCreateConnection(1);
  541. }
  542. }]
  543. }]
  544. });
  545. tPanel.add({
  546. title: 'Properties',
  547. xtype: 'panel',
  548. flex: 1,
  549. height: 700,
  550. //width: 210,
  551. columnWidth: 0.17,
  552. layout: 'fit',
  553. //frame: true,
  554. id: 'prop_content',
  555. // border: true
  556. items:{
  557. html: 'Select Item From Map'
  558. }
  559. });
  560. tPanel.doLayout();
  561. Ext.Ajax.request({
  562. url: '/lib/controller/getNetwork.php',
  563. params: {
  564. NID: selectedSite,
  565. UID: <?=$UserID;?>,
  566. SID: '<?=$Session;?>'
  567. },
  568. success: function( response, opts ){
  569. // If the response is JSON, you have to decode it
  570. var data = Ext.decode(response.responseText);
  571. netwodkData.nodes = new vis.DataSet( data.nodes );
  572. netwodkData.edges = new vis.DataSet( data.edges );
  573. var container = document.getElementById(Ext.getCmp('sys_map').body.id);
  574. networkObj = new vis.Network(container, netwodkData, networkOpts );
  575. networkObj.on("click", function (params) {
  576. //if(!connectionAddMode){
  577. if( params.nodes.length > 0 ){
  578. if( netwodkData.nodes.get(params.nodes[0]).role == 'server' ){
  579. loadServerProperties( params.nodes[0] );
  580. } else {
  581. loadNodeProperties( params.nodes[0] );
  582. };
  583. } else if( params.edges.length > 0 ){
  584. selectedConnection = netwodkData.edges.get(params.edges[0]);
  585. loadLinkProperties( params.edges[0], selectedConnection.from, selectedConnection.to );
  586. };
  587. //};
  588. });
  589. networkObj.on("doubleClick", function (params) {
  590. //if(!connectionAddMode){
  591. if( params.nodes.length > 0 ){
  592. loadNodeProperties( params.nodes[0] );
  593. } else if( params.edges.length > 0 ){
  594. selectedConnection = netwodkData.edges.get(params.edges[0]);
  595. loadLinkProperties( params.edges[0], selectedConnection.from, selectedConnection.to );
  596. };
  597. //};
  598. });
  599. /*
  600. networkObj.on("dragStart", function (params) {
  601. if( connectionAddMode ){
  602. var tID = this.getNodeAt(params.pointer.DOM);
  603. if( tID != undefined ){
  604. newConnectionStart = tID;
  605. };
  606. };
  607. });
  608. networkObj.on("dragEnd", function (params) {
  609. if( connectionAddMode ){
  610. var tID = this.getNodeAt(params.pointer.DOM);
  611. if( tID != undefined ){
  612. newConnectionEnd = tID;
  613. //selectedConnection = netwodkData.edges[netwodkData.edges.length];
  614. //selectedConnection.color = {
  615. // color: '#ff0000',
  616. // opacity: 0.3,
  617. // highlight: 'blue'
  618. //};
  619. //networkObj.addEdgeMode(0);
  620. createConnection( newConnectionStart, newConnectionEnd );
  621. connectionAddMode = false;
  622. };
  623. };
  624. });
  625. */
  626. },
  627. failure: function( response, opts ) {
  628. //Ext.fly('some_div').update('Fail!');
  629. }/*,
  630. callback: function(options,success,response){
  631. // use this if you need to perform your own success/failure checking
  632. }*/
  633. });
  634. };