I want to use ajax in jquery to get data for my page...
The problem is that the url which i call has some query strings to be sent along with it...
for example: the url which i call for getting data is:-
http://mysite.in.dataengine.aspx?t=abcde&token=h34jk3&f=xml
the data i get in response from this url can be in xml format or java script arrays(whichever i choose)
for eg...the xml wil look like this:-
<root version="1.0"> <Regions> <Region SubCode="MWEST" RCode="west"/> <Region SubCode="MCENT" RCode="north"/> <Region SubCode="THAN" RCode="south"/> </Regions> </root> and the javascript array would look like this :-
Region = new Array(); Region.push(new Array('MWEST', 'west')); Region.push(new Array('MCENT', 'north' )); Region.push(new Array('THAN', 'south')); So when i get the data i want to store it in a drop down box.(using ajax)
Note I can get either xml OR javascript arrays as the returned data, not both together.