[svg-developers] What am I doing wrong - help please

2012-11-18 Thread PETER
My brain stopped - please give me the code

http://www.sst-svg.co.uk/movezup.svg - works

http://www.sst-svg.co.uk/moveforeign.svg - does not !!

Please have a peep at the source of the second one and give me a workable idea. 
(am happy to put the 'foreign' script in a oversize rect to create a border 
and then make the border the place on which to click to move it to the front).

Thanks - I hope

Pete (Northolt UK)





-
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-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:
svg-developers-dig...@yahoogroups.com 
svg-developers-fullfeatu...@yahoogroups.com

* To unsubscribe from this group, send an email to:
svg-developers-unsubscr...@yahoogroups.com

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



[svg-developers] external entities

2012-11-18 Thread Kenneth Nellis
I've tried without success to get external entities to work. For example, let's 
say I want to define blue in a shared file as #00247D and then, in multiple, 
separate SVG files, reference the shared definition (as blue;).

I get that the SVG document that references the color would pull in the 
definition with something like the following in its DOCTYPE:

!ENTITY blue SYSTEM colors.xml

And blue would be defined in file colors.xml, but I haven't been able to 
figure out how to define blue in file colors.xml. Suggestions would be most 
appreciated!

Ideally, I wouldn't need separate !ENTITY…. references in each SVG for each 
color, but could simply refer (somehow) to colors.xml and pull in all entity 
definitions in colors.xml.

—Ken Nellis



-
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-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:
svg-developers-dig...@yahoogroups.com 
svg-developers-fullfeatu...@yahoogroups.com

* To unsubscribe from this group, send an email to:
svg-developers-unsubscr...@yahoogroups.com

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



Re: [svg-developers] external entities

2012-11-18 Thread Marty Sullivan
I can't tell you if this is possible as I've never tried to define external
entities. However, to make the local entities in you svg, you would put
them in the DOCTYPE like so:

!DOCTYPE svg [
  !ENTITY blue FF
  !ENTITY green #00FF00
  !ENTITY red #FF
]

and then refer to them as red; green; blue; in your document.
On Sun, Nov 18, 2012 at 5:26 PM, Kenneth Nellis nelli...@gmail.com wrote:

 I've tried without success to get external entities to work. For example,
 let's say I want to define blue in a shared file as #00247D and then, in
 multiple, separate SVG files, reference the shared definition (as blue;).

 I get that the SVG document that references the color would pull in the
 definition with something like the following in its DOCTYPE:

 !ENTITY blue SYSTEM colors.xml

 And blue would be defined in file colors.xml, but I haven't been able to
 figure out how to define blue in file colors.xml. Suggestions would be
 most appreciated!

 Ideally, I wouldn't need separate !ENTITY…. references in each SVG for
 each color, but could simply refer (somehow) to colors.xml and pull in all
 entity definitions in colors.xml.

 —Ken Nellis

 

 -
 To unsubscribe send a message to:
 svg-developers-unsubscr...@yahoogroups.com
 -or-
 visit http://groups.yahoo.com/group/svg-developers and click edit my
 membership
 Yahoo! Groups Links






[Non-text portions of this message have been removed]





-
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-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:
svg-developers-dig...@yahoogroups.com 
svg-developers-fullfeatu...@yahoogroups.com

* To unsubscribe from this group, send an email to:
svg-developers-unsubscr...@yahoogroups.com

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



Re: [svg-developers] Loading SVG images dynamically and then accessing the dom

2012-11-18 Thread Marty Sullivan
Last I checked, you could get it by doing something like:

var svgDoc = document.getElementById(myEmbed).getSVGDocument();

You would then interact with the SVG by using the svgDoc variable in the
same manner you would from a script inside the SVG.

Marty

On Sat, Nov 17, 2012 at 9:25 PM, Pranav Lal pranav@gmail.com wrote:

 **


 Hi Marty,
 Many thanks for your message.
 snip you can

 access the svg dom directly from the html script if you prefer.
 PL] Do you have any pointers on how to do this?

 Pranav

  



[Non-text portions of this message have been removed]





-
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-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:
svg-developers-dig...@yahoogroups.com 
svg-developers-fullfeatu...@yahoogroups.com

