The beauty of open source! I haven't migrated to 1.5 yet, so this
error is new to me.
We will jump directly to 1.6. The Print class boil down to :

    public static void it(String html) {
        try {
            buildFrame(html);
            DeferredCommand.add(printFrameCommmand);
        } catch (Throwable exc) {
            Window.alert(exc.getMessage());
        }
    }

    public static void it(String style, String it) {
        it("<html><head>"+style+"</head>\n<body>"+it+"</body></
html>");
    }

I did that so we could print both DOM elements and strings.
Perhaps I should treat DOM elements diferently adding them to the DOM
instead
of using the toString method? Anybody know if this will render faster
and/or more
correct prints?

Jay, does this work for both 1.4 and 1.5 or it'll only work on 1.5?

Regards,
Freller



On Apr 3, 6:27 pm, jay <[email protected]> wrote:
> It seems that prior to GWT 1.5, element.toString() did the right
> thing. When I moved to GWT 1.5.3, I had to switch to using
> "DOM.toString( elem );"
>
> jay
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to