Issue 498: settings.selector is not documented
Status:  New
Owner: ----
Reported by escapi...@gmail.com, Jul 7, 2010
From page A on my site, I wanted to open page B from my site within a modal (in 'form' mode using ajax, not in an iframe) but I wanted it to display in the modal without the normal site header, footer etc.

I managed to do this ok using the endFillContent callback but the trouble was that the stylesheet from page B was being loaded before I could remove it, resulting in a flash of differently styled content on page A.

After a bit of code trawling I found that you can simply set the 'selector' setting and the loaded content will only display that part of the page, in my case the #content div.

This is what I mean:

processHandler: function (settings) {
  settings.selector = '#content';
}

Well I'm real glad I found this but I wish it had been in the documentation.. so hopefully this helps someone.