[Vtigercrm-commits] [vtiger-commits] r6940 - in /vtigercrm/trunk/Smarty/templates: CreateView.tpl salesEditView.tpl
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Jun 7 08:04:48 EDT 2006
Author: saraj
Date: Wed Jun 7 06:04:44 2006
New Revision: 6940
Log:
ajax functionality has been modified
Modified:
vtigercrm/trunk/Smarty/templates/CreateView.tpl
vtigercrm/trunk/Smarty/templates/salesEditView.tpl
Modified: vtigercrm/trunk/Smarty/templates/CreateView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/CreateView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/CreateView.tpl Wed Jun 7 06:04:44 2006
@@ -21,27 +21,26 @@
<script type="text/javascript" src="modules/{$MODULE}/{$SINGLE_MOD}.js"></script>
<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}
-
</script>
{include file='Buttons_List1.tpl'}
Modified: vtigercrm/trunk/Smarty/templates/salesEditView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/salesEditView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/salesEditView.tpl Wed Jun 7 06:04:44 2006
@@ -20,24 +20,24 @@
<script type="text/javascript" src="jscalendar/calendar-setup.js"></script>
<script type="text/javascript" src="modules/{$MODULE}/{$SINGLE_MOD}.js"></script>
<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}
</script>
More information about the vtigercrm-commits
mailing list