By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,261 Members | 1,658 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,261 IT Pros & Developers. It's quick & easy.

How to get data in ajax in jquery if url has querystring ?

P: 16
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**

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:-

Expand|Select|Wrap|Line Numbers
  1. <root version="1.0">
  2. <Regions>
  3. <Region SubCode="MWEST" RCode="west"/>
  4. <Region SubCode="MCENT" RCode="north"/>
  5. <Region SubCode="THAN" RCode="south"/>
  6. </Regions>
  7. </root>
  8.  
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)

Any help would really be appreciated. Thanks!!
Jun 4 '11 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.