any heelp plz

On Sep 7, 4:56 pm, rona <[EMAIL PROTECTED]> wrote:
> ok i am start using JSON
>
> function importMarkers8(){
> var point = marker.getPoint();
> request = 'http://ws.geonames.org/findNearByWeatherJSON?lat='+point.y
> +'&lng='+point.x+'&callback=getLocation';
>
> }
>
> function getLocation(jData) {
> if (jData == null) {alert("sdasd");}
> var html = '';
>   var geonames = jData.geonames;
>   for (i=0;i< geonames.length;i++) {
>  var name = geonames[i];
>   alert("dfsdf");
>      html = html + '<a href="javascript:center(' + name.lat +',' +
> name.lng + ');">' + name.name + '</a><br>';
>   }
>   document.getElementById('side_bar').innerHTML = html;
>
> }
>
> but didnt got any results..
> is this the right way to work with json
>
> RegARDS
> On Sep 7, 3:36 pm, rona <[EMAIL PROTECTED]> wrote:
>
>
>
> > Ok i thanks for ur advice ad i am starting to work with json ..the
> > problem that i lost with different options ..that is the problem
>
> > Thanks for ur advice
>
> > On Sep 7, 3:20 pm, bratliff <[EMAIL PROTECTED]> wrote:
>
> > > rona wrote:
> > > > HI i am still have a problem with retrieving data from geonames.org
> > > > i used XML ASP proxy named "proxy.asp"
>
> > > Rona, you are not listening.  Stop beating your head against the
> > > wall.  JSON & XML are entirely different animals.  You are trying to
> > > retrieve JSON results with XML access methods.  JSON is JAVASCRIPT.
> > > XML is structured text.  JSON uses dynamic SCRIPT tags WITHOUT a
> > > proxy.  XML uses either XMLHttpRequest or its sugar coated substitute
> > > GDownloadUrl WITH a proxy.  www.geonames.orgsupportsbothexcept in a
> > > very limited number of cases.
>
> > > If you try to fetch JSON formatted results with XML methods, it will
> > > fail.  If you try to fetch XML formatted results with JSON methods, it
> > > will fail.  JSON is easy.  XML is difficult.  If you show some
> > > willingness to try to understand the difference, people will help
> > > you.  If you just stubbornly post the same clueless plea, noone will
> > > help you.  You may be in the wrong profession.- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to