uuh wrote:

> I understand that a static destination url for
> such clicks is not compatible with the
> weblocks view of things. I want to avoid inlining the SVG (which would
> probably allow me to use dynamic url as render-link generates them)
> for portability problems (I have to cater to MSIE).
>
> What is a suggested solution?

You need to serve your SVG file dynamically.

Convenient support for this isn't in Weblocks yet,
but you can use a dispatcher.

Example:

(defun my-svg-handler ()
  (setf (hunchentoot:content-type) "image/svg")
  "<svg/>")

(push (hunchentoot:create-prefix-dispatcher
        "/pub/svg/my-svg"
        #'my-svg-handler)
      hunchentoot:*dispatch-table*)

You can of course render your widget in MY-SVG-HANDLER
as well, and dynamically generate your onclick JS.

  Leslie


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"weblocks" 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/weblocks?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to