You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Derek Hohls <dh...@csir.co.za> on 2003/08/19 14:20:42 UTC
Cocoon with SVG/Javascript not working...
I am struggling to get an embedded SVG file working with
Javascript inside of Cocoon - the file works fine as a static
HTML page called from the local drive - but as soon as I
call the page through Cocoon (loading the same 'static'
HTML, JS and SVG files), the Javascript calls embedded in
the SVG cease to work (although the Javascript calls inside
the HTML page work as normal).
If anyone has any experience getting this configuration to
work, or can point me to some relevant Cocoon docs on
this topic, I would very much appreciate hearing from
you.
Thanks
Derek
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Mailscanner thanks transtec Computers for their support.
RE : Cocoon with SVG/Javascript not working...
Posted by Cedric Vidal <dr...@atilla.org>.
> Hi,
>
> -----Message d'origine-----
> De : Derek Hohls [mailto:dhohls@csir.co.za]
> Envoyé : mardi 19 août 2003 14:21
> À : users@cocoon.apache.org
> Objet : Cocoon with SVG/Javascript not working...
>
> > I am struggling to get an embedded SVG file working with
> > Javascript inside of Cocoon - the file works fine as a static
> > HTML page called from the local drive - but as soon as I
> > call the page through Cocoon (loading the same 'static'
> > HTML, JS and SVG files), the Javascript calls embedded in
> > the SVG cease to work (although the Javascript calls inside
> > the HTML page work as normal).
>
> Are your SVG, JS and HTML files served from the same domain? (Note that
> the port number is relevant too). If they aren't, your only option is to
> serve them from the same domain.
Sorry, I later realized that I forgot to mention that this is because security
restrictions apply ...
For more information, please see that reference:
http://devedge.netscape.com/library/manuals/2000/javascript/1.3/guide/sec.html
Hope that helps (this time ... ;o)
Cédric
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
RE : Cocoon with SVG/Javascript not working...
Posted by Cédric Vidal <dr...@atilla.org>.
Hi,
-----Message d'origine-----
De : Derek Hohls [mailto:dhohls@csir.co.za]
Envoyé : mardi 19 août 2003 14:21
À : users@cocoon.apache.org
Objet : Cocoon with SVG/Javascript not working...
> I am struggling to get an embedded SVG file working with
> Javascript inside of Cocoon - the file works fine as a static
> HTML page called from the local drive - but as soon as I
> call the page through Cocoon (loading the same 'static'
> HTML, JS and SVG files), the Javascript calls embedded in
> the SVG cease to work (although the Javascript calls inside
> the HTML page work as normal).
Are your SVG, JS and HTML files served from the same domain? (Note that
the port number is relevant too). If they aren't, your only option is to
serve them from the same domain.
If that's the problem and you need more information on how to achieve
that purpose, don't hesitate to ask :)
Hope that helps
Cédric
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org