W3C home > Mailing lists > Public > public-webapi@w3.org > March 2008

Re: Accessing Object Parameters from an Embedded SVG

From: Jeff Schiller <codedread@gmail.com>
Date: Thu, 13 Mar 2008 13:33:41 -0500
Message-ID: <da131fde0803131133q2f8f5fdi50a7e52dee660c3f@mail.gmail.com>
To: "Anne van Kesteren" <annevk@opera.com>
Cc: www-dom@w3.org, "Web API WG (public)" <public-webapi@w3.org>

Anne,

Fx3 does not allow you to do this:
  "setting a property that has only a getter"

Regards,
Jeff


On 3/13/08, Anne van Kesteren <annevk@opera.com> wrote:
> On Thu, 13 Mar 2008 19:03:27 +0100, Jeff Schiller <codedread@gmail.com>
>  wrote:
>
> > <html>
>  >   <object data="http://some.other.domain/example.svg" ><param
>  > name="foo" value="bar"/></object>
>  > </html>
>  >
>  >> From within foo.svg, shouldn't I be able to get access to the
>  > parameters sent to the object?  This fails when the SVG and HTML are
>  > in different domains (in my case, I have the HTML on a sub-domain and
>  > the SVG at my root domain).
>
>
> If you have example.org and foo.example.org setting document.domain to
>  example.org on both documents should allow communication if I remember
>  correctly. In HTML5 there's a cross-document messaging API that allows
>  more generic communication accross several domains. All browsers are
>  implementing that now.
>
>
>
>  --
>  Anne van Kesteren
>  <http://annevankesteren.nl/>
>  <http://www.opera.com/>
>
Received on Thursday, 13 March 2008 18:34:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 13 March 2008 18:34:23 GMT