Re: webkit -> print
Re: webkit -> print
- Subject: Re: webkit -> print
- From: "Keith Ray" <email@hidden>
- Date: Mon, 17 Apr 2006 15:01:08 -0700
It's a user-interface issue - there are web pages out there with
"print" buttons, including Google maps, Yahoo, etc., and the user
expects that the button will perform what the name says it will do.
But this is in a cocoa app using webkit, not Safari.
I am hoping to hear from someone who has actually addressed this
issue, rather than something theoretical from someone who hasn't.
On 4/17/06, Sherm Pendley <email@hidden> wrote:
> On Apr 17, 2006, at 5:13 PM, Keith Ray wrote:
>
> > If some javascript on a web-page is trying to print the page, what
> > would I have to do with cocoa and webkit to enable that (so it
> > actually can print)?
>
> What makes you think you need JavaScript to print? Just hit cmd-p, or
> choose File/Print from the menu. If you want the printed page to
> appear differently than the onscreen version, just use a print-
> specific style sheet.
>
> > I have no control over the content of the web-page -- but it is able
> > to print itself on Internet Explorer on Windows.
>
> 1. Take a look at the web page source to see what kind of proprietary
> MS-only JavaScript hack it's using.
>
> 2. Create a Cocoa webkit plug-in that implements that hack.
>
> Have a look at:
>
> <http://developer.apple.com/documentation/InternetWeb/Conceptual/
> WebKit_PluginProgTopic/index.html>
>
> sherm--
>
> Cocoa programming in Perl: http://camelbones.sourceforge.net
> Hire me! My resume: http://www.dot-app.org
>
>
--
C. Keith Ray
<http://homepage.mac.com/keithray/blog/index.html>
<http://homepage.mac.com/keithray/xpminifaq.html>
<http://homepage.mac.com/keithray/resume2.html>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden