It looks like a scope issue.

'myfunc' is set within the anonymous function on the 'domready' event in
main.html. Window has no reference to this function.

In your main.html script try changing it to

<script type="text/javascript">

function myfunc(){
  alert('Cherio!');
}
</script>


On Mon, Dec 15, 2008 at 6:14 PM, BenInJapan
<[email protected]>wrote:

>
> Cherio guys,
>
> I came about some kinda problem to which I wasn't able to find a
> solution. At least none that seem to work with mootools. So here we go
> again:
>
> The principle of this problem really simple. You got an iFrame on your
> main website, and from that iFrame you want to call a function in the
> mainframe to update user content or show some nice effects :)
>
> Here is my sample code with things that didn't work for me:
> http://paste.mootools.net/m5f5b00d2
>
> Hope you guys can help,
>
> Ben

Reply via email to