So I have a site that's a storefront (via volusion.com), and in order to track orders I have to pass certain variables through to a 3rd party site via javascript.
The vars are stored in an array that's automatically generated and declared, and I have to pull the vars from them.
Here are the variables that are automatically generated via the array
OrderDetails[0] = new Array();
OrderDetails[0][0] = '3073'; // OrderID
OrderDetails[0][6] = '1'; // Quantity
So now basically below that I have a javascript that I want to transfer the array vars into the below:
var orderID = 'OrderDetails[0][0]';
var quantity = 'OrderDetails[0][6]';
so that my orderID = 3073, and quantity = 1.
What would be the proper format for those bolded lines in this .asp page to get the vars over?
I know in .asp for normal vars I would just do something like:
var quantity = '$(Quan)'--if "Quan" existed.
But it appears that it's different for arrays..since I've tried
var quantity ='$(OrderDetails)[0][6]';
and
var quantity ='$(OrderDetails[0][6])';
to no avail.
Any help would be great
The vars are stored in an array that's automatically generated and declared, and I have to pull the vars from them.
Here are the variables that are automatically generated via the array
OrderDetails[0] = new Array();
OrderDetails[0][0] = '3073'; // OrderID
OrderDetails[0][6] = '1'; // Quantity
So now basically below that I have a javascript that I want to transfer the array vars into the below:
var orderID = 'OrderDetails[0][0]';
var quantity = 'OrderDetails[0][6]';
so that my orderID = 3073, and quantity = 1.
What would be the proper format for those bolded lines in this .asp page to get the vars over?
I know in .asp for normal vars I would just do something like:
var quantity = '$(Quan)'--if "Quan" existed.
But it appears that it's different for arrays..since I've tried
var quantity ='$(OrderDetails)[0][6]';
and
var quantity ='$(OrderDetails[0][6])';
to no avail.
Any help would be great