|
Posted by Jonathan N. Little on 04/06/06 19:41
Chris Ianson wrote:
> "Marcello" <marcello.antolino@gmail.com> wrote in message
> news:1144327408.574209.5060@v46g2000cwv.googlegroups.com...
>
>> I've never used Google Maps API, so I don't know if you have access to
>> code on the parent window. If you do, put a function over there that
>> access the Google Maps one, and your function in the IFrame then access
>> your function in the parent frame.
>
> Yep we actually just tried something similar.
>
> The parent page now declares a map function called "walk()".
walk() is this your function? There is not method 'walk' described in
any of the Google Maps object constructor that I can find.
>
> The child page (iframe) should no longer make its own changes to the iframe
> contents. When it wants to jump, it should make calls like
> "javascript:parent.walk(3)"
are you calling the function via <a href="javascript:parent.walk(3)...
if you this may be your problem. do not put "javascript:somefunction()"
in a href attribute, put it on the event handler, i.e.,
onclick="somefunction()"
>
> [if you're unfamiliar with what is going on in the iframe from a previous
> discussion here, there's an example at
> http://www.cjse.pwp.blueyonder.co.uk/misc/A1master.htm]
Do not see reference to walk() in above code? what is the walk
function's code?
<snip>
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|