On Oct 30, 2:41 pm, Joice <[EMAIL PROTECTED]> wrote:
> I have been able to pass parameters
> from JavaScript to PHP fine. Problem is passing parameters from HTML
> to GDownloadURL. I have several neighborhood polygons for my city. I
> am able to display the markers for the locations in every neighborhood
> using a select (Postgres/Postgis, inside PHP) like this:
>
> SELECT F.tipo, F.descricao, F.endereco, F.observacao,
> x(transform(F.localizacao,4326)) AS lng, y(transform(F.localizacao,
> 4326)) AS lat FROM facilidades F,bairros B WHERE
> ST_Contains(B.limites,F.localizacao) AND B.nome='$bairro'
>
> $bairro is the variable coming from my JavaScript. However, what I am
> trying to do is something like this:
>
> in HTML, a select form:
>
> <select class="verdana_10_cinza" name="bairro" id="bairro"
> onChange="dentroBairro(nome);">
> <option value="">qualquer bairro</option>
> <option value="alto_parque">Alto do Parque</
> option>
> <option value="americano">Americano</option>
> <option value="bom_pastor">Bom Pastor</option>
> <option value="campestre">Campestre</option>
> <option value="carneiros">Carneiros</option>
>
> In my JS function dentroBairro(nome) I am trying something like this:
>
> GDownloadUrl("dentroBairro.php?
> nome='"+document.getElementById("bairro").value+"'", function(data)
>
> It is not working, of course... Any hint?
Any link?
What javascript errors are you getting? That may give you the hint
you need.
-- Larry
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---