Also be careful of caching, sometimes FF or IE can cache the iframe,
which can lead to frustration since you are fighting problems that
dont exist.

On Dec 16, 1:01 am, BenInJapan <[email protected]> wrote:
> Ok actually I got it fixed :) Don't ask me how I did it, because I
> don't know hahahaha...
> Probably I was just a browser refresh away :D
> But thank you, I actually changed all the referrers to
> window.parent :)
>
> On Dec 16, 12:49 am, nwhite <[email protected]> wrote:
>
> > I avoid using 'parent' to refer to the frames inside of mootools functions
> > because of the way the Extends class mutator works.
>
> > I use the following syntax instead.
>
> > window.parent or window.top
>
> > It also makes it easier to debug because that way you know your accessing a
> > 'window' and not accessing the extended parent function.
>
> > On Mon, Dec 15, 2008 at 6:36 PM, BenInJapan
> > <[email protected]>wrote:
>
> > > Alright I just tried it with still no success. I took the function
> > > completely out of the domready function, but still no luck.
> > > Well here is what firebug teaches me:
> > > "parent.testfunc is not a function"
>
> > > On Dec 16, 12:26 am, nwhite <[email protected]> wrote:
> > > > 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