[Vtigercrm-commits] [vtiger-commits] r6938 - in /vtigercrm/trunk/Smarty/templates/Inventory: InventoryCreateView.tpl InventoryDetailView.tpl InventoryEditView.tpl
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Jun 7 07:53:36 EDT 2006
Author: saraj
Date: Wed Jun 7 05:53:30 2006
New Revision: 6938
Log:
ajax functionality has been modified
Modified:
vtigercrm/trunk/Smarty/templates/Inventory/InventoryCreateView.tpl
vtigercrm/trunk/Smarty/templates/Inventory/InventoryDetailView.tpl
vtigercrm/trunk/Smarty/templates/Inventory/InventoryEditView.tpl
Modified: vtigercrm/trunk/Smarty/templates/Inventory/InventoryCreateView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/Inventory/InventoryCreateView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/Inventory/InventoryCreateView.tpl Wed Jun 7 05:53:30 2006
@@ -23,23 +23,24 @@
<script type="text/javascript">
-function ajaxResponse(response)
-{ldelim}
- document.getElementById('autocom').innerHTML = response.responseText;
- document.getElementById('autocom').style.display="block";
- hide('vtbusy_info');
-{rdelim}
-
function sensex_info()
{ldelim}
- var Ticker = document.getElementById('tickersymbol').value;
+ var Ticker = $('tickersymbol').value;
if(Ticker!='')
{ldelim}
- show('vtbusy_info');
- var ajaxObj = new VtigerAjax(ajaxResponse);
- //var Ticker = document.getElementById('tickersymbol').value;
- var urlstring = "module={$MODULE}&action=Tickerdetail&tickersymbol="+Ticker;
- ajaxObj.process("index.php?",urlstring);
+ $("vtbusy_info").style.display="inline";
+ new Ajax.Request(
+ 'index.php',
+ {ldelim}queue: {ldelim}position: 'end', scope: 'command'{rdelim},
+ method: 'post',
+ postBody: 'module={$MODULE}&action=Tickerdetail&tickersymbol='+Ticker,
+ onComplete: function(response) {ldelim}
+ $('autocom').innerHTML = response.responseText;
+ $('autocom').style.display="block";
+ $("vtbusy_info").style.display="none";
+ {rdelim}
+ {rdelim}
+ );
{rdelim}
{rdelim}
Modified: vtigercrm/trunk/Smarty/templates/Inventory/InventoryDetailView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/Inventory/InventoryDetailView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/Inventory/InventoryDetailView.tpl Wed Jun 7 05:53:30 2006
@@ -235,16 +235,17 @@
{/if}
<script>
- var data = "module={$MODULE}&action={$MODULE}Ajax&ajxaction=GETTAGCLOUD&file=TagCloud";
- var ajaxObj = new VtigerAjax(ajaxTagCloudResp);
- ajaxObj.process("index.php?",data);
- function ajaxTagCloudResp(response)
- {ldelim}
- var item = response.responseText;
- getObj('tagfields').innerHTML = item;
- document.getElementById('txtbox_tagfields').value ='';
-
- {rdelim}
+ new Ajax.Request(
+ 'index.php',
+ {ldelim}queue: {ldelim}position: 'end', scope: 'command'{rdelim},
+ method: 'post',
+ postBody: 'module={$MODULE}&action={$MODULE}Ajax&file=TagCloud&ajxaction=GETTAGCLOUD',
+ onComplete: function(response) {ldelim}
+ $("tagfields").innerHTML=response.responseText;
+ $("txtbox_tagfields").value ='';
+ {rdelim}
+ {rdelim}
+ );
</script>
</td>
Modified: vtigercrm/trunk/Smarty/templates/Inventory/InventoryEditView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/Inventory/InventoryEditView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/Inventory/InventoryEditView.tpl Wed Jun 7 05:53:30 2006
@@ -22,25 +22,27 @@
<script type="text/javascript" src="include/js/Inventory.js"></script>
<script type="text/javascript">
-function ajaxResponse(response)
+function sensex_info()
{ldelim}
- document.getElementById('autocom').innerHTML = response.responseText;
- document.getElementById('autocom').style.display="block";
- hide('vtbusy_info');
+ var Ticker = $('tickersymbol').value;
+ if(Ticker!='')
+ {ldelim}
+ $("vtbusy_info").style.display="inline";
+ new Ajax.Request(
+ 'index.php',
+ {ldelim}queue: {ldelim}position: 'end', scope: 'command'{rdelim},
+ method: 'post',
+ postBody: 'module={$MODULE}&action=Tickerdetail&tickersymbol='+Ticker,
+ onComplete: function(response) {ldelim}
+ $('autocom').innerHTML = response.responseText;
+ $('autocom').style.display="block";
+ $("vtbusy_info").style.display="none";
+ {rdelim}
+ {rdelim}
+ );
+ {rdelim}
{rdelim}
-function sensex_info()
-{ldelim}
- var Ticker = document.getElementById('tickersymbol').value;
- if(Ticker!='')
- {ldelim}
- show('vtbusy_info');
- var ajaxObj = new VtigerAjax(ajaxResponse);
- //var Ticker = document.getElementById('tickersymbol').value;
- var urlstring = "module={$MODULE}&action=Tickerdetail&tickersymbol="+Ticker;
- ajaxObj.process("index.php?",urlstring);
- {rdelim}
-{rdelim}
</script>
{include file='Buttons_List1.tpl'}
More information about the vtigercrm-commits
mailing list