You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Howard Lewis Ship <hl...@gmail.com> on 2009/09/26 01:52:15 UTC

Re: Iframe javascript problem

Please discuss on the Tapestry user mailing list ... and read the
Tapestry JavaScript documentation on the web site.

On Mon, Sep 14, 2009 at 10:49 AM, blueboy6 <bl...@gmail.com> wrote:
>
> 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
>
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

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