<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "can i pass variable with a callback to a json query? "]]></title>
		<link>http://forum.geonames.org/gforum/posts/list/4.page</link>
		<description><![CDATA[Latest messages posted in the topic "can i pass variable with a callback to a json query? "]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>can i pass variable with a callback to a json query? </title>
				<description><![CDATA[ 
this is probably a dumb question since im new to javascript 

i would really like to pass a variable with my call back to a json service. so like &callback=myfunction(mydiv)

 i cant figure out how to reference the response and a passed variable. 

function myfunction(response,mydiv) { //this of course doesnt work

}

is this possible, anybody got an example around? ]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1736.page#7083</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1736.page#7083</link>
				<pubDate><![CDATA[Fri, 29 Jan 2010 19:15:53]]> GMT</pubDate>
				<author><![CDATA[ tlove]]></author>
			</item>
			<item>
				<title>Re:can i pass variable with a callback to a json query? </title>
				<description><![CDATA[ there is an example here: http://www.geonames.org/export/ajax-postalcode-autocomplete.html]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1736.page#7103</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1736.page#7103</link>
				<pubDate><![CDATA[Sat, 30 Jan 2010 08:06:07]]> GMT</pubDate>
				<author><![CDATA[ marc]]></author>
			</item>
			<item>
				<title>Re:can i pass variable with a callback to a json query? </title>
				<description><![CDATA[ thanks but i dont think you understand what i am asking for. i have seen the page you sent me and i have already implemented something like that, but what i would like to do is pass a variable through the call back like this..

request = 'http://www.geonames.org/postalCodeLookupJSON?postalcode=' + postalcode  + '&country=' + country  + '&callback=getLocation(result,divtoloadresultin)';

the line above is from the example page you sent me but with 

the app i am working on is here 

http://map.region3dfg.org/dev/r3starter3_7.html

use the info point tool at the bottom of the screen

(may be broken when yu go there, its under development.)

]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1736.page#7110</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1736.page#7110</link>
				<pubDate><![CDATA[Sat, 30 Jan 2010 18:32:44]]> GMT</pubDate>
				<author><![CDATA[ tlove]]></author>
			</item>
	</channel>
</rss>