Hello,
I am having an issue where my javascript variables seem to be getting
all out of whack when I do multiple AJAX calls.
The exacit issue is that 'FormID' is not always the correct value when
it is referencing itself. Sometimes it is 'pnlSales'
when it should be 'pnlManufacturing'.
Here is my code
// Fills In all forms, called on Body Load
function fillPage()
{
fillForms('pnlEngineering', getECP())
fillForms('pnlSales', getECP());
fillForms('pnlManufacturing', getECP());
}
function fillForms(FormID, ECP)
{
// Display loader
loader('show', 'Loading...');
// Each table has the same first 5 rows
columnOffSet = 5;
currency = 4;
tableName = '';
// Determine which table to go to
switch(FormID)
{
case 'pnlEngineering':
tableName = 'tc_EngInput';
break;
case 'pnlSales':
tableName = 'tc_SalesInput';
case 'pnlManufacturing':
tableName = 'tc_Manufacturing';
break;
}
TestApp.TargetCosting.returnForm(ECP, tableName, function(res)
{
if(res.value[0] != null)
{
// Gets all the Elements
in FormID that are
inputs
var TextInputs =
document.getElementById(FormID).getElementsByTagName('input');
});
return false;
}
Thanks for any help in advance,
Mat
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ajax.NET Professional" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/ajaxpro
The latest downloads of Ajax.NET Professional can be found at
http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---