[jQuery] setRequestHeader("Accept", text/xml") - problem with

2007-10-26 Thread AlexK
My server expects the dataType as text/xml. This is the code I use to set the the type. $(function() { $.ajax({ type: "GET", url: location.href, dataType: "xml", beforeSend : function(req) { req.setRequestHeader("Accept", "text/xml"); },

[jQuery] JQuery object from another frame?

2007-12-17 Thread AlexK
I have two frames: "code" and "display". I can use JQuery API from "display" where my "document" is, but do not know how to use it from another ("code") frame. What do I put in $()? For example in tableSorter: $(window.display.document + "#example").tablesorter() --- does not work. This is ho