When I try it, I get this error:

Error: Permission denied for <http://www.<myurl>.com> to get property
HTMLDocument.nodeType from <http://<remoteurl>:8888>.
Source File: http://www.<myurl>.com/js/jquery/jquery.js
Line: 2216

Here is the line of JS being used.

$("#eseSearchRight").html($('#searchFrame').contents().find
('.recordHeader').html());



On Nov 5, 4:17 pm, Michel Belleville <michel.bellevi...@gmail.com>
wrote:
> $('#canvas_frame').contents().find('#my_div');
>
> To seek an id use "#", to seek inside a div use .contents().
>
> Plus, refrain from using iframe, this is almost as bad as using frame and
> almost never worth it. AJAX is good for you instead of shitty iframes.
>
> Michel Belleville
>
> 2009/11/5 Danish <engrdanishsid...@gmail.com>
>
>
>
> > I have a page with multiple Frames and Division, Now I am trying to
> > extract one div having id="my_div" from iframe with Id =
> > "canvas_frame" but I am fail to do so, Nor I am getting iframe neither
> > Division in iframe.
> > I tried all these selectors but always null returns although they are
> > in page:
> > 1) $("my_div");
> > 2) $("my_div","canvas_frame");
> > 3) $("canvas_frame",content.document);
> > 4) $("canvas_frame");
> > 5)  var $frame = $("canvas_frame",content.document);
> >     var $div = $("my_div",$frame);
>
> > I am able to do this with Pure JavaScript but due to some reasons I
> > want to use JQuery Library, Any help will be highly appreciated.

Reply via email to