I think you guys have misunderstood his question, because I basically have the same question. It's not a SQL question, it's an API question (how to have the location search weed out the locations that don't have the attributes selected in, say, a checkbox). I can find the code to run a query on the SQL db but how do I tell the searchLocations function to look at a certain field on the db and if the value is "y" then show it, if it's "n" then don't? (or in his case, if the value is "2" show it, or "3" or whatever the user selects).
On Apr 3, 5:18 pm, crush123 <[email protected]> wrote: > you could pass a url or post variable into the sql statement tofilter > it and reload the page but you cant do it with javascript. > > also take a look at spry xml, this may allow you tofilterwithout > reloading. > > On Apr 1, 1:52 pm, Marcelo <[email protected]> wrote: > > > > > On Apr 1, 1:07 am, Johnny89 <[email protected]> wrote: > > > > Hello!, I was just wondering if anyone knew how I couldfiltermy SQL > > > results displayed on my Google Map by the attribute... For example I > > > have a google map that displays properties for sale from an SQL > > > database, how can I create the javascript to then only show, say > > > properties with 2 bedrooms or price below a certain amount etc... I > > > can't seem to find any points in the right direction on how to get > > > started with this so was just wondering if anyone could help. > > > You won't find many posts about SQL in this group because this group > > is not about SQL, and you cannotfilterdatabase results with a client > > side language like javascript. > > > -- > > Marcelo -http://maps.forum.nu > > -- > > > > Thanks > > > John -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
