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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to