[jQuery] How to access contents of frames/iframes with jQuery?
Hi again! (Second question in as many days... I guess I'm the overeager noob. :) ) Last night I watched John Resig's screencast "Hacking Digg with Firebug and jQuery" ( highly recommended, BTW: http://ejohn.org/blog/hacking-digg-with-firebug-and-jquery/ ) and I immediately went to one of my favorite webapps and tried to put to use the ideas he presented, but right out of the gate I crashed against frames. Or at least I think that's what the problem was. For example, when I tried to evaluate jQuery expressions like $("div"), the result printed by Firebug was [ ], even though, according to Firebug's inspector, the page I was trying to dissect had plenty of divs. (BTW, this seemed odd to me, since it seems somehow to go against the "find things, do stuff" philosophy.) Anyway, I did get reasonable-looking results when I tried $("frameset") and $("frame"), but I can't figure out how to get past this point. (BTW, I did try Firefox's "Show only this frame" command, but the server basically vetoes the request and sends all the frames anyway.) So my question is, can jQuery handle frames? More specifically, what jQuery functions would one use to find and manipulate the contents of a frame? And what about iframes? Thanks in advance! kj PS: I scanned the documentation in http://docs.jquery.com/DOM/Traversing , but I didn't find an answer. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] ISO docs for $.fn ?
Thanks, John. And thanks for jQuery. Beautiful piece of work. kj On 3/4/07, John Resig <[EMAIL PROTECTED]> wrote: Hi Kynn - Documentation on $.extend can be found here: http://docs.jquery.com/JavaScript and information on using $.fn.extend can be found here: http://docs.jquery.com/Plugins/Authoring In jQuery $.fn.extend is used in plugin authoring, adding new methods to jQuery. The relationship in jQuery is like this: jQuery and $ are identical. jQuery.fn and $.fn are identical. jQuery.fn and jQuery.prototype are identical. jQuery.extend and jQuery.fn.extend are nearly identical, but when you pass in a single object of properties, jQuery.extend will extend the jQuery object with properties whereas jQuery.fn.extend will extend the jQuery.fn object (and thus add new methods to the jQuery core). All of that being said, if you're just getting started with jQuery, you're probably not going to have to worry about any of this. --John On 3/4/07, Kynn Jones <[EMAIL PROTECTED]> wrote: > Hi. I'm just learning about jQuery and finding my way around its > documentation. > > I have not been able to find any documentation on $.fn. > > In fact in some of the rest of the documentation (e.g. the example code for > $.extend given at http://visualjquery.com/1.1.1.html, $.fn > (or rather jQuery.fn ) without explanation. > > Actually, the examples given there raise many questions in my mind, for > example: what's the difference between $.fn and jQuery.fn? And, what's the > difference between calling jQuery.fn.extend and jQuery.extend? > > Are the answers to these questions in the documentation? If so, please > point me to them. > > Any help would be much appreciated. > > TIA! > > kj > > > > ___ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > > ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] ISO docs for $.fn ?
Hi. I'm just learning about jQuery and finding my way around its documentation. I have not been able to find any documentation on $.fn. In fact in some of the rest of the documentation (e.g. the example code for $.extend given at http://visualjquery.com/1.1.1.html, $.fn (or rather jQuery.fn ) without explanation. Actually, the examples given there raise many questions in my mind, for example: what's the difference between $.fn and jQuery.fn? And, what's the difference between calling jQuery.fn.extend and jQuery.extend? Are the answers to these questions in the documentation? If so, please point me to them. Any help would be much appreciated. TIA! kj ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/