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

Sort numbers after omit same numbers

P: 2
I have a list of numbers in XML file.Some of them are repeated. I want to omit repeated numbers and then sort them .How can I do it in Ajax?
Dec 14 '11 #1
Share this Question
Share on Google+
3 Replies

P: 1,059
Miss-concept about ajax. AJAX is not a programming language or not scripting. Its a method. You can do it in Javascript
Dec 15 '11 #2

P: 2
Thank you for your answer.I know that, but please say me How can I do it in javascript?
Dec 15 '11 #3

Expert Mod 15k+
P: 16,027
What do you have so far?

The basic idea is to
1. parse the XML file
2. store in an array/collection
3. on each loop iteration, check against stored values - if already stored ignore
4. when complete, sort

Which part are you having problems with?
Dec 15 '11 #4

Post your reply

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