Affichage des articles dont le libellé est Asistance. Afficher tous les articles
Affichage des articles dont le libellé est Asistance. Afficher tous les articles

jeudi 23 janvier 2014

Need Asistance topic




I created a simple app that checks addresses.

The address then needs to be redirected to google maps, i found an easy way to redirect it to it using this code

HTML Code:


<a href="https://maps.google.com/maps?q=ADDRESS">

this code if for browser test purposes. i use this code on the actual app

HTML Code:


<a href="geo://0,0?q=ADDRESS" data-rel="external">

The selected address is being stored in an ID called NewAddr that ive located on the javascript

Code:


function map() {
  var oldAddr = document.getElementById("oldAddr");
  var newAddr = document.getElementById("newAddr");
  newAddr.innerHTML = h[oldAddr.value];
}


i need help to know how can i use the data that has been chosen from the ID (newAddr) to the selected <a href=

Regards.
Amir.