So I've changed the code for the iFrame to:
jQuery(document).ready(function(){
$('div .contacts').click(function(){
        window.top.linkIt();
});
});
But it's still not calling the function in the parent window.
Am I doing it wrong? Or is there possibly a different way?

On Nov 6, 3:54 pm, tlphipps <[EMAIL PROTECTED]> wrote:
> you should be able to call a function on the parent page by doing:
>
> window.top.myFunctionName();
>
> On Nov 6, 2:44 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
> > I'm currently working on a very interesting interface for a game, in
> > which I use many iFrames. I have a div set up as a link(using $
> > ('.link').click) in an iFrame and need it to run some jQuery that I
> > have written out that works correctly for the same link set up on the
> > parent page. I'm not sure if there is  simple change for the elements
> > in the code to just then include in the iFrame page or possibly a way
> > to link the iFrame link to a function stored on the parrent page.
> > Any help is appreciated.
> > Thank you in advance,
> > CodingCyborg

Reply via email to