Create screenshot of webpage

8 views
Skip to first unread message

tomrei

unread,
Nov 21, 2009, 10:00:28 AM11/21/09
to Cappuccino & Objective-J
Hello everyone!

I'm looking for the possibility to take a screenshot of a webpage by
using Cappuccino or Javascript - has anybody got an idea how to do
this?
I know that there a serval online tools, cocoa apps or command line
tools for this task - but it would be great if it can be done without
them.

Thanks for your help!

Elias

unread,
Nov 21, 2009, 11:36:42 AM11/21/09
to Cappuccino & Objective-J
The answer is no. Cappuccino is pure HTML / JavaScript / CSS. Anything
these technologies can't do Cappuccino can't do.

John Fox

unread,
Nov 21, 2009, 11:54:07 AM11/21/09
to objec...@googlegroups.com
Hi:

There's no "browser native" way of doing this. I think the only way I can imagine to do this is to use an on line preview service like snap.com. However, you'd have to be able to produce a URL that can open your app to the desired state, and that could be a big challenge (hint: you'd have to use URL arguments).

Hope this helps, 

John

--

You received this message because you are subscribed to the Google Groups "Cappuccino & Objective-J" group.
To post to this group, send email to objec...@googlegroups.com.
To unsubscribe from this group, send email to objectivej+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/objectivej?hl=.




---
John C. Fox 
Founder 
GroupSmarts, LLC 
MemoryMiner - "A world of stories..."





Maz

unread,
Nov 21, 2009, 4:05:32 PM11/21/09
to Cappuccino & Objective-J
You might be able to use the Canvas tag on firefox. For an extension,
you can use context.drawWindow You can then use canvas.toDataUrl

On Nov 21, 11:54 am, John Fox <j...@memoryminer.com> wrote:
> Hi:
>
> There's no "browser native" way of doing this. I think the only way I can imagine to do this is to use an on line preview service like snap.com. However, you'd have to be able to produce a URL that can open your app to the desired state, and that could be a big challenge (hint: you'd have to use URL arguments).
>
> Hope this helps,
>
> John
>
> On Nov 21, 2009, at 7:00 AM, tomrei wrote:
>
>
>
>
>
> > Hello everyone!
>
> > I'm looking for the possibility to take a screenshot of a webpage by
> > using Cappuccino or Javascript - has anybody got an idea how to do
> > this?
> > I know that there a serval online tools, cocoa apps or command line
> > tools for this task - but it would be great if it can be done without
> > them.
>
> > Thanks for your help!
>
> > --
>
> > You received this message because you are subscribed to the Google Groups "Cappuccino & Objective-J" group.
> > To post to this group, send email to objec...@googlegroups.com.
> > To unsubscribe from this group, send email to objectivej+...@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/objectivej?hl=.

rjk

unread,
Nov 26, 2009, 8:50:19 AM11/26/09
to Cappuccino & Objective-J
On Nov 21, 10:05 pm, Maz <ma.maz...@gmail.com> wrote:
> You might be able to use the Canvas tag on firefox. For an extension,
> you can use context.drawWindow You can then use canvas.toDataUrl

Unfortunately context.drawWindow is not allowed in normal HTML pages.

"This feature is only available for code running with Chrome
privileges. It is not allowed in normal HTML pages."
source: https://developer.mozilla.org/en/drawing_graphics_with_canvas

See the given URL, there you can also find the reason why this will
not be possible any time soon.

Cheers,

Redmar Kerkhoff
Reply all
Reply to author
Forward
0 new messages