This is a short example on calling javascript from flex using ExternalInterface…
Application - Source
Please Note: Javascript has to be on in your browser and the javascript is in the html-template > index.template.html file.
This is a short example on calling javascript from flex using ExternalInterface…
Application - Source
Please Note: Javascript has to be on in your browser and the javascript is in the html-template > index.template.html file.
The syntax is a little tricky but I found it on the google groups, by searching “get a markers latitude”
marker.getPoint().lat();
it’s very tricky because there isn’t a ton of documentation that show examples of this.
This function does an alert on what you request… it’s a great little function picked it up from
activsoftware.com
function getQueryVariable(variable) {
var query = window.location.search.substring(1);
var vars = query.split(“&”);
for (var i=0;i<vars.length;i++) {
var pair = vars[i].split(“=”);
if (pair[0] == variable) {
return pair[1];
}
}
alert(’Query Variable ‘ + variable + ‘ not found’);
}
Call a page, page.html?x=test
alert( getQueryVariable(“x”) );
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Apr | ||||||
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 | |