Hello everyone. I've discussed this a while back but since we'd like to
have some proof of concept ready by the end of the week guess it's a
good time to bring this up again.
We need protovis server-side processing. Our main goal is to print the
visualizations. It's not the only use for it but we can leave that out
for now, as this is big enough of a deal for us.
We'd like some guide lines on how to start here. As I see it we have 2
options:
1 - Use a protovis java engine; I know that Jeffrey Heer has been
working on it and I saw references to that engine in this mailing list
but I wasn't able to find it. Not sure it's it's publicly available or
not...
2 - Use rhino on server side. Is this possible? Anyone ever did
something with it? I guess we should try to use
http://groups.google.com/group/envjs - anyone tried it?
Any feedback is greatly appreciated. It's not clear to us at the moment
which is better - 1 or 2.
Thanks
-pedro
--
You received this message because you are subscribed to the Google Groups "protovis" group.
To post to this group, send email to prot...@googlegroups.com.
To unsubscribe from this group, send email to protovis+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/protovis?hl=en.
We'll make some tests and cross fingers ;)
-pedro
> <mailto:prot...@googlegroups.com>.
> To unsubscribe from this group, send email to
> protovis+u...@googlegroups.com
> <mailto:protovis%2Bunsu...@googlegroups.com>.
> For more options, visit this group at
> http://groups.google.com/group/protovis?hl=en.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "protovis" group.
> To post to this group, send email to prot...@googlegroups.com
> <mailto:prot...@googlegroups.com>.
> To unsubscribe from this group, send email to
> protovis+u...@googlegroups.com
> <mailto:protovis%2Bunsu...@googlegroups.com>.
--
Jason Davies
> > with it? I guess we should try to usehttp://groups.google.com/group/envjs-anyone tried it?
>
> > Any feedback is greatly appreciated. It's not clear to us at the moment
> > which is better - 1 or 2.
>
> > Thanks
>
> > -pedro
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "protovis" group.
> > To post to this group, send email to prot...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > protovis+u...@googlegroups.com<protovis%2Bunsubscribe@googlegroups.c om>
This is interesting, can you elaborate a bit more on the idea of
removing the dom dependency? Especially the part where you imagine it to
be easy, cause seems to me that dom handling is a bit transverse to all
the code
-pedro
To unsubscribe from this group, send email to protovis+u...@googlegroups.com.
We'll keep testing it but we can't seem to make it work using extjs. It
just keeps blowing up on us.
I'll carry on with the tests, but it'd be great to hear feedback from
someone that tried this before.
otoh, if someone can point me to the java engine that would be awsome
-pedro
I've built a simple package that replicates the issues we're facing:
http://tinyurl.com/18r
Just do:
java -jar env-js.jar -debug -opt -1 test.js
or
java -jar env-js.jar -debug -opt -1 test-p31.js
The error on the second case is:
js: "protovis-d3.1.js", line 6477: uncaught JavaScript runtime
exception: TypeError: Cannot read property "$panel" from null
at protovis-d3.1.js:6477
at protovis-d3.1.js:4967
at protovis-d3.1.js:6415
at protovis-d3.1.js:4919
at protovis-d3.1.js:4733
at test-p31.js:33
I've tested with 2.6, same thing
Thanks
> <mailto:drj...@gmail.com <mailto:drj...@gmail.com>>> wrote:
>
> There is one approach documented here:
>
> http://code.google.com/p/protovis-js/issues/detail?id=41
>
>
> I've not yet needed to use any mechanism for doing server side
> rendering. I suspect there are a few options:
>
> 1/ The approach in the link above.
> 2/ Rhino server side rendering, assuming enough of the DOM
> exists
> server side.
> 3/ Implement on server side JS enough of the DOM API to allow
> protovis to 'render' and have your implementation generate the
> correct SVG text.
> 4/ Convert protovis to generate SVG text in some other
> manner than
> the DOM then just use it on the server in a server side JS
> renderer.
>
> I've not tried the envjs approach, but it'd certainly be my
> first bet.
>
>
>
>
>
> On Tue, Feb 16, 2010 at 10:37 AM, Pedro Alves
> <pmga...@gmail.com <mailto:pmga...@gmail.com>
> <mailto:prot...@googlegroups.com
> <mailto:prot...@googlegroups.com>>.
> To unsubscribe from this group, send email to
> protovis+u...@googlegroups.com
> <mailto:protovis%2Bunsu...@googlegroups.com>
> <mailto:protovis%2Bunsu...@googlegroups.com
> <mailto:protovis%252Buns...@googlegroups.com>>.
> For more options, visit this group at
> http://groups.google.com/group/protovis?hl=en.
>
>
> --
> You received this message because you are subscribed to the
> Google
> Groups "protovis" group.
> To post to this group, send email to
> prot...@googlegroups.com <mailto:prot...@googlegroups.com>
> <mailto:prot...@googlegroups.com
> <mailto:prot...@googlegroups.com>>.
> To unsubscribe from this group, send email to
> protovis+u...@googlegroups.com
> <mailto:protovis%2Bunsu...@googlegroups.com>
> <mailto:protovis%2Bunsu...@googlegroups.com
> <mailto:protovis%252Buns...@googlegroups.com>>.
Kudos to Jamie! We can how tackle printing now! If someone wants the
details just ask.
(Now the only stuff left to fix is IE)
-pedro