Avatar of aviator21114
aviator21114 asked on

Javascript query of JSON data file

Actually my original question was answered by Alexcode in a post named "XML query in Javascript"  I have a follow up question and didn't know if it could be viewed in the original post since it's closed.   As such the javascript that Alex presented is noted there.. Works wonderfully.   Please read it for the context of my follow up question..

I want to return multiple values of the query result.  If I query by "i" which is airport id I also want to return the "n" airport name and "t" and "g" the lat/long values.   I'm not sure how to do this.

Additionally, I want to move the JSON file to be external to the script.  How does this get named and also how do I reference the external JSON file from within the actual script doing the lookup

Thank you in advance for your input...

Avatar of undefined
Last Comment
Eddie Shipman

8/22/2022 - Mon

Thank you for including the link for me.  I was in a hurry and didn't take the time to figure out how to do this... Apologies...
Eddie Shipman

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Eddie Shipman

I update the fiddle to show how to have external data.

Eddie... Apologies, I didn't see that you had posted to my question...  Let me take a look at this and digest it..

Thank you,
Your help has saved me hundreds of hours of internet surfing.
Eddie Shipman

Cleaning up after just a little over a month?