Inline SVG is definitely interesting modern approach, I have been thinking
about it, but unfortunately there are use cases when you have no control
over the page as a whole thus you cannot rely on the document being able to
handle inline svg. This will be typical problem when writing portlets (it
seems to me they grow in popularity)

Zdenek
(sent from mobile device)
On Aug 24, 2011 10:46 PM, "David Dailey" <[email protected]> wrote:
> Glad you got it working.
>
>
>
> <object> would be the favored mechanism now that IE9 supports SVG (because
of better fallback handling). <embed> was recommended at the time because of
ASV. Next edition of the Primer (whenever that might be) will (barring
discovery of the unforeseen) almost certainly recommend <object>.
>
>
>
> Based on my few experiments so far, scripting between HTML and SVG when
SVG is inline in HTML is, very different (and maybe simpler?) from using
<iframe>, <object> or <embed>, so perhaps some of the unpleasantry you’ve
seen will be lessened when the tags exist within a common document. Alas,
browser support for that seems to be spotty at present
>
>
>
> Ultimately, it might be cooler to be able to sprinkle HTML into SVG than
the other way around, since who really needs HTML except on the rare
occasion that it has a form element or a table to borrow?
>
>
>
> Cheers,
>
> David
>
>
>
> From: [email protected] [mailto:
[email protected]] On Behalf Of Zdenek Kedaj
> Sent: Monday, August 22, 2011 6:57 AM
> To: [email protected]
> Subject: Re: [svg-developers] Re: eventing between SVG and its parent
>
>
>
>
>
> Thank you for the link, I finally got it working!
>
> I use <object> (as opposed to <embed> favored in the document) and it
works
> in IE9, chrome, opera, FF6 with just the basic javascript (no frameworks)!
>
> However, it is sad we have to do such hacks to get the BASIC communication
> working. My original idea was to send custom events between the documents.
> It worked in IE9, chrome, opera, but failed in firefox. I it turned out
> firefox has very strict policy for inter-document eventing and it seems
> there is no will to allow such communication model. I reported the issue:
> https://bugzilla.mozilla.org/show_bug.cgi?id=680394
>
> On Sat, Aug 20, 2011 at 1:42 PM, David Dailey 
> <[email protected]<mailto:
ddailey%40zoominternet.net> >wrote:
>
>>
>>
>> Take a look at http://www.w3.org/Graphics/SVG/IG/resources/svgprimer.html
>>
>> Specifically:
>> http://www.w3.org/Graphics/SVG/IG/resources/svgprimer.html#scripting_HTML
>>
>> Hope this helps
>>
>> David
>>
>> From: [email protected] <mailto:
svg-developers%40yahoogroups.com> [mailto:
>> [email protected] <mailto:svg-developers%40yahoogroups.com>
] On Behalf Of Zdenek Kedaj
>> Sent: Friday, August 19, 2011 2:02 PM
>> To: [email protected] <mailto:
svg-developers%40yahoogroups.com>
>> Subject: [svg-developers] Re: eventing between SVG and its parent
>>
>> 2011/8/19 Zdeněk Kedaj <[email protected] <mailto:
zdenek.kedaj%40gmail.com> <mailto:
>> zdenek.kedaj%40gmail.com> >:
>> > 2011/8/19 Zdeněk Kedaj <[email protected] <mailto:
zdenek.kedaj%40gmail.com> <mailto:
>> zdenek.kedaj%40gmail.com> >:
>>
>> >> Hello, is this possible at all? Anyone knows a way how to get the
>> >> communication working in the major browsers?
>> >>
>> >
>>
>> [Non-text portions of this message have been removed]
>>
>>
>>
>
> [Non-text portions of this message have been removed]
>
>
>
>
>
> [Non-text portions of this message have been removed]
>


[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