java - get a file in javascript in play framework 1.2.4 -


i'm having issue adding xml file javascript, i'm working play framework 1.2.4

my javascript has following fonction :

 downloadurl("example.xml", function (data) {             var markers = data.documentelement.getelementsbytagname("marker");             (var = 0; < markers.length; i++) {                 var latlng = new     google.maps.latlng(parsefloat(markers[i].getattribute("lat")),                                     parsefloat(markers[i].getattribute("lng")));                 var name = markers[i].getattribute("name");                 var windowcontents = "<h3>" + name + "</h3>";                 var marker = new google.maps.marker({ position: latlng, map: map });                 bindinfowindow(marker, map, infowindow, windowcontents);             }         }); 

but exception says mapbillaction.example.xml action not found (mapbillaction controller)

i have folder in view called mapbillaction contains example.xml file , others page .html

thanks in advance !


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -