for screen display we need certain features like :first-child & min-
width: & max-width: and things that dont work in ie7.
so we have a stylesheet that does as much as possible without these
things, but then we also have to so some manual setting of some of
these properties, for example with max width:
need to see if the first column of the table (labels) is wider than x,
if so, manually set to some bound with .setStyle('width', x)

yes, we're using 1.3 with compat, still doesnt work

and yes, iframes are evil

On May 19, 11:37 am, Philip Thompson <[email protected]> wrote:
> Well, that just sounds horrible. 1) Manually setting up the page for a PDF
> output. 2) Based on IE7, ugh.
>
> Can you just create a completely separate CSS template that will be used for
> printing to the PDF that only uses IE7-available features?
>
> Have you tried 1.3.x with compatibility turned on?
>
> I've not used the MT iframe functionality before b/c I personally think
> iframes are evil, so I don't know if it's buggy.
>
> ~Philip
>
>
>
>
>
>
>
> On Thu, May 19, 2011 at 10:26 AM, Izzy <[email protected]> wrote:
> > i would be thrilled to do it without the iframe :)
>
> > so, this maybe more than you care to know:
>
> > basically, i have a giant table many rows, many columns
> > this table has to be turned into a PDF
> > i have to use a certain HTML -> PDF service within my company, and
> > unfortunately that service is based on rendering in IE7, so there is a
> > lot of CSS that works in Chrome/FF/IE8 that does not work there.
>
> > i also have to chop this table up into sections for each page and
> > concat those sections with some header/footer html that gets repeated
> > across pages.
>
> > in order to chop everything up properly, i need to first measure the
> > header and footer, however measuring those elements on the page
> > doesn't always yeild the correct result, since we have to send along a
> > certain css file with the stuff to the pdf service, we need to measure
> > things in the context of that CSS file.
>
> > i had this working with mootools 1.2.5, but for some reason it
> > completely fails in 1.3.x.
>
> > I'm open to suggestions, however it definitely seems as if the IFrame
> > class is not working as advertised.
>
> > Thanks,
>
> > On May 19, 11:09 am, Philip Thompson <[email protected]> wrote:
> > > Yes, I noticed that error. I guess my real question is... what is your
> > > ultimate goal? You want to get the styles/size of a particular element,
> > but
> > > not in the context of the current document which contains certain CSS?
> > Why?
> > > The reason I'm prodding further is to see if you can do it without and
> > > iframe or maybe approach this problem from a different angle.
>
> > > ~Philip
>
> > > On Thu, May 19, 2011 at 10:03 AM, Izzy <[email protected]> wrote:
> > > > so if you run the jsfiddle i linked, it throws an error.
>
> > > > why is it throwing that particular error?
> > > > does the .getComputedSize() method not exist on elements grabbed from
> > > > that iframe?
> > > > is there something i'm not doing right when interacting with the
> > > > iframe from the current window using mootools?
> > > > is the iframe bugged?
>
> > > > kind of a general "why doesn't this work" type thing.
> > > > sorry for the inclarity.
> > > > -i
>
> > > > On May 19, 10:52 am, Philip Thompson <[email protected]> wrote:
> > > > > What is your actual "question"?  :)
>
> > > > > ~Philip
>
> > > > > On Thu, May 19, 2011 at 9:20 AM, Izzy <[email protected]> wrote:
> > > > > > 1: thanks ahead of time
>
> > > > > > the short:
> > > > > >http://jsfiddle.net/5HBq3/6/
>
> > > > > > the long:
> > > > > > first, if i could do this without an iframe, i would.
> > > > > > i need to use an iframe to measure elements in a context separate
> > from
> > > > > > the page's css, using a different set of css.
> > > > > > i can certainly do things a little more manually, but i'd prefer
> > not
> > > > > > to.
>
> > > > > > the docs suggest that the IFrame should be extended with mootools
> > > > > > methods, but it doesn't appear to be totally true.
>
> > > > > > any help is greatly appreciated,
> > > > > > thanks,
> > > > > > -izzy

Reply via email to