[Geomoose-users] javascript in template html
Dan Little
danlittle at yahoo.com
Mon Jan 7 09:12:45 EST 2008
Support for this kind of stuff will be better in 1.2 (actually it's A LOT better). But, again, we're waiting on some testing before we stamp out another release.
As a bit of an aside... using the document.write() functionality has been really depreciated in favor of the DOM equivalent.
function writeSomethingToAnElement(id, text) {
var e = document.getElementById(id);
id.appendChild(document.createTextNode(text));
}
That also tends to cause few memory leaks and has greater cross-browser compatibility. Some browsers will re-act differently depending on how they've implemented "write()".
----- Original Message ----
From: Scott Oatley <swoatley at gmail.com>
To: geomoose-users <Geomoose-users at lists.sourceforge.net>
Sent: Monday, January 7, 2008 8:09:47 AM
Subject: [Geomoose-users] javascript in template html
Hi Folks,
I was experimenting with getting simple javascript code in the header/template/footer html for a search or identify. Is this possible?
<script type="text/javascript">
document.write
("test");
</script>
Stuff like this is ignored. Where is the html for searches and identifies interpreted?
-Scott
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20080107/0fd482e3/attachment.html
More information about the Geomoose-users
mailing list