I found it a bit weird too that if I called a PHP file which generates the SVG 
I would need to use OBJECT. But if I called the SVG file directly, it would 
only work with EMBED. But that is how it works in the momentÂ…

Ok, so it means I would need to check if the SVG file exists and is older than 
XXX hours or days. I guess this would be possible. Have to check how, but it 
would be a solution.

Thanks a lot.

Stef


--- In [email protected], Jeff Schiller <codedread@...> wrote:
>
> It's not clear to me why you need to use embed and not object for your
> cached version.
> 
> Can you have your PHP file check for the existence of the cached SVG file
> on your server?  If not present, generate the file.  If present, send that
> file's contents to the client.
> 
> Jeff
> 
> On Tue, Dec 20, 2011 at 6:55 AM, luftikus_143 <st.schwarzer@...>wrote:
> 
> > **
> >
> >
> > Hi there,
> >
> > I would like to cache the SVG files which I generate via PHP. But it seems
> > a bit difficult. When I first call the PHP file which produces the SVG, I
> > use the OBJECT element to display it on the website:
> >
> > <object id='svg_object' data='data_vis_bars_svg.php' type='image/svg+xml'
> > width='1150' height='500'></object>
> >
> > But when caching the SVG file, I can't use the OBJECT anymore, but must
> > use the EMBED instead:
> >
> > <embed id='svg_object' src='../etc/cache/data_vis_bars_svg.svg'
> > type='image/svg+xml' width='1150' height='500'></embed>
> >
> > Do you know of any intelligent workaround here? Not sure what I can do
> > about this...
> >
> > Thanks for any hints!
> >
> >  
> >
> 
> 
> [Non-text portions of this message have been removed]
>




------------------------------------

-----
To unsubscribe send a message to: [email protected]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
----Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to