tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blueboy6 <blueb...@gmail.com>
Subject Iframe javascript problem
Date Mon, 14 Sep 2009 17:49:28 GMT

Hi I have a lil bit problem with iFrame

I need to get it by getElementById

and to do some basic functions from its content by click on the button

But I can't get it done. I think I'm hopeless.

Please Help

<iframe id="map" src ="some url" width="400" height="400" >
  			<p>Your browser does not support iframes.</p>
		</iframe>

		<script type="text/javascript" language="JavaScript">

			var m = document.getElementById("map");
			var mapApi = m.contentWindow;
			
			function goToCoords1() {
				mapApi.MoveMapWGS(42.40067, 18.91654);
          }
    }
		</script>
		<input type="button" t:onclick="goToCoords1()" value="go to
coords"></input>
-- 
View this message in context: http://www.nabble.com/Iframe-javascript-problem-tp25440336p25440336.html
Sent from the Tapestry - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Mime
View raw message