* To unsubscribe from this group, send an email to:
svg-developers-unsubscr...@yahoogroups.com

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



[svg-developers] Re: external entities

2012-11-18 Thread Kenneth N
Thanx for that, however I do have internal entities working just fine. Looking 
for help specifically with externally-defined ones.
â€Ken Nellis

--- In svg-developers@yahoogroups.com, Marty Sullivan dark3251@... wrote:

 I can't tell you if this is possible as I've never tried to define external
 entities. However, to make the local entities in you svg, you would put
 them in the DOCTYPE like so:
 
 !DOCTYPE svg [
   !ENTITY blue FF
   !ENTITY green #00FF00
   !ENTITY red #FF
 ]
 
 and then refer to them as red; green; blue; in your document.
 On Sun, Nov 18, 2012 at 5:26 PM, Kenneth Nellis nellisks@... wrote:
 
  I've tried without success to get external entities to work. For example,
  let's say I want to define blue in a shared file as #00247D and then, in
  multiple, separate SVG files, reference the shared definition (as blue;).
 
  I get that the SVG document that references the color would pull in the
  definition with something like the following in its DOCTYPE:
 
  !ENTITY blue SYSTEM colors.xml
 
  And blue would be defined in file colors.xml, but I haven't been able to
  figure out how to define blue in file colors.xml. Suggestions would be
  most appreciated!
 
  Ideally, I wouldn't need separate !ENTITY�. references in each SVG for
  each color, but could simply refer (somehow) to colors.xml and pull in all
  entity definitions in colors.xml.
 
  �Ken Nellis
 
  
 
  -
  To unsubscribe send a message to:
  svg-developers-unsubscr...@yahoogroups.com
  -or-
  visit http://groups.yahoo.com/group/svg-developers and click edit my
  membership
  Yahoo! Groups Links
 
 
 
 
 
 
 [Non-text portions of this message have been removed]







-
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-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:
svg-developers-dig...@yahoogroups.com 
svg-developers-fullfeatu...@yahoogroups.com

* To unsubscribe from this group, send an email to:
svg-developers-unsubscr...@yahoogroups.com

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



[svg-developers] Re: Apple iOS 6 SVG Problems

2012-11-18 Thread Joe Doll
Most browsers do well with SVG. SVG support in browsers has improved 
dramatically over the last 12 months. The key thing is to have and 
support a standard. HTML5 isn't any different that SVG in this regard. 
If compatibility is important, then test the code with the top 4 browsers.

By the way, we make no attempt to be compatible, but our SVG animations 
seem very consistent in all browsers. That would not have been true last 
year.




-
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-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:
svg-developers-dig...@yahoogroups.com 
svg-developers-fullfeatu...@yahoogroups.com

* To unsubscribe from this group, send an email to:
svg-developers-unsubscr...@yahoogroups.com

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



[svg-developers] Re: Loading SVG images dynamically and then accessing the dom

2012-11-18 Thread joe.d...@ymail.com


--- In svg-developers@yahoogroups.com, Pranav Lal pranav.lal@... wrote:

 Hi Marty,
 Many thanks for your message.
 snip you can
 access the svg dom directly from the html script if you prefer.
 PL] Do you have any pointers on how to do this?
 
 Pranav


Hi Pranav,

I think we do the same thing that you are talking about. We use the embed tag 
like Marty suggested to you. When we bring in the file from the server, we 
parse it to the DOM. We do that with the dump() command, but the syntax varies 
with the browser. We put the entire file into a single group, then we attach 
the group to the DOM. A key question is whether you want to work with the file 
once you load it.

Our embed tag looks like this.

embed id=hom_img width=744px height=652px'
 'type=image/svg+xml src=home_imgs.svg'

We establish the element we attach to like this.

 htmlObjImgs = document.getElementById(hom_img);
SVGDocImgs = htmlObjImgs.getSVGDocument();
SVGRootImgs = SVGDocImgs.documentElement;
 
Then we attach the group to  SVGRootImgs






-
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-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:
svg-developers-dig...@yahoogroups.com 
svg-developers-fullfeatu...@yahoogroups.com

* To unsubscribe from this group, send an email to:
svg-developers-unsubscr...@yahoogroups.com

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