pjm
07-25-2004, 08:20 AM
Hello,
Does anyone know of a free script of a clickable map where the choosen coordinates can be inserted and retrieved from an access database ? Something like this one: http://www.aspandjavascript.co.uk/javascript/clickable_map/
It's in javascript but it uses "<%=Request.Form("submit.x")%>" and "<%=Request.Form("submit.y")%>" to retrieve the coordinates of the mouse-click. I already was able to insert the coordinates in the database, now the problem is how to use/retrieve it!. The relevant code (javascript), I believe, is this:
...
.
.
.
function test() {
var myPin = getStyleObject('pin');
menuTop = getElementTop('map');
x = getElementLeft('map');
myPin.top=menuTop + 221-4 + 'px';
myPin.left=x + 17-4 + 'px';
myPin.top=menuTop + <%=Request.Form("submit.y")%>-4;
myPin.left=x + <%=Request.Form("submit.x")%>-4;
Instead of <%=Request.Form("submit.x")%> how can I use my recordset <%=rs("cordx")%>, because it works if I directly write there my x and y values.
Maybe this is more javascript than ASP...
I've spent so many hours on this that I've already lost lucidity
Can anybody help me on this? Thank you.
Does anyone know of a free script of a clickable map where the choosen coordinates can be inserted and retrieved from an access database ? Something like this one: http://www.aspandjavascript.co.uk/javascript/clickable_map/
It's in javascript but it uses "<%=Request.Form("submit.x")%>" and "<%=Request.Form("submit.y")%>" to retrieve the coordinates of the mouse-click. I already was able to insert the coordinates in the database, now the problem is how to use/retrieve it!. The relevant code (javascript), I believe, is this:
...
.
.
.
function test() {
var myPin = getStyleObject('pin');
menuTop = getElementTop('map');
x = getElementLeft('map');
myPin.top=menuTop + 221-4 + 'px';
myPin.left=x + 17-4 + 'px';
myPin.top=menuTop + <%=Request.Form("submit.y")%>-4;
myPin.left=x + <%=Request.Form("submit.x")%>-4;
Instead of <%=Request.Form("submit.x")%> how can I use my recordset <%=rs("cordx")%>, because it works if I directly write there my x and y values.
Maybe this is more javascript than ASP...
I've spent so many hours on this that I've already lost lucidity
Can anybody help me on this? Thank you.