Forum Moderators: open
Here's part of the script in the map page (Page 2) that enables this:
function mapClick(PID) {
if (window.opener &&!window.opener.closed) {
window.opener.location.href = 'http://www.mywebpage.com/properties.asp?PID='+PID;
window.opener.focus();
}
And to call it: href="javascript:mapClick(89)" where 89 is the property ID (PID).
Now I want to convert the map to a Flash map. Would I still keep the mapClick(PID) function in the map page HTML, then feed the PID variable to Flash via FlashVars? Then in the Flash use something like:
on (release) {
getURL('javascript:mapClick('+PID+')');
}
Would this work? I can define the mapClick function in the html on the map page (Page 2) but I'm not sure if my Flash will recognize the mapClick function.
Any help or guidance would be deeply appreciated.