Yes. I have the jquery library installed....
Main Topics
Browse All TopicsI have no clue how to use Javascript/Ajax more than just simple functions. All I'm hoping to accomplish is putting a little code snippet on my site that pulls the Outside.In Radar in JSON format so that visitors can see what's going on around the Lat/Long sent in the request like so:
http://api.outside.in/rada
All help is greatly appreciated! Links, code, anything that can help is great!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
looks like their api isn't set up for jsonp, so no remote calls from javascript. however, you can suck in the json in php and output it to a javascript variable. below is a simple example
<script type="text/javascript">
var stories = <?=file_get_contents('http:
$(function() {
$.each(stories, function() {
$("#stories").append("<h1>" + this.title + "</h1>" + "<p>" + this.body + "</p>");
});
});
</script>
You'll need to substitue back in your parameters for latitude and longitude. but for testing - it was the easiest to demonstrate.
I'm all for whichever format works the best. Whichever would be the easiest to implement is OK with me, PHP or Javascript,. I put in the code above, but I'm not getting any output. Checking the source, the file contents are coming through, but no stories are showing up on the page. Am I doing something wrong? I'm clueless with Javascript!
Thanks for all your help.
Business Accounts
Answer for Membership
by: alien109Posted on 2009-05-05 at 13:39:55ID: 24308919
Any chance on using the jQuery library in your page? It would greatly simplify the implementation for you.
ide.in/rad ar.json?la t=<?=$LATIT UDE?>&lng=<? =$LONGITUD E?>", function(data) {
essentially you would do the following:
$(function() {
$.getJSON("http://api.outs
// handle the response here.
});
});
That would, on page load, call the API and get the JSON object. After it is loaded, the body of the function (where it says //handle the response here.) would be executed.