Are you sure that $(frames['Theiframe']) is returning the iframe ?

On Tue, Sep 15, 2009 at 05:53, ximo wallas <igguan...@yahoo.com> wrote:

> After 1 day googling and trying I find no agreement in a solid method for
> comunicating with iframe, this is the nearest point I've been to get in
> touch with IFRAME:
>
> $(frames['Theiframe']).ready( function ()
> {
>     alert('Frame is loaded');
>
> });
>
> This will alert the message, but any attempt to comunicate with the iframe
> and access it's contents have been useless, I have a hidden field with with
> ID "login" and I'm trying to get it's value:
>
> $(frames['Theiframe']).find("#login").val(); //Doesn't work in FF 3.0.14
>
>
> /////////////////////////////////////////////////////////////////////////////////////////////////////
>
> var $currentIFrame = $(frames['Theiframe']);
> $currentIFrame.contents().find("body #login").val() //Neither does in FF
> 3.0.14
>
> If you Google a few you will see that everyone is giving it's own opinion
> on how to do it, but there's no agreement and no crossbrowser solid
> solution...
>
>
>

Reply via email to