So, basically I'm trying to fetch part of a json feed and output just that.

Example, theres a bunch of posts, comments, and an image on the post. I want to only fetch the image.

I've started out with

document.getElementById('url').innerHTML=  url.value;

r=function(data) {url=data['results'];};

html

<script type="text/javascript" src="http://www.com/search.json?q=word&callback=r"></script>
<style type="text/css" title="text/css">	
#url{font-size:15px; float:middle;}</style>

<div id="url">&nbsp;</div>
Member Avatar for Pnorq

Can you post the whole thing?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.