Re: [svg-developers] opera 9.5 and 9.6 do not shrink embed svg

2008-09-24 Thread Jonathan Watt
philsvg2 wrote:
 Hi All,
 
 I had upgrade my web site http://www.visualkit.com
 http://www.visualkit.com so it is now
 compliant with FF 3.0, IE+ASV3, and Opera 9.25 (svg-html-svg
 communication, as always, you can grab the code as example, all
 necessary code is in html or svg page (sorry, not very clean, i have
 to wash it)
 
 I have to test it with google chrome, renesys, safari (first test
 months ago shows printing is not in good scale) (great to see so much
 svg browsers!)
 
 But when I upgraded Opera 9.25 to 9.5, i saw that embed svg was not
 shrink, scrollbars appear around svg document as with opera 9.6 beta,
 and FF 2.

Yes, it's one of the issues that we fixed in Firefox 3.

 I can't find any option to force svg document to fit embed tag size
 and i reported this as a bug to opera team.
 
 you can test this here http://www.visualkit.com/bug/carre_txtur_emb.html
 http://www.visualkit.com/bug/carre_txtur_emb.html

I believe they are already aware of the issue, but it's good to keep this on
their radar. ;-)

Jonathan




-
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:
mailto:[EMAIL PROTECTED] 
mailto:[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/



Re: [svg-developers] external css + pattern in FF3

2008-02-19 Thread Jonathan Watt
That's a bug in Firefox. Linking in the style sheet using the xml-stylesheet
should work just as well as having the CSS inline in the SVG file.

indrek.meagi wrote:
 
 
 Firefox 3 beta 3 render not pattern if css part is not in svg file.
 Example:
 
 My.SVG:
 
 ?xml version=1.0?
 ?xml-stylesheet href=styles.css type=text/css?
 !DOCTYPE svg PUBLIC -//W3C//DTD SVG 1.0//EN
 http://www.w3.org/TR/SVG/DTD/svg10.dtd
 http://www.w3.org/TR/SVG/DTD/svg10.dtd
 http://www.w3.org/TR/SVG/DTD/svg10.dtd
 http://www.w3.org/TR/SVG/DTD/svg10.dtd 
 svg xmlns=http://www.w3.org/2000/svg http://www.w3.org/2000/svg
 http://www.w3.org/2000/svg http://www.w3.org/2000/svg
 xmlns:xlink=http://www.w3.org/1999/xlink http://www.w3.org/1999/xlink
 http://www.w3.org/1999/xlink http://www.w3.org/1999/xlink
 xml:space=preserve width=200 height=280 
 titlexxx/title
 defs
 pattern x=0 y=0 width=10 patternUnits=userSpaceOnUse
 id=ggpatt height=10
 rect x=0 width=10 y=0 height=10
 style=fill:yellow; stroke:none;/
 g style=fill:black; stroke:black; stroke-width:1
 circle r=2 cx=5 cy=5/
 /g
 /pattern
 /defs
 rect x=0 width=100 y=0 height=80 class=gg/
 /svg
 
 
 styles.css:
 
 .gg {fill:url(#ggpatt);stroke:black;stroke-width:1;}
 
 
 If I add to svg file following css part then it works:
 
 style type=text/css ![CDATA[
 .gg {fill:url(#ggpatt);stroke:black;stroke-width:1;}
 ]] /style
 
 
 Is this bug or feature or I'm doing something wrong???
 


-
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:
mailto:[EMAIL PROTECTED] 
mailto:[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/
 


Re: [svg-developers] Please test your SVG in Firefox 3 Beta 3

2008-02-18 Thread Jonathan Watt
Hi David,

I'm glad to hear that you're generally impressed with the beta. Regarding the
choking filters, some work is ongoing to improve filter performance. It would be
good to have a list of the SVG files containing filters that you're having
problems with for us to test against.

Thanks for the links to the SVG files that are causing crashes. As you say,
crashing is definitely not the desired behavior. ;-) I've filed a bug for the
issue with these files at https://bugzilla.mozilla.org/show_bug.cgi?id=418206

BTW, if you file bugs using the link I provided you will be automatically filing
the bug in the SVG component, so no need to hunt for it. You just need to fill
in the Summary and Details fields in the form.

https://bugzilla.mozilla.org/enter_bug.cgi?product=Corecomponent=SVG

Thanks a lot for taking the time to test. Hopefully these bugs will be ironed
out for you by the time of the official release of Firefox 3.

Jonathan


ddailey wrote:
 Hi Jonathan, thanks for your information. I am overall quite impressed
 with the progress. Lots of things are now working that I didn't expect
 to be. Lots of filters, though it seems to be choking on some compound
 filters. I started filing some bug reports before I read your message in
 its entirety. I'll look through the known issues stuff and try to find
 the SVG part of the bug reporter for future stuff. All in all quite a
 good many forward steps! In case it doesn't get through the channels
 properly, the following sites seem to cause FF3beta just to plain crash:
 
 http://srufaculty.sru.edu/david.dailey/svg/newstuff/path5.svg
 http://srufaculty.sru.edu/david.dailey/svg/newstuff/path5.svg
 http://srufaculty.sru.edu/david.dailey/svg/newstuff/path6.svg
 http://srufaculty.sru.edu/david.dailey/svg/newstuff/path6.svg
 http://srufaculty.sru.edu/david.dailey/svg/newstuff/path7.svg
 http://srufaculty.sru.edu/david.dailey/svg/newstuff/path7.svg
 (8 , 8a, 9 and 10 too)
 
 I can't certify that my code is proper (though the above work in IE/ASV,
 Opera and Safari), but crashing is probably not the desired behavior.
 
 cheers,
 David


-
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:
mailto:[EMAIL PROTECTED] 
mailto:[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/
 


[svg-developers] Please test your SVG in Firefox 3 Beta 3

2008-02-16 Thread Jonathan Watt
Hi all,

As some of you will have noticed, the third beta of Firefox 3 was released
earlier this week.

http://developer.mozilla.org/devnews/index.php/2008/02/12/firefox-3-beta-3-now-available-for-download/

Things are now getting pretty solid so now would be a great time for people to
try it out and test it on their SVG. At this late state of development the
emphasis is firmly on regressions -- please report any SVG that works fine in
Firefox 2, but seems broken in some way in this latest Firefox 3 beta. The more
eyes we have on this the better.

For anyone interested in testing, I'd suggest reading the release notes, at
least from the Download section through the Known Issues section:

http://www.mozilla.com/en-US/firefox/3.0b3/releasenotes/#download

If you do find any SVG issues, the preferred method of reporting them is to file
them in the SVG component of Mozilla's bugzilla:

https://bugzilla.mozilla.org/enter_bug.cgi?product=Corecomponent=SVG

If that seems too much trouble then please do mention them here rather than let
them slip through the net. :-)

Best regards,
Jonathan



-
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:
mailto:[EMAIL PROTECTED] 
mailto:[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/
 


Re: [svg-developers] ctrl+click on use with wlink:href on firefox

2008-02-14 Thread Jonathan Watt
deluxepotatoe wrote:
 I'm using a reference to a symbol like following :
 {{{
 use xlink:href=#symbol-railroad_crossing /
 }}}
 
 My problem is that ctrl+click on such an element opens a new tab under
 FF2.
 Is there any known way to prevent this ?

You can try adding something like onclick=if (evt.ctrlKey)
evt.preventDefault(); to your use/.


-
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:
mailto:[EMAIL PROTECTED] 
mailto:[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/
 


Re: [svg-developers] Good SVG progress in Opera 9

2006-05-08 Thread Jonathan Watt
On 5/8/06, Jonathan Chetwynd [EMAIL PROTECTED] wrote:

 two alert dialogues
 Object   SVGGElement  (evt.Target)
 symbol2   (evt.Target.id)
 Firefox1.5


Mozilla shouldn't be doing that.

You should use .getAttribute('id') instead of .id

-Jonathan


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



 Yahoo! Groups Sponsor ~-- 
Home is just a click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/1U_rlB/TM
~- 

-
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/

* 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/
 




Re: [svg-developers] Re: Good SVG progress in Opera 9

2006-05-08 Thread Jonathan Watt
On 5/8/06, Jim Ley [EMAIL PROTECTED] wrote:

 You should use .getAttribute('id') instead of .id

 but if you're going to do that, then you might want to read this excellent
 article by one Jonathon Watt:

 http://jwatt.org/svg/authoring/#namespace-aware-methods


Err, *cough*. Not my day, is it?


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



 Yahoo! Groups Sponsor ~-- 
Home is just a click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/1U_rlB/TM
~- 

-
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/

* 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/
 




Re: [svg-developers] Re: Good SVG progress in Opera 9

2006-05-08 Thread Jonathan Watt
Oops. Thanks for the correction. Now where's the embarrassed smily in gmail?

On 5/8/06, jookeda [EMAIL PROTECTED] wrote:

 Actually, if you were to examine the SVGElement interface in the SVG
 1.1 DOM specification:
 http://www.w3.org/TR/SVG/types.html#InterfaceSVGElement

 You'll see the id property as being well-defined. If an agent
 implements the SVG DOM, it *should* implement that property as well,
 making it perfectly alright to use (and much more convenient than
 getAttribute(id)).

 -Jason Davis

 --- In svg-developers@yahoogroups.com, Jonathan Chetwynd
 [EMAIL PROTECTED] wrote:
 
  Jonathan,
 
  that's extremely kind once again, I just can't get my head around
  supporting different ways of doing stuff. ASV also supports both...
 
  thanks
 
  ~:
 
  Jonathan Chetwynd
 
 
 
  On 8 May 2006, at 10:26, Jonathan Watt wrote:
 
  .getAttribute('id')
 








 -
 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









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



 Yahoo! Groups Sponsor ~-- 
Home is just a click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/1U_rlB/TM
~- 

-
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/

* 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/
 




Re: [svg-developers] SVG Scriting Across FF and IE. FAQ

2006-05-03 Thread Jonathan Watt
Hi,

On 5/3/06, chmavrog [EMAIL PROTECTED] wrote:

 Hi everyone,

 On my pc i have IE 6 and ASV3 and FireFox 1.5.02 (latest one).


Actually 1.5.0.3 is the latest one. ;-)

Here are my questions.Please someone respond with Correct or False
 after seeing my answers

 -Object tag is HTML 4.01 but embed tag is not. My answer(True)


True. The embed tag is not part of any W3C standard.

-In FF, object and embed tag can be used to show SVG documents.My
 answer(True)


True. So can iframe.

-In IE6 only embed tag can be used to show SVG documents.My answer
 (True)


False. You can use the object and iframe tags.

-If i want to embed an svg document inside an html document and want to
 script from HTML2SVG and SVG2HTML i must use embed tag for IE6 + ASV3
 My answer(True)


You can probably use iframe as well I think, but it's true you can't
really script across object in IE+ASV.

-If i want to embed an svg document inside an html document and want to
 script from HTML2SVG and SVG2HTML i must use embed or object tag for FF
 My answer(false)


You can use embed, object or iframe. All allow scripting across in
either direction.

-Object tag does not support scripting.My answer(True)


False. ASV doesn't support it in IE because of a security hole, but other
browsers should.

Thanks in advace
 Chris


Regards,
Jonathan


[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/

* 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/
 





Re: [svg-developers] Re: SVG Scriting Across FF and IE. FAQ

2006-05-03 Thread Jonathan Watt
Demo: http://jwatt.org/svg/demos/xhtml-with-inline-svg.xhtml
Docs: http://wiki.svg.org/Inline_SVG

On 5/3/06, chmavrog [EMAIL PROTECTED] wrote:

 Martin,

 is there a link that you can sent me in order to see this for IE+ASV

 --- In svg-developers@yahoogroups.com, Martin Honnen
 [EMAIL PROTECTED] wrote:
 
  --- In svg-developers@yahoogroups.com, chmavrog chmavrog@
 wrote:
 
   -Inline SVG is currently supported only in FF,which supports
 XHTML,
   and not in IE6 + ASV. My answer(True)
 
  Opera 8 and Opera 9 beta also support mixed namespace XML documents
  with XHTML and SVG elements.
 
  As for IE and the Adobe SVG viewer, IE has its very own concept of
  HTML (not XHTML!) with namespaces where a plugin can implement the
  elements in a namespace and Adobe uses that to provide support for
  inline SVG inside of HTML documents with IE.
 






 -
 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









[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/

* 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/
 




Re: [svg-developers] Re: recommend web hosting service that supports SVG?

2006-04-30 Thread Jonathan Watt
Hi Garry,

Those are great instructions for plain SVG files. Do you mind if I add a
link to them from the SVG wiki?

The instructions aren't enough for .svgz files though. Simply adding the
type image/svg+xml is for the .svgz filename extension is not enough. That
will sort out the Content-type header, but not the Content-encodeing header,
and the server has to send |Content-encoding: gzip| with .svgz files. Now
that you remind me, it was *this* that I couldn't find a good solution to
for IIS.

So what I should have said is that IIS will be painful if you want to serve
.svgz files.

Regards,
Jonathan


On 4/30/06, Garry Haywood [EMAIL PROTECTED] wrote:

 IIS 5.0 for SVG mimetype is relatively straightforward

 I have some instructions here:

 http://www.betamodel.com/iis5_and_svg_mimetype

 hope this might help you.

 --- In svg-developers@yahoogroups.com, TJ Moore [EMAIL PROTECTED] wrote:
 
  Earthlink offers UNIX/Apache.  I may need to switch from a Windows
 web hosting account to a UNIX acct!
 
  Currently, my account is hosted on an IIS 5.0 server.  I've been
 working with Tech Support via two telephone calls to get SVG added as
 a MIME type, and it has been a pain.  They offered this solution for
 adding SVG on my own (remotely):
 
  http://rtfm.atrax.co.uk/articles/article_11.asp
 
  but they didn't provide any details.  I tried it by switching
 localhost to the IP address for my Earthlink server, but it didn't
 seem to work.  Of course, I don't know WSH that well and I'm pretty
 sure some code must be missing here if you are trying to add a MIME
 type remotely.  One Tech Support representative said he did talk with
 an engineer at Earthlink who thought it should work, but he was going
 to check back with that engineer for further clarification on the
 steps.  If I find out, I'll let you know.
 
  I raised the issue with Earthlink that they should just support SVG
 as a standard MIME type on all servers.  I pointed him to SVG Web
 sites with more info.  The Tech Support rep said he would raise this
 issue with his engineers to see if they can make the change.  It
 would be nice to get some large ISPs to do so.  So, stay tuned.
 (Maybe give Earthlink a call, too!  It might be an opportune time to
 get them to make the change if they get a number of comments/requests
 at once.)
 
  In the interim, my fall-back position is to switch the account to
 UNIX.  It's cheaper anyway.  And, of course, we know why SUN is
 cheaper than MS!  ;-)
 
  Cheers,
 
  TJ
 
 
  -Original Message-
  From: Jonathan Watt [EMAIL PROTECTED]
  Sent: Apr 27, 2006 3:25 PM
  To: svg-developers@yahoogroups.com
  Subject: Re: [svg-developers] recommend web hosting service that
 supports SVG?
  
  Peter,
  
  Any hosting company that provides Apache hosting and allows you to
 write
  your own .htaccess files should be fine. If you have that, then
 you can
  support SVG and gzip encoded SVG on your site regardless of the
 server
  configuration. See
  
  � http://wiki.svg.org/Server_Configuration:Apache
  
  If you want support for gzip encoded SVG I'd recommend you stay
 away from
  IIS hosting. The work arounds required for gzipped SVG aren't fun.
  
  Regards,
  Jonathan
  
  On 4/27/06, Peter Thompson [EMAIL PROTECTED] wrote:
  
   Can someone please recommend a reliable, inexpensive
   web hosting company that supports SVG?� I have very
   few requirements:
   1)supports .svg files
   2)supports .svgz files (I found one that supports svg
   but not svgz)
   3)inexpensive
   You can respond via private email if you think that a
   public response is too much like advertising.
   Thanks.
   Peter
  
  
  
   __
   Do You Yahoo!?
   Tired of spam?� Yahoo! Mail has the best spam protection around
   http://mail.yahoo.com
  
  
   -
   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
  
  
  
  
  
  
  
  
  
  [Non-text portions of this message have been removed]
  
  
  
  -
  To unsubscribe send a message to: svg-developers-
 [EMAIL PROTECTED]
  -or-
  visit http://groups.yahoo.com/group/svg-developers and click edit
 my membership
  
  
  
  
  
  SPONSORED LINKS
  Xml formatSvgFormatData
  
  YAHOO! GROUPS LINKS
  
  
  * �Visit your group svg-developers on the web.
  �
  * �To unsubscribe from this group, send an email to:
  [EMAIL PROTECTED]
  �
  * �Your use of Yahoo! Groups is subject to the Yahoo! Terms of
 Service.
 






 -
 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










[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

Re: [svg-developers] Re: to display embeded SVG in Firefox

2006-04-30 Thread Jonathan Watt
Hi talki,

I suspect this is a bug in Firefox. If this is the bug I suspect, there are
no good instructions on fixing things yet, but I'm going to write some up
and add them to mozilla.org. In the mean time, try the following:

1) Close Firefox
2) Find your Firefox profile directory
   (see http://www.mozilla.org/support/firefox/profile#locate )
3) Find the file mimeTypes.rdf in the profile directory
4) Save a copy of the file somewhere safe
5) Delete that file from your profile directory
6) Restart Firefox
7) Restart Firefox and load http://jwatt.org/svg/demos/svg.svg

If that file works for you, then unfortunately your mimeTypes.rdf file has
been corrupted. I'm still trying to work out a fix for this problem. :-/

You may actually not need the copy of mimeTypes.rdf that you saved. If you
experience any problems opening files from your hard drive using Firefox
then send the copy to me and I'll clean it up for you. If you don't
experience any problems then you don't need it. Firefox will have generated
a new one for you (it just won't have any of the types that got added since
you installed Firefox).

I'll send you a link to the document I write once I get to it.

Regards,
Jonathan


On 4/30/06, talkli [EMAIL PROTECTED] wrote:

 Hi,

 i have read this page,it seems to be a firefox bug.And i also followed
 the steps suggested by the people there. But it doesn't work. Did u
 also  try it? Do u have the same problem?

 regards

 Di

  Check whether any of the hints in
  https://bugzilla.mozilla.org/show_bug.cgi?id=303581 help to solve
  the problem.
 






 -
 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









[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/

* 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/
 




Re: [svg-developers] Re: to display embeded SVG in Firefox

2006-04-30 Thread Jonathan Watt
Oops, sorry, wrong link:

On 4/30/06, Jonathan Watt [EMAIL PROTECTED] wrote:

 7) Restart Firefox and load http://jwatt.org/svg/demos/svg.svg


That should have been http://jwatt.org/svg/demos/scripting-across-embed.html

If you see the white cross on the blue background, then it's fixed


[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/

* 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/
 





Re: [svg-developers] Re: to display embeded SVG in Firefox

2006-04-30 Thread Jonathan Watt
There _is_ a bug in Firefox, but most people don't encounter it (I hope).
Certain series of actions can lead to your Firefox profile's
mimeTypes.rdffile being corrupted so that embedded SVG that used to
work for you, may
suddenly stop working.

On 4/30/06, Richard Gnyla [EMAIL PROTECTED] wrote:

 Had this problem before, not a FF bug cos it should work

 embed src=floorplan.svg id=svgmap name=svgmap type=image/svg+xml
 height=610 width=740



[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/

* 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/
 




Re: [svg-developers] image onload

2006-04-27 Thread Jonathan Watt
Have you guys tried

  svgDoc.getElementById(I).reload();

?

On 4/27/06, David Dailey [EMAIL PROTECTED] wrote:

 At 09:34 AM 4/27/2006, you wrote:
 try setting the onload from in javascript - that's what i'm attempting
 and she no work.

 Oh... now I see what you're talking about --

 I tried the following (avoiding your function() constructor to
 simplify things):

  I=svgDoc.getElementById(I)//the image tag in SVG
  IM=new Image()
  IM.src=../p17.jpg
  IM.onload=announce  //a function containing an
 alert()
  I.setAttributeNS(xlinkns,xlink:href,IM.src)

 It works in FF and Opera, and it works once in IE. Once the image has
 loaded once, the browser seems to cache the memory of it being loaded
 already so it only works once (try renaming the file and pointing the
 browser at a new file -- I'll be you can get the function to activate
 again. Note: I did this by building a virtual image in JavaScript
 rather than assigning an onload attribute to the image tag -- I don't
 know if this matters.

 Once might be enough for many purposes, but I agree that the problem
 is a problem and will hope others can help us out. I would share your
 interest in finding a solution to this.

 David



 -
 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









[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/

* 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/
 





Re: [svg-developers] object vs embed Re: An SVG Tutorial

2006-04-17 Thread Jonathan Watt
Hi David,

On 4/17/06, David Dailey [EMAIL PROTECTED] wrote:

 At 09:47 AM 4/17/2006, Jeff Schiller wrote:

 Also, shouldn't you be using object in Firefox and Opera?
 I don't know. I was wondering this very question yesterday and did
 some simple experiments seeing if I could script across HTML to SVG
 using objects or for that matter iframe's instead of embed's. I
 was unsuccessful and that seemed generally consistent with what I
 read from some other folks.


You can see examples of cross-browser scripting across object and embed
at:

  http://jwatt.org/svg/demos/scripting-across-embed.html
  http://jwatt.org/svg/demos/scripting-across-object.html

I'd recommend you use embed if you're concerned with compatibility with
ASV since it blocks scripting across object due to a security issue.

I understand that object is supposed to become groovy at some point
 in time, but where might I see examples of how to script the stuff
 inside one of them?

 thanks,
 dpd



 -
 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









[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/

* 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/
 





Re: [svg-developers] reporting bugs Re: An SVG Tutorial

2006-04-17 Thread Jonathan Watt
Hi guys,

On 4/17/06, Jeff Schiller [EMAIL PROTECTED] wrote:

 --- In svg-developers@yahoogroups.com, David Dailey [EMAIL PROTECTED]
 wrote:
  2. I usually figure if something doesn't work, someone is usually
  aware of it -- for example at
  http://srufaculty.sru.edu/david.dailey/svg/intro/turbulence.html I am
  able to get the tolerance of a numOctaves of an feTurbulence, but am
  unable to set it, in Opera 9.0, though I can do both in IE.
 

 The best bet is to float the problems in public forums first (i.e.
 this mailing list or the forums at
 http://my.opera.com/community/forums/).  Generally Opera developers
 monitor those pretty closely and will let you know if it's a known
 bug, whether it should be raised as a bug, or it's something you're
 doing wrong.


I can't speak for Opera, but in the case of Mozilla this seems like a good
approach. We really need more testing of preview releases to get feedback on
bugs that are really holding people back and to catch regressions. In
general we prefer bugs to be filed in bugzilla, but each bug filed takes up
developer time (a very scarce resource) whether it's a real bug or not.
Asking fellow contributors to this list whether something is a bug or not
therefore seems like a good idea. The less of our time is spent reading,
closing and explaining invalid bug reports, the more time we can spend on
fixing real bugs.

That said, we definately do need people downloading, testing and giving us
feedback before official releases are made.

Jonathan


[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/

* 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/
 




Re: [svg-developers] can someone validate the code

2006-01-30 Thread Jonathan Watt
Another reason not to use a DOCTYPE declaration. The version attribute is
good. Leave it in and nuke the DOCTYPE instead. :-)

On 1/30/06, Peter Thompson [EMAIL PROTECTED] wrote:

 The SVG file validates in XMLSpy when the version
 attribute is removed from the SVG element, so that
 line looks like this:
 svg width=120mm height=40mm
 xmlns=http://www.w3.org/2000/svg/

 Your original SVG file displays in ASVG3 both with and
 without the version attribute (ASVG3 does not complain
 about the version attribute).

 --- danfreno [EMAIL PROTECTED] wrote:

  i have a problem with importing this in coreldraw
  and i just wanted to
  be sure that the file is correct, a supporter i
  mailed with told me
  that there was an error Syntax error line 1,colum
  0 but i dont the
  error myself
 
  ?xml version=1.0 standalone=no?
  !DOCTYPE svg PUBLIC -//W3C//DTD SVG 20001102//EN
 
 
 http://www.w3.org/TR/2000/CR-SVG-20001102/DTD/svg-20001102.dtd;
  svg width=120mm height=40mm
   xmlns=http://www.w3.org/2000/svg;
  version=1.0
  g transform=scale(0.1)
g style=font-family: Helvetica-Narrow;
rect x=0mm y=0mm width=163.2mm
  height=49.6mm
  stroke-width=0.1mm
  style=stroke:rgb(255,0,0);fill: none;/
text x=83.2mm y=24.8mm text-anchor=middle
  dominant-baseline=mathematical style=font-
  size:13.043478mm;GHGHGH/text
/g
  /g
  /svg
 
  the problem is the dominant-baseline=mathematical
 
 


 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com


 -
 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










[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/

* 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/
 





Re: [svg-developers] 'font-size' and 'text-rendering' Error

2006-01-30 Thread Jonathan Watt
Sounds like you're using Mozilla Firefox and that you've encountered the
problem explained here:

  http://jwatt.org/svg/authoring/#specifying-units

-Jonathan

On 1/30/06, RODOLFO MORENO LLACZA [EMAIL PROTECTED] wrote:

   Folks:
   My code get this error:
- Error in parsing value for property 'font-size'. declaration
 dropped.
- also there are text-rendering errors.
   someone knows why?

   the file attach show you more detail.

   regards
   Rodolfo



 -
 Do you Yahoo!?
 With a free 1 GB, there's more in store with Yahoo! Mail.

 [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









[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/

* 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/
 





Re: [svg-developers] Re: How do I embed one svg file in another? (FF)

2006-01-25 Thread Jonathan Watt
On 1/25/06, Martin Honnen [EMAIL PROTECTED] wrote:

 --- In svg-developers@yahoogroups.com, Jonathan Watt [EMAIL PROTECTED] 
 wrote:

   How about looking into the SVG specification then instead of making
   things up?
 
 
  That's a little harsh. :-)

  This is his/her first post to the list, so maybe give
  them a chance, eh? ;-)

 My introductory comment was not all I posted, rather I gave precise
 links and explanations in the same post where to find the information.
 That is much of a chance given to follow then.


Absolutely! You provided all the information they needed which I'm sure was
very helpful, and I didn't mean to imply otherwise. By give them a chance
I meant give them a chance to post a few times before deciding on their
character and giving such a rebuke. :-)

All the best,
Jonathan


[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/

* 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/
 





Re: [svg-developers] Re: How do I embed one svg file in another? (FF)

2006-01-24 Thread Jonathan Watt
Hi Martin,

On 1/24/06, Martin Honnen [EMAIL PROTECTED] wrote:

 --- In svg-developers@yahoogroups.com, seanmc_42 [EMAIL PROTECTED] wrote:

  Just got into SVG via the Firefox 1.5 browser...
  Experimenting - in an html file you can do an object or embed,
  but what do I use in another SVG file?

 How about looking into the SVG specification then instead of making
 things up?


That's a little harsh. :-) I think he/she was just trying to demonstrate
what they wanted, not say that was valid or that they expected it to work.
Not everyone knows how to read W3C specs, and althought it can be annoying
when people try to get you to do all their homework for them, I'm not sure
that's the case here. This is his/her first post to the list, so maybe give
them a chance, eh? ;-)

All the best,
Jonathan


[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/

* 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/
 




Re: [svg-developers] Re: Passing values from HTML to SVG

2006-01-10 Thread Jonathan Watt
On 1/10/06, Christopher Sharp [EMAIL PROTECTED] wrote:

 Hi Jonathan,

 I put in some CSS in the HTML code, but other than that, a few cosmetic
 changes and removing the redundant link to the file bytehex.js, I made
 no changes to the Javascript, then uploaded the file to
 http://csharp.com/circles.html .  I left the SVG file unchanged, other
 than removing the redundant line of commented code, and also uploaded
 to my website.

 The form works for both IE and Firefox locally from my hard drive, and
 IE works with my website, but for some strange reason Firefox does not
 work off my website, and just lists out the SVG source code.  As it
 works with your website, as well as locally, it looks as if there is a
 problem with the server used for hosting my website - any ideas?


Absolutely. Googling for server configuration svg (without the quotes)
usually does the trick. ;-)

  http://www.svg-whiz.com/wiki/index.php?title=Server_Configuration
  http://www.svg-whiz.com/wiki/index.php?title=Server_Configuration:Apache

-Jonathan


[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/

* 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/
 




Re: [svg-developers] Re: Firefox problem with SVGPathSegList::replaceItem()

2006-01-08 Thread Jonathan Watt
Hi Jeff,

On 1/8/06, Jeff Schiller [EMAIL PROTECTED] wrote:

 --- In svg-developers@yahoogroups.com, Jonathan Watt [EMAIL PROTECTED] 
 wrote:
 
  Hi Jeff
 
  On 1/7/06, Jeff Schiller [EMAIL PROTECTED] wrote:
  
   Is the method not implemented in Firefox 1.5?
 
 
  Correct, that's what NS_ERROR_NOT_IMPLEMENTED means.
 

 Ugh.  It's odd that appendElement() is allowed but not
 replaceElement().  So you can create a path element through the DOM
 IDL you just can't change it (which is the primary means I wanted to
 use the DOM, for efficiency).


Yeah, that seems strange. I'm not sure why replaceElement wasn't
implemented.

I thought that checking for

 path.pathSegList.replaceElement

 would be enough to know that replaceElement() exists and is
 implemented (this is what I do for ASV), but apparently it's
 implemented as an empty stub that throws an exception saying it's not
 implemented - not very useful to developers.  Is there any reason that
 was done?


Because the DOM interfaces are fixed and you can't leave out parts of them?
And possibly for binary compatibility issues in consecutive Mozilla
binaries? I admit this is very annoying, and it's certainly a good reason
for us to try our best to implement all parts of the DOM interfaces of the
elements we implement.

Other than looking through the source, or surrounding my scripts in
 try/catch blocks, is there any other way to determine if a
 method/attribute/interface is implemented?


Not that I'm aware of.

Sorry, I'm just frustrated and needed to vent a little...


Perfectly understandable.

Regards,
Jonathan

Thanks,
 Jeff



[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/

* 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/
 





Re: [svg-developers] Passing values from HTML to SVG

2006-01-08 Thread Jonathan Watt
Hi Christopher,

On 1/7/06, csharpdotcom [EMAIL PROTECTED] wrote:

 Hello Everybody,

 I am new to this newsgroup, and this is my first post.

 I have been playing around with scripting SVG, but I am having trouble
 transfering data from an HTML form to an embedded SVG document.  At
 http://csharp.com/circles.html I have an HTML form where a single
 number is specified, then I am trying to pick up that numnber from the
 embedded SVG document at http://csharp.com/circles.svg .  The SVG code
 can be seen by clicking on here at the very bottom.  Ignore
 the plaintext tag at the very top, if is appears.

 In order to display the output from the SVG code, I have commented out
 two lines of Javascript for var f = parent.select.document.selface;
 and var face = f.facenum.value; and put in a numerical value.  When I
 uncomment these two lines of code and comment out the fixed value
 of face an error is reported with the
 message 'parent.select.document' is null or not an object.


The parent.select.document.selface is very mixed up: 'parent' is a window
object, not the document. You would need to use:

  parent.document...

And what is 'select'? That doesn't appear in the HTML at all. Anyway, these
old DOM 0 ways are not what I know. I recommend you add an 'id' attribute to
the elements you want to obtain (you can have both a 'name' and an 'id'
attribute with the same name on an element), and use getElementById() to
obtain the elements. So it should work fine if you add the 'id' to your
form tag and do:

  var f = parent.document.getElementById('selface');

instead.

Please note that even this disabled version does not appear to work
 properly with Firefox, but needs IE to view it.  Once it has been
 debugged with IE, then the issue of other browsers can be examined.


Because you use createElement instead of createElementNS. Unfortunately ASV
incorrectly allows the former to work.

At http://csharp.com/specframes.html I used a similar way of
 transfering information from an HTML form to another HTML document in
 the same frame.  Note that as this uses VML, it only works with IE.

 All the examples I have seen of HTML modifying an SVG document using
 Javascript, involve manipulating SVG elements, such as fill color, and
 not transmitting data to Javascript code in the SVG document.  I would
 be most grateful for any advice someone could kindly give me.


Well reloading the SVG document is clearly not a good way, but then I'm sure
you know that. :-) You're actually half way there since you have found how
to obtain the SVGDocument object. Now what you really want to be able to do
is call functions defined in the SVG from JavaScript in the HTML. Then you
can pass the data in a function call. To do this you need to get the
SVGDocument object's window object. I have a couple of demos that show you
how to do this for both embed and object, see:

  http://jwatt.org/svg/demos/scripting-across-embed.html
  http://jwatt.org/svg/demos/scripting-across-object.html

The source is heavily commented to explain it, but the code is quite small
if you remove the comments.

Christopher Sharp
 http://csharp.com



[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/

* 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/
 




Re: [svg-developers] Re: Passing values from HTML to SVG

2006-01-08 Thread Jonathan Watt
On 1/8/06, csharpdotcom [EMAIL PROTECTED] wrote:

 Hi Jonathan,

 Thanks for your reply - I followed your suggestion with inithtml(),
 and uncommented the two lines of code in the SVG file, but I got the
 same error, so although that may fix one problem, there are still
 others.

 I know about the SVG Mozilla link, many thanks, and put in a
 namespace to make my file compatible with Firefox, but Firefox seems
 to have a problem when Javascript is used in SVG files.


Just for the record, Firefox doesn't have a problem with JavaScript in SVG,
but rather a problem with createElement being used for namespaced content
instead of createElementNS. Once you have your IE issues sorted out see:

  http://jwatt.org/svg/authoring/#namespace-aware-methods
  http://developer.mozilla.org/en/docs/SVG:Namespaces_Crash_Course

  Anyway, I
 want to get the problem with IE sorted out before considering other
 browsers.

 Christopher

 --- In svg-developers@yahoogroups.com, Jonathan Watt [EMAIL PROTECTED]
 wrote:
 
  Hi Christopher,
 
  It looks like you're exeriencing the same problem that jaychambers
 just
  posted to the list, except that he experienced it in Firefox, while
 you're
  experiencing it in IE+ASV.
 
  At least one problem is that you need to wait until the SVG is
 loaded before
  trying to access it. Calling inithtml() as you do may mean that it
 is called
  too soon, and hence you get your error. To make sure inithtml() is
 called
  only after everything is loaded use an 'onload' attribute on the
 body tag:
 
body bgcolor=white onload=inithtml();
 
  There may be other issues, but that's the one that jumps out at me.
 
  When you get round to it, check out the following page for help if
 you have
  problems getting things working in Firefox:
 
http://www.mozilla.org/projects/svg/faq.html
 
  Regards,
  Jonathan
 
  On 1/7/06, csharpdotcom [EMAIL PROTECTED] wrote:
  
   Hello Everybody,
  
   I am new to this newsgroup, and this is my first post.
  
   I have been playing around with scripting SVG, but I am having
 trouble
   transfering data from an HTML form to an embedded SVG document.
 At
   http://csharp.com/circles.html I have an HTML form where a single
   number is specified, then I am trying to pick up that numnber
 from the
   embedded SVG document at http://csharp.com/circles.svg .  The SVG
 code
   can be seen by clicking on here at the very bottom.  Ignore
   the plaintext tag at the very top, if is appears.
  
   In order to display the output from the SVG code, I have
 commented out
   two lines of Javascript for var f =
 parent.select.document.selface;
   and var face = f.facenum.value; and put in a numerical value.
 When I
   uncomment these two lines of code and comment out the fixed value
   of face an error is reported with the
   message 'parent.select.document' is null or not an object.
  
   Please note that even this disabled version does not appear to
 work
   properly with Firefox, but needs IE to view it.  Once it has been
   debugged with IE, then the issue of other browsers can be
 examined.
  
   At http://csharp.com/specframes.html I used a similar way of
   transfering information from an HTML form to another HTML
 document in
   the same frame.  Note that as this uses VML, it only works with
 IE.
  
   All the examples I have seen of HTML modifying an SVG document
 using
   Javascript, involve manipulating SVG elements, such as fill
 color, and
   not transmitting data to Javascript code in the SVG document.  I
 would
   be most grateful for any advice someone could kindly give me.
  
   Christopher Sharp
   http://csharp.com
  
  
  
  
  
   -
   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
  
  
  
  
  
  
  
 
 
  [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










[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/

* 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/
 




Re: [svg-developers] Re: Firefox issues with createElementNS, works in IE

2006-01-07 Thread Jonathan Watt
Hi,

On 1/7/06, jaychambers [EMAIL PROTECTED] wrote:

 Hi Jonathan,

   This didnt work either, at least, not entirely. the JScript
 console is cool.  Learn something new every day!!! Does IE have
 similar tool?  didnt see one.  Anyway, I've been looking around, and
 this appears to be a pretty common issue with FF.  The FF JScript
 console says svgDocument has no properties.  From what I've read,
 this is common in FF when using getSVGDocument.  Whats more wierd,
 is I disabled the FF SVG and loaded Adobe, and thats where I saw the
 behavior.


As Ronan says, when running in Mozilla, ASV doesn't have support to allow
script in the HTML to talk to the SVG it's rendering. In other words that
error is always going to occur if you're using ASV in Firefox.

For grins, this morning, I changed back to native SVG in
 FF, and all the sudden, it works using

 function onload=draw(), SVG native support, well-formed XML SVG
 file, and this line
 svgDocument = document.embeds[SVGNAME].getSVGDocument();


Yes, everything should work fine using Mozilla Firefox's native SVG support.

dosent work with Adobe loadedup. I'm doing some further testing,
 because FF is producing some very wierd works when the sun is @ 45
 degress of the . kind of issues.  Its somewhat irritating that
 the browser I have some to love and defend, has such flaky issues it
 turns out.


I played around with your files, modified in a variety of ways. It
consistantly works for me. If you can keep copies of the files exactly as
they are when they don't work for you I'll look into this.

BTW, here is a link to a site that has a example at the bottom
 trying to accomplish the same thing!  Dosent work on FF (although
 youl have to use adobe plugin, guess they arent using well-formed
 XML)
 http://www.svgopen.org/2002/papers/hauser_wenz__scripting_svg/


Yes, well as you can see the SVG document hasn't loaded. Instead there's a
grey background with the text: This XML file does not appear to have any
style information associated with it. If you google on that plus SVG
you'll find the reason why. In short if the author had added the attribute:

  xmlns=http://www.w3.org/2000/svg;

then the SVG document would load, and then the script would have something
to access when you click the button.

I wanted to thank you for your time to respond to my question!


You're very welcome. :-)

There are a couple of demos I have on my site showing how to script across
the object and embed tags in both IE+ASV and in FF. They are heavily
commented to explain how things work.

  http://jwatt.org/svg/demos/scripting-across-embed.html
  http://jwatt.org/svg/demos/scripting-across-object.html

I hope you find them informative.

-Jonathan

-j
 --- In svg-developers@yahoogroups.com, Jonathan Watt [EMAIL PROTECTED]
 wrote:
 
  Hi,
 
  The problem is likely that the SVG document hasn't yet loaded when
 draw() is
  called. Instead of calling it in the script element, call it
 onload. This
  should work I think:
 
  html
  body onload=draw();
  EMBED NAME=mydoc WIDTH=800 HEIGHT=600 SRC=canvas.svg /
  script language=javascript
 
  var svgDocument;
 
  function draw() {
 var svgns = http://www.w3.org/2000/svg;;
 
 svgDocument = this.document.mydoc.getSVGDocument();
 var shape = svgDocument.createElementNS('
  http://www.w3.org/2000/svg','circle');
 
 shape.setAttributeNS(null, 'cx', 25);
 shape.setAttributeNS(null, 'cy', 25);
 shape.setAttributeNS(null, 'r',  20);
 shape.setAttributeNS(null, 'fill', 'green');
 svgDocument.documentElement.appendChild(shape);
  }
 
  /script
  ptesting/p
  /body
  /html
 
  BTW, the JavaScript console is very useful in finding errors. See
 Tools 
  JavaScript Console from the menubar. getSVGDocument() will have
 returned
  null, so likely there was an error for the next line.
 
  Regards,
  Jonathan
 


[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/

* 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/
 




Re: [svg-developers] Firefox problem with SVGPathSegList::replaceItem()

2006-01-07 Thread Jonathan Watt
Hi Jeff

On 1/7/06, Jeff Schiller [EMAIL PROTECTED] wrote:

 I'm writing some code that uses the SVG DOM and I do the following to
 check if the methods/attributes exist:

 1:  var p = document.createElementNS(SVGNS, path);
 2:  if(p.pathSegList.appendItem  p.pathSegList.replaceItem) {
 3:alert(p.pathSegList.appendItem);
 4:alert(p.pathSegList.replaceItem);
 5:  }
 6:  p.pathSegList.appendItem(p.createSVGPathSegMovetoAbs(0,0));
 7.  p.pathSegList.replaceItem(p.createSVGPathSegMovetoAbs(1,1),0);

 In Firefox 1.5, Lines 3 and 4 show those methods as [native code].
 But when execution gets to Line 7, Firefox 1.5 throws the following
 JavaScript exception:

 Error: uncaught exception: [Exception... Component returned failure
 code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED)
 [nsIDOMSVGPathSegList.replaceItem]  nsresult: 0x80004001
 (NS_ERROR_NOT_IMPLEMENTED)  location: JS frame ::

 file:///D:/Profiles/JSCHILL1/My%20Documents/Personal/web/blog/WP1.5/wp-content/themes/something-witty-goes-here/images/svgsnow.js
 :: tick :: line 284  data: no]

 Is the method not implemented in Firefox 1.5?


Correct, that's what NS_ERROR_NOT_IMPLEMENTED means.


http://developer.mozilla.org/en/docs/SVG_in_Firefox_1.5 seems to show
 that these methods ARE implemented, so what's the exception about?


That doc doesn't mention the SVGPathSegList interface at all. There are
multiple levels of interfaces that are accessed through other interfaces,
and it would be impractical to try and list them all. That doc tries to
cover elements and sometimes give pertient information about the direct
interface of those elements.

Regards,
Jonathan

Thanks!
 Jeff





 -
 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









[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/

* 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/
 




Re: [svg-developers] Passing values from HTML to SVG

2006-01-07 Thread Jonathan Watt
Hi Christopher,

It looks like you're exeriencing the same problem that jaychambers just
posted to the list, except that he experienced it in Firefox, while you're
experiencing it in IE+ASV.

At least one problem is that you need to wait until the SVG is loaded before
trying to access it. Calling inithtml() as you do may mean that it is called
too soon, and hence you get your error. To make sure inithtml() is called
only after everything is loaded use an 'onload' attribute on the body tag:

  body bgcolor=white onload=inithtml();

There may be other issues, but that's the one that jumps out at me.

When you get round to it, check out the following page for help if you have
problems getting things working in Firefox:

  http://www.mozilla.org/projects/svg/faq.html

Regards,
Jonathan

On 1/7/06, csharpdotcom [EMAIL PROTECTED] wrote:

 Hello Everybody,

 I am new to this newsgroup, and this is my first post.

 I have been playing around with scripting SVG, but I am having trouble
 transfering data from an HTML form to an embedded SVG document.  At
 http://csharp.com/circles.html I have an HTML form where a single
 number is specified, then I am trying to pick up that numnber from the
 embedded SVG document at http://csharp.com/circles.svg .  The SVG code
 can be seen by clicking on here at the very bottom.  Ignore
 the plaintext tag at the very top, if is appears.

 In order to display the output from the SVG code, I have commented out
 two lines of Javascript for var f = parent.select.document.selface;
 and var face = f.facenum.value; and put in a numerical value.  When I
 uncomment these two lines of code and comment out the fixed value
 of face an error is reported with the
 message 'parent.select.document' is null or not an object.

 Please note that even this disabled version does not appear to work
 properly with Firefox, but needs IE to view it.  Once it has been
 debugged with IE, then the issue of other browsers can be examined.

 At http://csharp.com/specframes.html I used a similar way of
 transfering information from an HTML form to another HTML document in
 the same frame.  Note that as this uses VML, it only works with IE.

 All the examples I have seen of HTML modifying an SVG document using
 Javascript, involve manipulating SVG elements, such as fill color, and
 not transmitting data to Javascript code in the SVG document.  I would
 be most grateful for any advice someone could kindly give me.

 Christopher Sharp
 http://csharp.com





 -
 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









[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/

* 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/
 




Re: [svg-developers] Firefox issues with createElementNS, works in IE

2006-01-06 Thread Jonathan Watt
Hi,

The problem is likely that the SVG document hasn't yet loaded when draw() is
called. Instead of calling it in the script element, call it onload. This
should work I think:

html
body onload=draw();
EMBED NAME=mydoc WIDTH=800 HEIGHT=600 SRC=canvas.svg /
script language=javascript

var svgDocument;

function draw() {
   var svgns = http://www.w3.org/2000/svg;;

   svgDocument = this.document.mydoc.getSVGDocument();
   var shape = svgDocument.createElementNS('
http://www.w3.org/2000/svg','circle');

   shape.setAttributeNS(null, 'cx', 25);
   shape.setAttributeNS(null, 'cy', 25);
   shape.setAttributeNS(null, 'r',  20);
   shape.setAttributeNS(null, 'fill', 'green');
   svgDocument.documentElement.appendChild(shape);
}

/script
ptesting/p
/body
/html

BTW, the JavaScript console is very useful in finding errors. See Tools 
JavaScript Console from the menubar. getSVGDocument() will have returned
null, so likely there was an error for the next line.

Regards,
Jonathan

On 1/6/06, jaychambers [EMAIL PROTECTED] wrote:

 Can any tell me whay is going on here. I have no more hiar left to
 pull out!

 I have a HTML page with some JScript in it, and a .svg.  The SVG look
 like this:

 svg version=1.1 baseProfile=full
 xmlns=http://www.w3.org/2000/svg;
 xmlns:xlink=http://www.w3.org/1999/xlink;
 xmlns:ev=http://www.w3.org/2001/xml-events;
 rect x=1cm y=1cm width=1cm height=1cm /
 /svg

 simple eh`.  just draws a rect.  This work in both IE and FireFox (1.5).

 Now to the HTML page.  I want to use DOM/JScript to dynamically create
 SVG elements .  HEre is my code:

 html
 body
 EMBED NAME=mydoc WIDTH=800 HEIGHT=600 SRC=/canvas.svg /
 script language=javascript
 function draw() {
 var svgns = http://www.w3.org/2000/svg;;
 svgDocument = this.document.mydoc.getSVGDocument();
 var shape = svgDocument.createElementNS('http://www.w3.org/2000/svg',
 'circle');

 shape.setAttributeNS(null, 'cx', 25);
 shape.setAttributeNS(null, 'cy', 25);
 shape.setAttributeNS(null, 'r',  20);
 shape.setAttributeNS(null, 'fill', 'green');
 svgDocument.documentElement.appendChild(shape);
 }
 var blah = draw();
 /script
 ptesting/p
 /body
 /html

 I just want to draw a friggin` circle dynamically Is this a bug in
 Firefox, for a strictness issues with something inncorrect in the code.?

 Anyone, please help









 -
 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









[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/

* 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/
 





Re: [svg-developers] Corecting Javascript for Firefox

2005-12-23 Thread Jonathan Watt
Hi Richard,

On 12/22/05, Richard Pearman [EMAIL PROTECTED] wrote:

 In the hope that my hosting company will sort out encoding for SVGZ (if
 they
 don't I'll find another one when it comes up for re-newal), I decided to
 correct my Javascript so it works with Firefox.  It seemed that the main
 problem was in this function, which is used by pretty well all my
 mouseover,
 mouseout and click events:

 function getDoc(evt) {
 return evt.getTarget().getOwnerDocument()
 }

 Fortunately this is in an external file so Pressumably all I have to do is
 change it and most my JavaScript should work in Firefox.  As far I could
 make out from http://jwatt.org/svg/authoring/#asv-getters-and-setters, I
 should change it to:

 function getDoc(evt) {
 return evt.target.documentElement
 }

 However this gives me an error message in ASV and still doesn't work in
 Firefox.  Can somebody explain what the problem is?


No, not documentElement, it should be ownerDocument. In other words:

function getDoc(evt) {
  return evt.target.ownerDocument;
}

If you really want the documentElement then use something like:

function getDocEl(evt) {
  return evt.target.ownerDocument.documentElement;
}

Okay, I'll fess up. Although the principle (of removing the 'get') shown in
the authoring doc is right, I do have evt.target.documentElement which will
cause an error unless the event was dispatched to the document object.
Sorry, I'll change that now. :-)

Regards,
Jonathan


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



 Yahoo! Groups Sponsor ~-- 
Most low income homes are not online. Make a difference this holiday season!
http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/1U_rlB/TM
~- 

-
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/

* 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/
 




Re: [svg-developers] Re: Does Firefox 1.5 support SVGZ?

2005-12-19 Thread Jonathan Watt
Hi Richard,

Unfortunately Mozilla Firefox 1.5 can't load gzip compressed SVG locally
(that needs to be fixed), but it can load it from a server when served with
the correct HTTP headers. Here are a bunch of random links that should
demonstrate that for you:

  http://www.w3.org/2003/12/svg-xml2003/index.svgz
  http://www.bjoernsworld.de/temp/svg-wg-appreciation-day.svgz
  
http://www.mizzou.edu/~njseef/mygraph.svgzhttp://www.mizzou.edu/%7Enjseef/mygraph.svgz
  
http://www.graphviz.org/cgi-bin/webdot/webdot/graphs/directed/world.dot.dot.svgz

  http://popolon.org/gblog2/wp-content/upload/fleur_en_cours.svgz
  http://www.websitedev.de/svg/vxhtml11.svgz
  
http://www.ba.infn.it/~zito/xml/prova.svgzhttp://www.ba.infn.it/%7Ezito/xml/prova.svgz
  http://www.roitsystems.com/r2v/2005-11-24/Captcha.svg.svgz

and, err, not for the young and innocent :-)

  http://faemalia.net/ArtWorx/SVG/Captivation-Of-A-Youthful-Soul.svgz

Regards,
Jonathan

On 12/19/05, Richard Pearman  [EMAIL PROTECTED] wrote:

 - Original Message -
 From: Jeff Schiller
 To: svg-developers@yahoogroups.com
 Sent: Saturday, December 17, 2005 8:36 AM
 Subject: [svg-developers] Re: Does Firefox 1.5 support SVGZ?

 You've been told many times in this mailing list that Firefox DOES
 INDEED SUPPORT svgz.

 This is one of many things (mostly not relating to SVG) which I've been
 told
 but have yet to see any evidence for.

   Basically the web server needs to tell the
 browser that the content type needs unzipping.

 I know my hosting company seems to be having trouble setting the server
 correctly (perhaps you can get cross with them rather than me).  However
 I'd
 have thought that Firefox should still be able to display SVGZ files
 stored
 on my local computer but I get the same sort of error messages as I do
 when
 I look at my website on line.  Why is this?  I have yet to find any SVGZ
 files on the internet which Firefox can display.  Do you know of any?

 I very much hope that Firefox does support SVGZ files and I will be able
 to
 get people looking at the SVGZ files on my website using Firefox in the
 near
 future.  However I seems that I'm saying that Firefox doesn't support SVGZ

 (or at best there's some issue which I'm not aware of) and pressenting
 evidence to that effect while you're just saying that it does and not
 pressenting any evidence.

 Richard Pearman   http://www.pixelpalaces.com/
 The next stage in the evolution of web comics:
 http://www.onlinecomics.net/pages/details/listing.php?comicID=4415





 -
 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









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



 Yahoo! Groups Sponsor ~-- 
1.2 million kids a year are victims of human trafficking. Stop slavery.
http://us.click.yahoo.com/WpTY2A/izNLAA/yQLSAA/1U_rlB/TM
~- 

-
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/

* 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/
 




Re: [svg-developers] Re: Firefox 1.5 with SVG now officially released (A word of appreciation.)

2005-12-09 Thread Jonathan Watt
Thanks Marjorie. It's very kind of you to say so publicly. It would
certainly be very cool if InstantAtlas could get their content working in
FF. If they need any help I'd be glad to see what I can do.

All the best,
Jonathan

On 12/8/05, Marjorie Roswell [EMAIL PROTECTED] wrote:

 You write beautifully. I appreciate your work, and your clarity of
 writing.
 (I'm also a fan of default on.)

 I'll be joyful when InstantAtlas supports Firefox, and I know they are
 working on it. You once kindly gave some helpful hints, which I forwarded
 on
 to them.


 Note: I once started this site:

 http://svgmapper.blogspot.com

 Haven't touched it for a while.

 I also did this page:
 http://www.svg-whiz.com/wiki/index.php?title=SVG_as_GIS

 Just to give you an idea of where I'm comin' from.

 Appreciatively,

 Margie


 [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









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



 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/1U_rlB/TM
~- 

-
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/

* 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/
 





Re: [svg-developers] Updating Image file

2005-12-09 Thread Jonathan Watt
On 12/10/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 Thanks, I'll try that. What I had tried was:

 svgdoc.getElementById('image').setAttributeNS('xlink:href', 'image.png');

 and that doesn't do anything. It doesn't error, but it doesn't do
 anything.


Strange. In FF 1.5 if you don't provide the expected number of arguments
then you usually get an error. I tested and got

Error: uncaught exception: [Exception... Not enough arguments [
nsIDOMSVGSVGElement.setAttributeNS]  nsresult: 0x80570001
(NS_ERROR_XPC_NOT_ENOUGH_ARGS)  location: JS frame :: javascript:
document.documentElement.setAttributeNS('xlink:href', 'image.png'); ::
TOP_LEVEL :: line 1  data: no]

Not sure why you wouldn't have.

I've thrown up a document to explain what I hope is enough about namespaces
to get people new to them up and running with minimal pain. If it might help
you, see:

  http://developer.mozilla.org/en/docs/SVG:Namespaces_Crash_Course

-Jonathan


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



 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/1U_rlB/TM
~- 

-
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/

* 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/
 




Re: [svg-developers] Re: Firefox 1.5 with SVG now officially released

2005-12-08 Thread Jonathan Watt
Hi Domenico,

I understand your main argument that you think it's too early to release
Mozilla's SVG implementation, and that you think the overall effect will be
to harm SVG on the Web. I just happen to take the opposite view. Clearly
there are people on this list that fall into both camps; some for, some
against.

Some specific comments:

If the 70% figure of rendering success has been realistically set by
 yourself then I don't dispute it, but I randomly visited about 15 of
 the svg links in my bookmarks and got 0% positive results.


I wonder how many of these were a result of problems in the SVG vs. problems
or missing features in Mozilla. Unfortunately so much of the SVG in the wild
falls into the former category it's difficult to determine figures regarding
how much should work, and how much is expected not to.

A big difference between ASV 1 and 2 and FFsvg is that ASV simply
 allowed the kick off, I don't think there were any works prior to
 that, or were there? The scenario is totally opposite for FF


In my opinion SVG has done anything but kick off on the Web. The volume of
SVG out there doesn't even register when compared to mainstream Web content
and that situation has previously shown little sign of change. Personally, I
believe a fundamental reason for this has been the lack of native support. A
lot of people simply won't consider using a technology for which the only
real support is a plug-in with an unknown, but probably small and shrinking
install base. Native support not only eliminates the plug-in barrier, but
for some people I expect it will allay concerns about the technology's
future on the Web. By putting a partial implementation into the hands of the
wider developer community we might give SVG a chance to kick off on the
Web for real - before it's too late. Waiting until a year from now (actually
probably more like 18 months) would certainly be too late I think. We need
that time for new people to start learning about it and begin to use it.
This way some current SVG won't work, yes. But it will bring in a whole new
user base, giving SVG a chance to live and grow rather than wither into
permenant insignificance, on the Web.

Of course in this type of
 society the trend to not listen to older, wiser people, is ever
 galloping.


Not fair! It was widely known that we planned to include our SVG support,
we provided links to test builds and we asked for feedback. We were
listening. We still are. But unfortunatley that doesn't mean we can make
everyone happy, or that we can go back now and turn off the SVG support.

Jonathan,

 In my letter I can read:
 artists and programmers
 artists and technicians
 Can you?


Yes. I read that. I'm not sure why you ask.

You say you (the Mozilla team) poled the community. I've been away
 from the list for a few months, as other developers have. Wouldn't
 have it been more appropriate to make some individual contact, like
 you did when you suggested auditing, and seek personal advice
 like Hi xyz, the implementation is in advanced state, but this and
 that is still missing, do you think it would be blah blah?.


I generally contacted people for one of three reasons; 1) their site
contained an SVG tutorial that taught bad authoring practices (or didn't
mention the basic things that are vital in FF); 2) we got a complaint from a
FF tester that we didn't render the SVG on site X, and it turned out that
site X's SVG was bad; 3) a few other random sites that I felt were high
profile and it would be good to see working for FF 1.5.

In general when I contacted people I always mentioned that the FF release
was expected soon and that our SVG support would be turned on, so those same
people should have been aware of it. I imagine I gave you that information
too, although I don't have those emails to hand ATM. Some people replied to
my emails, and some people (like yourself) even did work on their SVG as a
result. However, you were in the minority. For the most part I never heard
back and nothing changed, or else I got so much resistance that I decided
direct emailing was a poor use of my very limited time. Having talked on and
off the lists for months both about how to make your SVG valid enough to
give FF a fighting chance to render it, and the fact that we were going to
release our SVG implementation, I hoped that awareness was high enough for
people to make their own decisions to test their content or not. If you
haven't been on list for some time that's unfortunate, but it was never
going to be possible to catch everyone.

The
 majority replied yes. Did you take into consideration eventually
 what the minority said? Did you think it was appropriate to sort by
 number instead of by experience level?


We considered what everyone had to say. In general it's hard to guage how
experienced people are, or how representative of existing SVG content
authors they are, but several of the most well known SVG figures were amoung
those that said yes.

I'm not sure 

Re: [svg-developers] Re: Firefox 1.5 with SVG now officially released

2005-12-08 Thread Jonathan Watt
On 12/5/05, domenico_strazzullo [EMAIL PROTECTED] wrote:

 On 12/4/05, Doug Schepers [EMAIL PROTECTED] wrote:
  p.s. Don't confuse Jonathan's politeness for insincerity. He's a
 stand-up
  fellow


Thanks Doug. I appreciate you saying so.

Which I'm not confusing. I think I know how to detect arrogance. And
 of course I appreciate his efforts and dedication, as I already
 said, and I even gave him credits on http://www.dotuscomus.com/svg/
 well upfront (for what it's worth) in spite of an earlier
 manifestation of arrogance which I didn't consider, attributing it
 to over excitement and fatigue.


Appologies if I come across as a bit of an annoying, arrogant prick
sometimes. If I do I guess that's partly due to my often abrupt, to the
point writing style, exacerbated by frequently writing the same things over
and over to different people. Being unintentionally curt certainly doesn't
mean I think of myself as being superior to anyone else though. On the
contrary I'm well aware that many of the people I correspond with have a
great deal more experience of authoring actual SVG content than I do. My
goal is to help SVG grow while minimising the pain felt by content authors
by communicating. No offense is ever intended.


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



 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/1U_rlB/TM
~- 

-
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/

* 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/
 





Re: [svg-developers] getSheet() and FireFox 1.5

2005-12-08 Thread Jonathan Watt
Hi Benjamin,

The .getSheet() syntax is not supported. You have to use the standard
ECMAScript interface .sheet instead (this should work in ASV too). For more
info as to why see:

  http://jwatt.org/svg/authoring/#asv-getters-and-setters

Regards,
Jonathan

On 12/7/05, campin_b [EMAIL PROTECTED] wrote:

 Hi all,

 It seems that the getSheet() Method is not supported in FF1.5, am I
 right ?

 Is there a list of implemented DOM methods/properties on FF 1.5 ?
 If so I will be very happy to have a link to that list.

 Thanks,

 Benjamin






 -
 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









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



 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/u8TY5A/tzNLAA/yQLSAA/1U_rlB/TM
~- 

-
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/

* 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/
 




Re: [svg-developers] getSheet() and FireFox 1.5

2005-12-08 Thread Jonathan Watt
On 12/8/05, Antoine Quint [EMAIL PROTECTED] wrote:

 On 8 déc. 2005, at 11:49, Jonathan Watt wrote:

  The .getSheet() syntax is not supported. You have to use the standard
  ECMAScript interface .sheet instead (this should work in ASV too).
  For more
  info as to why see:
 
http://jwatt.org/svg/authoring/#asv-getters-and-setters

 What is this .sheet accessor?

 Antoine


I assume were talking about the 'sheet' attribute on the LinkStyle
interface, which (*cough*) isn't part of SVG but is useful nontheless.

Jonathan


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



 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/u8TY5A/tzNLAA/yQLSAA/1U_rlB/TM
~- 

-
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/

* 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/
 




Re: [svg-developers] Re: Firefox 1.5 with SVG now officially released

2005-12-01 Thread Jonathan Watt
Hi Demenico,

On 12/1/05, domenico_strazzullo  [EMAIL PROTECTED] wrote:

 Hi,

 I have a few remarks,

 var fnt_size = parseInt(txttoformat.getAttributeNS(null,font-
 size));
 vs
 var fnt_size = parseInt(txttoformat.getAttribute(font-size));

 These both work in Ffx 1.5. I read that

  As pointed out several times already, Mozilla SVG and Batik are
  stricter regarding invalid SVG elements, missing namespaces,
  mimetypes

 Am I missing something? Or someone else is?


Some browsers, Mozilla included, treat the non-NS *attribute* methods as
being equivalent to the NS counterparts passed null. The DOM specs allow
them to do this, but don't prescribe the behaviour, so using the NS methods
for attributes as well as element is safer.

On another note, I am very concerned about the release of the svg
 implementation under it actual state. The implementors seem to worry
 a lot about the validity of the works and not so much about the
 validity of the renderer.


I don't think that's a fair statement. I guess the reason you think that is
because of my authoring doc and posts to this list etc. My concern has been
that the launch of SVG support in Fx 1.5 should be as painless as possible
for SVG content authors. To achieve that I felt it was not only necessary to
fix Firefox bugs, but also to provide fair warning (and fixes) to content
authors regarding the very widespread content errors that will cause SVG
content to fail in Fx, regardless of the completeness of its SVG
implementation. The latter task may have been more visible to most people,
but rest assured, our (my) primary concern and the focus of our work has
been and continues to be the implementation.

I would forward a motion for the removal of the automatic rendering
 ('lax' mode) for the greater public until the implementation is
 complete, not just satisfactory. That is so subjective! The build
 is 1.5, but not in respect to the svg implementation. Only when the
 implementation reaches maturity (1.0) should it be transparently
 integrated.


Complete is also a very subjective word. The SVG specification is very
large, and it's next to impossible to create a truely complete
implementation. Details on what you miss would be helpful.

My worry is
 about the large public looking at those works misrendered or not
 completely rendered, no matter how good or bad they are originally.

I do realize that getting Firefox-svg out is a good mission for the
 svg world and that the time race is an important factor
 strategically, but at the same time a premature release means more
 arm than benefit. I'm very unhappy about it. I know the FF crew were
 using the works for testing.


We've not just been using it for testing. We poled the SVG community asking
whether the SVG support in Fx 1.5 should be on or off by default. The
majority of people replied on. Since then we made it quite clear, I hope,
that we intended it to be on. If you read this list regularly I'm not sure
how you missed that. We have also made custom test builds, and publicised
the betas and release candidates so that people could test the support prior
to this release.

I am, of course, very sorry that you find that the SVG support is not up to
your needs. But as you yourself acknowledge, the decision was not an easy
one, and always going to result in some unhappy people, whichever way we
decided.

I've been asked to audit my works and I
 did so. Now I see improvements, but far from what one has the right
 to expect. The result is that the damage is done to the artists and
 programmers in the SVG community, not to the browser. If you don't
 trust me ask any designer, painter, musician, film maker, writer...
 Would you imagine a theater showing a movie to the millions where
 you randomly get the screen cut in half, tiny rectangles scattered
 all over, the actors all grouped in the top left corner, superposed
 perhaps, or you name it.


Those sound like rather nasty problems. Bug reports with testcases would be
helpful.

Publication is the uppermost step in the
 process of art production and one of its ultimate goals. Who needs
 to be published this way? Is this some kind of a joke? A browser is
 a public publisher. Is this a children's sandbox or a serious
 business? Once again, you don't do that kind of thing in the art
 world!

 Finally, let's not forget that many of the advancements we were able
 to make in svg have been possible thanks to ASV. Like Jonathan says,
 Adobe's DOM extensions were designed to palliate NS 4.7
 deficiencies, at a time when it  was still popular. Let's not spit
 too much in the soup. Many or all of the works we were able to sell
 were only possible because ASV was (is) around.


I'm not sure what you're saying here with regards to Fx 1.5.

In conclusion, I too, applaud and have the greatest consideration
 for the work the Firefox guys are doing, but way way too many svg
 works use SMIL and many use some less common methods of the complete
 DOM2 subset. It's unconceivable 

Re: [svg-developers] Firefox 1.5 with SVG now officially released

2005-11-30 Thread Jonathan Watt
Hi all,

On 11/30/05, Andreas Neumann [EMAIL PROTECTED] wrote:

 It seems like Mozilla Firefox 1.5 with native SVG support is now
 officially released!


It's worth mentioning that Mozilla Firefox 1.5 release candidate 3 became
the official Mozilla Firefox 1.5 release, so if you downloaded rc3 then
you're already using the official release.

Congratulations to the Mozilla SVG team (Alex, Tim, Jonathan, etc.)
 for their great work. To my knowledge this is the first webbrowser
 that implements a good enough SVG and DOM subset to make SVG
 applications without having to rely on the ASV plugin.


Thanks Andreas. :-)

As pointed out several times already, Mozilla SVG and Batik are
 stricter regarding invalid SVG elements, missing namespaces, mimetypes
 and invalid DOM-methods.

 If your own examples fails it might well be the cause that you created
 somehow invalid content - please review Jonathan Watts guidelines:
 http://jwatt.org/svg/authoring/


Absolutely. I know many people who contribute to this list have been fixing
their SVG, but if you haven't already I'd encourage to you read that
document. I'd also like to point out the FAQ and our SVG in Firefox 1.5 wiki
document as other first ports of call if you experience problems with SVG
not displaying as expected.

  http://www.mozilla.org/projects/svg/faq.html
  http://developer.mozilla.org/en/docs/SVG_in_Firefox_1.5

Of course there are also missing bits (patterns, text on path, SVG
 fonts, filters, SMIL animation, etc.) - those are partially addressed
 in the developers builds - and some missing DOM methods.


For a list of supported features see the SVG in Firefox 1.5 wiki document.

  http://developer.mozilla.org/en/docs/SVG_in_Firefox_1.5

Please report bugs to https://bugzilla.mozilla.org/ or
 http://groups.google.com/group/netscape.public.mozilla.svg/


We'd very much appreciate if people who find bugs could do as much of the
bug investigation/narrowing down as they possibly can themselves, and that
bugs are filed in bugzilla. (If in doubt as to whether something is a bug,
the newsgroup is a good place to ask.) This frees us from these tasks and
allows us to concentrate our very limited resources on writing fixes. See

  http://www.mozilla.org/projects/svg/faq.html#reporting-bugs

Many thanks to all those people who have and continue to test and report
problems.

Thanks again to the Mozilla SVG team and please continue your good work!


To help complete/improve the SVG implementation and get it to where we want
it to be, we could always use some more help. We'd like to hear from anyone
that's interested and able to write a bit of SVG, JavaScript, etc., but
*especially* from people competent in C++ who could contribute to the
implementation itself. Also please consider contributing to the SVG and
Mozilla wikis.

  http://svg-whiz.com/wiki/index.php?title=Main_Page
  http://developer.mozilla.org/en/docs/SVG

-Jonathan


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



 Yahoo! Groups Sponsor ~-- 
1.2 million kids a year are victims of human trafficking. Stop slavery.
http://us.click.yahoo.com/WpTY2A/izNLAA/yQLSAA/1U_rlB/TM
~- 

-
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/

* 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/
 




Re: [svg-developers] .nodeValue vs. .data

2005-11-30 Thread Jonathan Watt
Hi Andreas,

They are both part of DOM2, and for Text nodes they are equivalent. In fact
Mozilla implements .nodeValue for such nodes by forwarding to .data.

-Jonathan

On 11/30/05, Andreas Neumann [EMAIL PROTECTED] wrote:

 Hi all,

 I have a question regarding .nodeValue vs. .data

 For setting the content of a text element one can use either
 .nodeValue or .data - which one is correct and standards conform and
 which not?

 Or can one use both methods with not particular advantages/disadvantages?

 examples:

 myText.firstChild.nodeValue = bla
 or
 myText.firstChild.data = bla

 Thanks for any info on that issue,

 Andreas






 -
 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









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



 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/1U_rlB/TM
~- 

-
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/

* 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/
 




Re: [svg-developers] Incorrect display in Firefox 1.5, but validates correct

2005-11-19 Thread Jonathan Watt
Hi,

I've only had a quick look, but you haven't specified units for your CSS
lengths. See

http://jwatt.org/svg/authoring/#css-and-units

for an explaination.

Regards,
Jonathan

On 11/19/05, arjenmeijernl [EMAIL PROTECTED] wrote:

 On http://www.alforto.nl/?cultuur.html are 4 svg pictures that display
 correct in ASV 6 or inkscape. They are correct svg 1.1, says W3C.

 However, Firefox 1.5 does not display them correct. In which direction
 do I have to find the answer? Namespaces???

 Arjen






 -
 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









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



 Yahoo! Groups Sponsor ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/1U_rlB/TM
~- 

-
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/

* 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/
 




Re: [svg-developers] Internet Explorer unable to display pages with SVG

2005-11-08 Thread Jonathan Watt
On 11/8/05, Chris Lilley [EMAIL PROTECTED] wrote:

 svg width=50 height=50 viewBox=0 0 100 100

 you are missing an SVG namespace declaration.

 that certainly stops it displaying in several implementations.


Richard, Chris is right, see http://jwatt.org/svg/authoring/ for a list of
common problems and their solution. Having said that, I haven't heard of
anyone encountering the problem you describe.

-Jonathan


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



 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/1U_rlB/TM
~- 

-
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/

* 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/
 




Re: [svg-developers] XMLHTTP and IE DOM

2005-11-04 Thread Jonathan Watt
Hi Garry,

On 11/4/05, Garry Haywood [EMAIL PROTECTED] wrote:


 while(betaChild!=null){
 alert
 (betachild.getAttribute('col001'))


Watch your spelling! ;-)

-Jonathan


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



 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/1U_rlB/TM
~- 

-
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/

* 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/
 




Re: [svg-developers] Re: XMLHTTP and IE DOM

2005-11-04 Thread Jonathan Watt
On 11/4/05, Garry Haywood [EMAIL PROTECTED] wrote:


 but the real issue how do get object.responseXML into the DOM?


responseXML is a DOM tree. I'm not sure what you mean. I do see another
error though.

 On 11/4/05, Garry Haywood [EMAIL PROTECTED] wrote:

 while(child!=null){
 if(child.nodeName=='beta'){
 var betaChild = child.firstChild;

 while(betaChild!=null){

Not all the child nodes will be element nodes (you'll at least have text
nodes mixed up with them). You should check to make sure that you only call
getAttribute on element nodes:

if (betaChild.nodeType == 1) // element node
alert(betachild.getAttribute('col001'));


 alert
 (betachild.getAttribute('col001'))

 betaChild =
 betaChild.nextSibling;
 }
 }
 child = child.nextSibling;
 }


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



 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/1U_rlB/TM
~- 

-
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/

* 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/
 




Re: [svg-developers] parent is not defined svg/html

2005-11-04 Thread Jonathan Watt
Hi,

On 11/4/05, Erwan TROEL [EMAIL PROTECTED] wrote:

 i embed a svg in an html page
 with the fucntion emitSVG

 in my svg i link a javascript file:
 script xlink:href=../../../init.js language=JavaScript /

 in this javascript file i write
 alert(parent.getURL())

 i have an error message: parent is not defined

 help help i really don't understand why


Adobe removed support for |parent| for a security reason I believe. For some
reason |top| still remains, so use that instead.

alert(top.getURL());

If you are interested in getting scripts to communicate between HTML and
embedded SVG you may find the following examples useful.

http://jwatt.org/svg/demos/scripting-across-embed.html
http://jwatt.org/svg/demos/scripting-across-object.html

-Jonathan


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



 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/1U_rlB/TM
~- 

-
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/

* 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/
 




Re: [svg-developers] Re: XMLHTTP and IE DOM

2005-11-04 Thread Jonathan Watt
So does it work now or is it still broken? If the latter it would be good to
have some for info. Browser, version etc.

On 11/4/05, Garry Haywood [EMAIL PROTECTED] wrote:

 it is probably my confusion 

 I know that the request has been sucessful a) it is tested for and b)
 req.responseText is the text that I was expecting

 however, the firstChild retuns null


Which line?

- so I assumed that I wasn't
 actually acessing the dom tree therefore I assumed that maybe I
 had to append responseXML to the DOM somehow befor I could acess it!!!


Nope.


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



 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/1U_rlB/TM
~- 

-
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/

* 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/
 





Re: [svg-developers] parent is not defined svg/html

2005-11-04 Thread Jonathan Watt
What do you mean it doesn't work yet? Some basic information about where
you're running this script would help a lot.

On 11/4/05, Erwan TROEL [EMAIL PROTECTED] wrote:

 top.getURL() doesn't work yet



 - Original Message -
 From: Jonathan Watt [EMAIL PROTECTED]
 To: svg-developers@yahoogroups.com
 Sent: Friday, November 04, 2005 12:22 PM
 Subject: Re: [svg-developers] parent is not defined svg/html


  Hi,
 
  On 11/4/05, Erwan TROEL [EMAIL PROTECTED] wrote:
 
  i embed a svg in an html page
  with the fucntion emitSVG
 
  in my svg i link a javascript file:
  script xlink:href=../../../init.js language=JavaScript /
 
  in this javascript file i write
  alert(parent.getURL())
 
  i have an error message: parent is not defined
 
  help help i really don't understand why
 
 
  Adobe removed support for |parent| for a security reason I believe. For
  some
  reason |top| still remains, so use that instead.
 
  alert(top.getURL());
 
  If you are interested in getting scripts to communicate between HTML and
  embedded SVG you may find the following examples useful.
 
  http://jwatt.org/svg/demos/scripting-across-embed.html
  http://jwatt.org/svg/demos/scripting-across-object.html
 
  -Jonathan
 
 
  [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 unsubscribe send a message to:
 [EMAIL PROTECTED]
 -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]



 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/1U_rlB/TM
~- 

-
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/

* 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/
 





Re: [svg-developers] Re: XMLHTTP and IE DOM

2005-11-04 Thread Jonathan Watt
On 11/4/05, Garry Haywood [EMAIL PROTECTED] wrote:

 thanks for help wattie


No problem Garry (name's Jonathan BTW).

it's still not working in either IE6 or FF (DPA)

 in IE, it gets through the makeTable() function, but has there
 appears to be no firstChild I can't traverse anywhere


Strange.

in FF, it fails the (req.status == 200) test!
 (which maybe gives us a clue?)


Are you loading this offline? If so Moz will have |req.status == 0| so
change your test to:

if (req.status == 0 || req.status == 200) {
...
}

Or stick in an |alert(req.status)| to find out what the code is. If this
fixes things for FF then note you also definately want the check I gave you
earlier (I see you didn't included it in your amended script). Here it is
again:

if (betaChild.nodeType == 1) // element node
alert(betachild.getAttribute('col001'));

anyway, i repost the script etc



 SCRIPT
 var req;

 function loadXMLDoc(url) {
 req = false;
 // branch for native XMLHttpRequest object
 if(window.XMLHttpRequest) {
 try {
 req = new XMLHttpRequest(); }
 catch(e)
 { req = false; }
 // branch for IE/Windows ActiveX version
 }
 else if(window.ActiveXObject) {
 try {
 req = new ActiveXObject(Msxml2.XMLHTTP); }
 catch(e)
 {
 try
 {
 req = new ActiveXObject(Microsoft.XMLHTTP);
 } catch(e) {
 req = false; } } }
 if(req) {

 req.onreadystatechange = processReqChange;
 req.open(GET, url, true);
 req.send();
 }
 }

 function processReqChange() {
 // only if req shows loaded
 if (req.readyState == 4) {
 // only if OK
 if (req.status == 200) {

 alert(req.responseText);
 makeTable(req.responseXML);
 } else
 {
 alert(There was a problem retrieving the XML
 data:\n + req.statusText);
 }
 }
 }

 function makeTable(xml_doc){

 var child = xml_doc.firstChild


 while(child!=null){

 if(child.nodeName=='beta'){
 var betaChild = child.firstChild;

 while(betaChild!=null){
 alert
 (betaChild.getAttribute('col001'))

 betaChild =
 betaChild.nextSibling;
 }
 }
 child = child.nextSibling;
 }
 }

 /SCRIPT

 the script is being called by a button...
 INPUT TYPE=button VALUE=Test onclick=loadXMLDoc
 ('/v2/xml/regions.xml')

 this is the content of the regions.xml file
 ?xml version=1.0 encoding=utf-8 ?
 beta
 nuts1 col001=UKC col002=North East /
 nuts1 col001=UKD col002=North West /
 nuts1 col001=UKE col002=Yorkshire and The Humber /
 nuts1 col001=UKF col002=East Midlands /
 nuts1 col001=UKG col002=West Midlands /
 nuts1 col001=UKH col002=East of England /
 nuts1 col001=UKI col002=London /
 nuts1 col001=UKJ col002=South East /
 nuts1 col001=UKK col002=South West /
 nuts1 col001=UKL col002=Wales /
 nuts1 col001=UKM col002=Scotland /
 nuts1 col001=UKN col002=Northern Ireland /
 /beta



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



 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/1U_rlB/TM
~- 

-
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/

* 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/
 





Re: [svg-developers] key press event

2005-11-04 Thread Jonathan Watt
On 11/4/05, david dailey [EMAIL PROTECTED] wrote:


 At 03:00 AM 11/4/2005, Arthy wrote:

 Hai ,
 
 I have one problem to be clarrified.is http://clarrified.is there a
 possibility to call a
 function on enter key press in svg (key press) the function should be
 executed on pressing the enter key in keypad.please can any give me a
 suggestion .
 Here's how I've done it:


 svg xmlns=http://www.w3.org/2000/svg;
 xmlns:xlink=http://www.w3.org/1999/xlink;
 width=100% height=100%
 onload=startup(evt)
 
 script
 ![CDATA[

 function startup(evt) {
 O=evt.getTarget()
 svgDocument=O.getOwnerDocument();
 O.setAttribute(onkeypress,key_press(evt))
 }
 function key_press(evt){
 key = evt.getCharCode();
 i = String.fromCharCode(key);
 //...
 }

 You can see a primitive textarea using this stuff at work at
 http://srufaculty.sru.edu/david.dailey/svg/keys4.svg
 (it doesn't backspace across lines but it does do word-wrap; I didn't
 want to do too much since it's a homework assignment for my students
 -- I don't remember if I got it working in Firefox or not.)


Hi Arthy, David,

Since you mention Firefox, David, I can tell you it definately won't work
since you're using ASV extension getters and setters. A few modifications
and it should be fine. Please see the following document for better SVG
authoring practice:

http://jwatt.org/svg/authoring/#asv-getters-and-setters

Here's how you would modify your code.

svg xmlns=http://www.w3.org/2000/svg;
xmlns:xlink=http://www.w3.org/1999/xlink;
width=100% height=100%
onload=startup(evt)

script
![CDATA[

function startup(evt) {
O=evt.target;
svgDocument=O.ownerDocument;
O.setAttribute(onkeypress,key_press(evt))
}
function key_press(evt){
key = evt.charCode;
i = String.fromCharCode(key);
//...
}

Regards,
Jonathan


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



 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/1U_rlB/TM
~- 

-
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/

* 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/
 





Re: [svg-developers] Re: Get the sourcename of the svg file to get the querystring

2005-10-19 Thread Jonathan Watt
In Moz it definately includes the querystring. I just tested it in ASV
3.03to see if it gets this wrong, but in my test it also includes the
querystring.

-Jonathan

On 10/19/05, jophof007 [EMAIL PROTECTED] wrote:

 To quick with answere only the svg file is reported (without the
 querystring).

 J
 --- In svg-developers@yahoogroups.com, Jonathan Watt [EMAIL PROTECTED]
 wrote:
 
  Are you looking for document.URL
 
  On 10/19/05, jophof007 [EMAIL PROTECTED] wrote:
  
   Hi,
  
   Does any one has an example of getting the source name (I think
 it
   must be done with .getSrc () ) of the svg file. The code must
 run in
   the SVG file (running Adobe but a problem that runs fine in
 Firefox
   Beta would also be nice).
   If I have the name of the file. I can get the querystring out of
 it
   (the code for querystring handling is already available).
  
   John
  
 
 
  [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











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



 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/1U_rlB/TM
~- 

-
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/

* 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/
 






Re: [svg-developers] Get the sourcename of the svg file to get the querystring

2005-10-19 Thread Jonathan Watt
Are you looking for document.URL

On 10/19/05, jophof007 [EMAIL PROTECTED] wrote:

 Hi,

 Does any one has an example of getting the source name (I think it
 must be done with .getSrc () ) of the svg file. The code must run in
 the SVG file (running Adobe but a problem that runs fine in Firefox
 Beta would also be nice).
 If I have the name of the file. I can get the querystring out of it
 (the code for querystring handling is already available).

 John



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



 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/1U_rlB/TM
~- 

-
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/

* 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/
 






Re: [svg-developers] what is the firefox equivalent?

2005-10-19 Thread Jonathan Watt
Hi,

I think you need to take a look at the following.

http://jwatt.org/svg/authoring/#asv-getters-and-setters

I'd strongly encourage you to read the rest of that document too.

Regards,
Jonathan

On 10/19/05, Z T Minhas [EMAIL PROTECTED] wrote:

 Hi,

 This works with the adobe plugin, but not with firefox 1.5:
 *event.getCurrentNode().getOwnerDocument();

 *does anyone know what the firefox equivalent for this is?

 Regards



 -
 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











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



 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/1U_rlB/TM
~- 

-
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/

* 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/
 






Re: [svg-developers] SVG and XLink in HTML

2005-10-18 Thread Jonathan Watt
Hi,

I just started a doc on the SVG wiki for inline SVG. See

http://www.google.co.uk/search?q=xslt+line+break

That should help put you on the right track for getting it working in both
IE+ASV and FF. The doc could use some more eyes on it to work out the bugs
and improve it anyway.

Regards,
Jonathan

On 10/17/05, delmundo51 [EMAIL PROTECTED] wrote:

 Hi there,

 i try to create SVG-Code out of xml-files dynamically, which i want to
 embed into HTML-Tables as Code(not as link to a SVG-File).
 Here a little example of a file with svg-Code in HTML:

 html xmlns:svg=http://www.w3.org/2000/svg;
 xmlns:xlink=http://www.w3.org/1999/xlink;
 object CLASSID=clsid:78156a80-c6a1-4bbf-8e6a-3cd390eeb4e2
 id=AdobeSVG/object
 ?import namespace=svg implementation=#AdobeSVG
 headMETA http-equiv=Content-Type content=text/html; charset=UTF-8/
 titleNewscollector/title
 /headbodytable cellspacing=2 cellpadding=2 border=1
 width=610pxtrtd

 svg:svg viewBox=0 0 600 30 height=30px width=600px
 svg:g
 svg:text style=font-family:'Arial Black', Helvetia; font-size:12;
 fill:rgb(0,0,0) text-anchor=start y=20 x=600
 +++ svg:a xlink:href=http://www.yahoo.com;
 text-decoration=underline target=_blank Message 1/svg:a
 .
 +++ svg:a xlink:href=http://www.editix.com;
 text-decoration=underline target=_blank Message 6/svg:a+++
 svg:animateMotion begin=0 dur=10 path=M 0 0 -1000 0
 repeatDur=indefinite/
 /svg:text
 /svg:g/svg:svg

 /td/tr/table/body/html

 Unfortunately the hyperlinks are not working here, as i have to
 activate the xlink namespace somehow(in addition to
 'xmlns:xlink=http://www.w3.org/1999/xlink;')?
 As well, the file works in IE-browser, but not in Firefox?

 Any help or hints would be appreciated.

 Regards,

 Rolf










 -
 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










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



 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/1U_rlB/TM
~- 

-
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/

* 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/
 





Re: [svg-developers] getClientX() and getBBox() not in Firefox 1.5?

2005-10-17 Thread Jonathan Watt
This is a very unfortunate problem. :-(

On 10/17/05, Jérôme Tricand de la Goutte [EMAIL PROTECTED] wrote:

 Hi Jeff,

 On FF 1.5, you can't also do, for example :

 var myObj=document.createElementNS(NameSpace, 'rect')
 myObj.setAttribute('x',20)
 myObj.setAttribute('y',20)
 myObj.setAttribute('width',20)
 myObj.setAttribute('height',20)
 document.getElementById('WhereIputRects').appendChild(myObj)


Rendering is asynchronous so at the point in time the following line is
called the 'rect' probably won't have been rendered. You could try calling
document.documentElement.forceRedraw() here, but I don't think forceRedraw
works properly either. :-(

var bb=myObj.getBBox()

 Is it the same bug?

 Cheers

 Jérôme



 Jeff Rafter wrote:

 getBBox() is also supported, although there does seem to be something
 buggy about it. I haven't troubled to track it down, but I think it only
 works on visible, rendered objects.
 
 
 
 Yep, there is a problem in that you have to wait until *after* onload...
 but not in onload. So you have to settimeout in onload and hope that
 everything is rendered. So there is not a safe time to really check
 this per se... it may be right, it may not be for that brief startup
 moment. I believe that there is a bug filed on this already.
 
 Cheers,
 Jeff Rafter
 
 
 
 -
 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 unsubscribe send a message to:
 [EMAIL PROTECTED]
 -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]



 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/1U_rlB/TM
~- 

-
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/

* 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/
 






Re: [svg-developers] node from id

2005-10-17 Thread Jonathan Watt
Hi maiko,

JavaScript isn't a strongly typed language, so you don't have to cast or
anything like that. You just use the interface you need:

var myItem = document.getElementById('myItemId');
myItem.removeChild(...);

-Jonathan

On 10/17/05, osaka minami [EMAIL PROTECTED] wrote:

 hi,

 i am wondering what the quickest way is to get a node
 reference out of an element accessed by
 .getElementById(), let's say i want handle myItem as a
 node where myItem =
 document.getElementById('myItemId') in order to
 perform a removeChild() on it.

 it's an easy thing when i have an event on that
 object, my node is just evt.target and easy to
 process.

 any idea, or am i just not seeing the trees in the
 forest?...

 thank you,

 maiko



 ___
 To help you stay safe and secure online, we've developed the all new
 Yahoo! Security Centre. http://uk.security.yahoo.com



 -
 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












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



 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/1U_rlB/TM
~- 

-
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/

* 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/
 






Re: [svg-developers] node from id

2005-10-17 Thread Jonathan Watt
On 10/17/05, osaka minami [EMAIL PROTECTED] wrote:

 well i just found

 document.getElementById('myItemId').parentNode.removeChild(
 document.getElementById('myItemId));


Ah, I see. I hadn't understood it was the parent node you wanted.

that's a wired logic...

 maiko

 hi,
 
 i am wondering what the quickest way is to get a node
 reference out of an element accessed by
 .getElementById(), let's say i want handle myItem as
 a
 node where myItem =
 document.getElementById('myItemId') in order to
 perform a removeChild() on it.
 
 it's an easy thing when i have an event on that
 object, my node is just evt.target and easy to
 process.
 
 any idea, or am i just not seeing the trees in the
 forest?...
 






 ___
 Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with
 voicemail http://uk.messenger.yahoo.com



 -
 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











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



 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/1U_rlB/TM
~- 

-
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/

* 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/
 






Re: [svg-developers] node from id

2005-10-17 Thread Jonathan Watt
On 10/17/05, david dailey [EMAIL PROTECTED] wrote:

 At 08:24 AM 10/17/2005, Doug wrote:
 That way, you're only hitting the DOM to find the element once, instead
 of
 twice. gEBI is a rather expensive method call, I would think, especially
 on
 large documents (unless the implementation caches a hash table of all the
 ids).

 Interesting -- I would take this to mean that if I'm creating a whole
 bunch of stuff dynamically -- where those things might, later on,
 change, then it might be best to maintain, in parallel, a JavaScript
 array of all the things (and their attributes). It would be redundant
 in terms of storage and probably chew up some memory allocation from
 the browser, but I suppose that is relatively cheap in comparison to
 the time factor. (I have noticed that when I pack more than a few
 hundred animated things into a page the browser gets sleepy.)

 Does that seem sensible?

 David


Mozilla maintains a hash table. I'd imagine most other browsers would do the
same, but I could be wrong.


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



 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/1U_rlB/TM
~- 

-
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/

* 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/
 






Re: [svg-developers] Firefox generate polygon from javascript

2005-10-16 Thread Jonathan Watt
Hi Jon,

I'd suggest for now you use setAttributeNS(null, 'p', 'value') since I
don't think the SVGPointList interface is supported by ASV. It just makes
things a bit more portable. Having said that:

On 10/16/05, Jon Saints [EMAIL PROTECTED] wrote:

 Simple question from a newbie: How can I create an SVG
 polygon in mozilla firefox using javascript?

 So far I have:
 var poly =
 document.createElementNS(http://www.w3.org/2000/svg;,
 polygon);

 What should I put inside poly.points.appendItem( ) to
 add points?


An SVGPoint created using

var p = document.documentElement.createSVGPoint();
p.x = 10;
p.y = 10;
poly.points.appendItem(p);

http://www.w3.org/TR/SVG/coords.html#InterfaceSVGPointList
http://www.w3.org/TR/SVG/coords.html#InterfaceSVGPoint


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



 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/1U_rlB/TM
~- 

-
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/

* 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/
 






Re: [svg-developers] Re: Re: setAttributeNS is dumb,dumb,dumb!

2005-10-06 Thread Jonathan Watt
On 10/6/05, Jim Ley [EMAIL PROTECTED] wrote:


 Jonathan Watt [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  On 10/6/05, Richard Smith [EMAIL PROTECTED] wrote:
  The problem is, browsers (such as Mozilla) decided long
  ago to make a consistant stand.

 Unfortunately not, Mozilla's DOM created from text/html documents are
 namespace aware (you can create and it will render elements from other
 understoof namespaces) however here createElement works exactly as was
 requested.


HTML documents implement all of DOM 2, so even though HTML is not
namespaced, you can create namespaced element using the namespace aware
methods, sure. And since you aren't dealing with a namespaced document,
plain createElement will create a non-namespaced HTML element that works in
that document, sure.

So Mozilla's stand is far from consistent, with text/html documents
 createElement works as the OP wants, with application/xhtml+xml or
 image/svg+xml createElement does not work how the OP wants despite the DOM
 being equivalently namespace aware.


The difference is that text/html is plain (namespace ignorant) HTML. You
aren't dealing with a namespaced document so you use createElement. On the
other hand application/xhtml+xml is XHTML. In this case you're dealing with
a namespaced document so you need to use createElementNS. When I said
consistent I meant consistant across all namespaced XML. The above
behaviour doesn't contradict this for me.

-Jonathan


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



 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/1U_rlB/TM
~- 

-
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/

* 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/
 






Re: [svg-developers] Re: setAttributeNS is dumb,dumb,dumb!

2005-10-06 Thread Jonathan Watt
On 10/6/05, Robin Berjon [EMAIL PROTECTED] wrote:

 Jonathan Watt wrote:
  But what if you go against these
  instructions? What if you use createElement instead of createElementNS
 in
  your SVG documents? What should happen? Is it possible that it could
 create
  an element in the same namespace as the element you called it on? Well
 yes.
  Probably it is. The specifications don't say what the namespace ignorant
  methods should do. That's why it says not to use them. (Probably the DOM
 WG
  when discussing what should happen couldn't come to an agreement, so
 they
  left it unspecified, making it possible to get into the mess we find
  ourselves in now.)

 [sfx: coughing bordering on choking]


Careful Robin. I want a SVG 1.1 errata, so don't go dying on me! :-)

From the DOM 3 Core spec: A new Element object with the nodeName
 attribute set to tagName, and localName, prefix, and namespaceURI set to
 null. That's what createElement() returns. For setAttribute() things
 are less directly limpid, but it still says To set an attribute with a
 qualified name and namespace URI, use the setAttributeNS method.


What DOM 3 Core spec? Ooooh...DOM 3 Core is finally a REC!! I don't know
how that slipped under my radar. Well, what I said is correct for DOM 2
Core. I just hadn't noticed DOM 3 Core had arrived (some 18 months ago or so
no less) and set all this in stone. Probably because I'm busy with SVG 1.1,
which has DOM 2 as its normative reference.

So, basically everyone should read Robin's post. This decision has been
made, and there's no chance this will change now, for better or for worse.
We're going to have to get used to it.


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



 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/1U_rlB/TM
~- 

-
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/

* 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/
 





Re: [svg-developers] Ego Games (was: setAttributeNS is dumb,dumb,dumb!)

2005-10-06 Thread Jonathan Watt
On 10/7/05, Doug Schepers [EMAIL PROTECTED] wrote:

 In fact, none of this is new; I told you about the issue on your own
 svg-and-the-dom list *2 years* ago [1]. You were warned long before you
 created the content that you are now claiming FF breaks.


Oh, now that *is* interesting. *Very* interesting.


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



 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/1U_rlB/TM
~- 

-
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/

* 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/
 






Re: [svg-developers] Re: Ego Games (was: setAttributeNS is dumb,dumb,dumb!)

2005-10-06 Thread Jonathan Watt
On 10/7/05, Francis Hemsher [EMAIL PROTECTED] wrote:

 Myself, being accurately accused as an ego game player, would like to
 say that developers do not have a need to be suckled to what you
 purists are about.


Purists? What is a purist? Someone who has the common sense to write code
that will work now and in the future it seems. Such small changes, but oh,
the headaches they would have saved! Eh Francis?

Who gives a shit what you've 'told us', we're too fucking busy trying
 to make our stuff work today.


So clearly there's no point in corresponding with you if your to busy to
listen. Putting that advice into practice would have required next to zero
extra time.

f.


 --- In svg-developers@yahoogroups.com, Jonathan Watt [EMAIL PROTECTED]
 wrote:
  On 10/7/05, Doug Schepers [EMAIL PROTECTED] wrote:
  
   In fact, none of this is new; I told you about the issue on your own
   svg-and-the-dom list *2 years* ago [1]. You were warned long before
 you
   created the content that you are now claiming FF breaks.
  
 
  Oh, now that *is* interesting. *Very* interesting.
 
 
  [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











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



 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/1U_rlB/TM
~- 

-
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/

* 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/
 





Re: [svg-developers] Re: setAttributeNS is dumb,dumb,dumb!

2005-10-06 Thread Jonathan Watt
On 10/6/05, Francis Hemsher [EMAIL PROTECTED] wrote:

 I'm willing to meet MOZ halfway...If they recognize that, not just
 myself, but many others need a means of FF accepting their current
 ASV efforts, not totally ignoring their creations.


I'll be frank. I'm a little pissed of here. I don't mind taking part in
genuine discussions, and answering genuine questions like benamou and
richard's, but this just gets on my nerves. Several people have gone to
considerable lengths to explain why this shouldn't and won't happen. Several
people have taken the time to write you code that will provide you with a
means to get your content working in standards compliant SVG
implementations. But you've decide you're above all that and can ignore
everyone's efforts and input. Have you even read what people have written,
or looked at the code they took the time to write for you?

The DOM specification is clear. We will not be breaking it for the reasons
that have already been made clear. I think it's very interesting that you
ignored the advice you were given two years ago to prepare for the future by
using the correct namespace aware methods. Now you're reaping the cost of
your anti future stance. Don't come crying asking moz to meet you half
way. Is it regretable that much of the content already out there that has
been written to ASV rather than the standards won't work in Moz? Yes. It is.
I'm sorry for everyone out there who genuinely didn't know any better when
the wrote for ASV. But unfortunately the situation is now stuck as it is.

As well as contributing my unpayed time to help improve MozSVG, I've spent a
lot of my own time helping authors get their SVG to conform to the standards
and work cross-browser. I've also spent time writing docs explaining
potential problems and how author's can resolve them. Many others have, and
continue to do the same. How about you do something positive here and help
spread awareness of the issues so others don't fall into the trap you did
Francis? How about you at least follow and point out the few pieces of
advice at:

 http://jwatt.org/svg/authoring/

to others? It will be a lot more constructive and helpful for the success of
SVG than your current stance. At lease stop with the rude, antagonistic,
abrasive and inflamitory emails that have come to be your hallmark. All of
this no doubt turns away people who come to this list still not sure if SVG
is for them, and in the long run it harms the success of SVG.

If MOZ incorpoates a parsing process that recognizes this, then I
 will bust my butt to work with them on the browser/viewer
 communication, and probably help a hell of lot in that area.


What's wrong with the browser/viewer communication, and in what way could
help with it?

Otherwise, I will not consider FireFox as an environment for my work
 at this time.


That's your choice. Others won't make the mistake of throwing away almost
100 million potential viewers because they had to make some fairly trivial
changes to their code. (search and replace!)

Regards,
Jonathan

Regards,
 Francis




 --- In svg-developers@yahoogroups.com, Jonathan Watt [EMAIL PROTECTED]
 wrote:
  On 10/6/05, Robin Berjon [EMAIL PROTECTED] wrote:
  
   Jonathan Watt wrote:
But what if you go against these
instructions? What if you use createElement instead of
 createElementNS
   in
your SVG documents? What should happen? Is it possible that it
 could
   create
an element in the same namespace as the element you called it
 on? Well
   yes.
Probably it is. The specifications don't say what the
 namespace ignorant
methods should do. That's why it says not to use them.
 (Probably the DOM
   WG
when discussing what should happen couldn't come to an
 agreement, so
   they
left it unspecified, making it possible to get into the mess
 we find
ourselves in now.)
  
   [sfx: coughing bordering on choking]
 
 
  Careful Robin. I want a SVG 1.1 errata, so don't go dying on me! :-
 )
 
  From the DOM 3 Core spec: A new Element object with the nodeName
   attribute set to tagName, and localName, prefix, and
 namespaceURI set to
   null. That's what createElement() returns. For setAttribute()
 things
   are less directly limpid, but it still says To set an attribute
 with a
   qualified name and namespace URI, use the setAttributeNS method.
  
 
  What DOM 3 Core spec? Ooooh...DOM 3 Core is finally a REC!! I
 don't know
  how that slipped under my radar. Well, what I said is correct for
 DOM 2
  Core. I just hadn't noticed DOM 3 Core had arrived (some 18 months
 ago or so
  no less) and set all this in stone. Probably because I'm busy with
 SVG 1.1,
  which has DOM 2 as its normative reference.
 
  So, basically everyone should read Robin's post. This decision has
 been
  made, and there's no chance this will change now, for better or
 for worse.
  We're going to have to get used to it.
 
 
  [Non-text portions of this message have been removed]





 -
 To unsubscribe

Re: [svg-developers] Re: setAttributeNS is dumb,dumb,dumb!

2005-10-06 Thread Jonathan Watt
On 10/7/05, Francis Hemsher [EMAIL PROTECTED] wrote:

 hai, Jonathan


Hey.

Fistly, I am appreciative that you didn't respond under the ego
 thingy. Secondly, off to the aside, I respect your comments, but I
 don't yet place you in sainthood of SVG(maybe later after we are all
 fat and sassy).


Heh. Good, good, I wouldn't want you to do that. There are a lot others that
would be far more deserving.

You are involved with some folks that have disappointed us in the
 past. It would make me nauseous to recount how moz has fucked me
 over in the past 10 years by promises unkept.


I'm sorry to hear that. Would you mind cutting out some of the profanity
though?

There is no way I will deal with them until I am assured they will
 not wilt by needs of developers nor competiton.


No chance we'll change this. It's fixed, and according to the standards.

Also, Jonathan, I don't care if your are pissed...I'm pissed, but I
 don't expect anyone to loose any sleep over it.


Good policy, and on that note I'm off to bed. :-)

-Jonathan


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



 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/1U_rlB/TM
~- 

-
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/

* 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/
 






[svg-developers] Firefox 1.5 beta 2 released

2005-10-06 Thread Jonathan Watt
Firefox 1.5 beta 2 has been released. This will be the final beta
before 1.5proper. Despite its beta label, this build should have
good stability, so
I'd encourage everyone to take it for a spin. Those of you who have beta 1
installed should be able to use the software update feature to upgrade to
beta 2 without having to download a new installer. Everyone else can
download a beta 2 installer from.

http://www.mozilla.org/projects/firefox/

Regards,
Jonathan


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



 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/1U_rlB/TM
~- 

-
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/

* 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/
 






Re: [svg-developers] Re: DOM Nodelist whitespace

2005-09-21 Thread Jonathan Watt
Hi Martin,

On 9/21/05, Martin Honnen [EMAIL PROTECTED] wrote:
 
 The W3C DOM would suggest to use e.g.
 childNode.nodeType == Node.ELEMENT_NODE


Actually I'm not sure it does require Node to be a globally exposed object. 
That's why I used childNode.ELEMENT_NODE since it does require that these 
constants are available on all node instances.

but while Mozilla exposes Node and Node.ELEMENT_NODE I don't think
 that Adobe SVG viewer (3.x) for instance does that. Nor does IE for
 instance when you script HTML. The latter is of course not relevant to
 SVG scripting but for me it is easier to write DOM script in one way
 that I think works in many different implementations instead of trying
 to adapt to particular implementation. That is why I usually avoid
 using e.g. Node.ELEMENT_NODE so far and have the number it represents
 in the code.


Yes, I thought there would be implementations that wouldn't expose Node 
globally which is why I didn't use it.

What you suggest, childNode.ELEMENT_NODE, is not supported in Adobe
 SVG viewer either. Nor in other DOM implementations I know, beside
 Mozilla's DOM implementation.


This *really* surprised me. Constants are hardly something that are 
difficult to implement!! I assumed that if someone can implement .nodeType, 
the would surely have implemented the constants too. If I thought any 
implementers might have had difficulty with them it would have occured to me 
that I should have tested before sending that email. ;-)

Anyway, thanks for putting me right on the current status of implementations 
out there.

-Jonathan


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



 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/1U_rlB/TM
~- 

-
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/

* 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/
 




Re: [svg-developers] Re: DOM Nodelist whitespace

2005-09-21 Thread Jonathan Watt
On 9/21/05, Martin Honnen [EMAIL PROTECTED] wrote:

 --- In svg-developers@yahoogroups.com, Cameron McCormack
 [EMAIL PROTECTED] wrote:
  Martin Honnen:
   What you suggest, childNode.ELEMENT_NODE, is not supported in Adobe
   SVG viewer either. Nor in other DOM implementations I know, beside
   Mozilla's DOM implementation.
 
  This works in Batik. It should work in all conformant viewers, AFAICT,
  since those constants are members of the Node interface, which all of
  the DOM nodes should implement.

 But they are static members of the Node interface, so in both the Java
 binding and the ECMAScript binding
 Node.ELEMENT_NODE
 should work to comply with the W3C DOM specification:


Node is an interface, not an object, and I don't know of any requirements to
expose a global objects with the same names as an interfaces like this.

http://www.w3.org/TR/DOM-Level-2-Core/ecma-script-binding.html
 http://www.w3.org/TR/DOM-Level-2-Core/java-binding.html
 but I don't see any requirement in there that instances of nodes need
 to have these constants as properties/members.


All objects that implement the Node interface must expose all it's
constants, attributes and methods. As you can see in
ecma-script-binding.html the constants are part of the Prototype Object
Node which seems to indicate they could be made available by all ECMAScript
Node objects using the ECMAScript prototype mechanism.


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



 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/1U_rlB/TM
~- 

-
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/

* 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/
 




Re: [svg-developers] Re: Re: DOM Nodelist whitespace

2005-09-21 Thread Jonathan Watt
On 9/21/05, Jim Ley [EMAIL PROTECTED] wrote:


  All objects that implement the Node interface must expose all it's
  constants, attributes and methods. As you can see in
  ecma-script-binding.html the constants are part of the Prototype Object
  Node which seems to indicate they could be made available by all
  ECMAScript
  Node objects using the ECMAScript prototype mechanism.

 But they are Host objects, so there is no requirement to have a prototype
 mechanism of any Sort.


I was talking about ECMAScript objects, in which case the logical way to do
this would seem to be to use ECMAScripts prototype mechanism. I didn't say
this was a requirement. The only requirement is to implement the interface
at:

http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-1950641247

-Jonathan


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



 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/1U_rlB/TM
~- 

-
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/

* 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/
 





Re: [svg-developers] Re: DOM Nodelist whitespace

2005-09-20 Thread Jonathan Watt
On 9/20/05, Martin Honnen [EMAIL PROTECTED] wrote:
 
 var childNodes = someElement.childNodes;
 for (var i = 0; i  childNodes.length; i++) {
 var childNode = childNodes[i];
 if (childNode.nodeType == 1) { // element node
 // process element node if you want
 }
 else if (childNode.nodeType == 3) { // text node
 // process text node if you want
 }
 }
 


Why not loose the comments and use the self commenting constants?

if (childNode.nodeType == childNode.ELEMENT_NODE) {
...
}
else if (childNode.nodeType == childNode.TEXT_NODE) {
...
}


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



 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/1U_rlB/TM
~- 

-
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/

* 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/
 




Re: [svg-developers] IE won't load svg as object inside html

2005-09-02 Thread Jonathan Watt
Hi

On 9/2/05, stig_kronback [EMAIL PROTECTED] wrote:
 
 object
 data=http://localhost/svg_dev/diagrams/diagram2209.svg; width=1000
 height=500 type=image/svg+xml/
 


This probably isn't the cause of your problem in IE, but note that the HTML 
'object' element is not an empty element. In other words you should close it 
with /object and not using a final slash in your opening object tag. 
Although your example may appear to work in Firefox, if you put any content 
after the object tag as you have it now, you'll find it doesn't show. This 
is because Firefox (and possibly other browsers, I don't know) won't 
recognise that you've closed the 'object' element, so it thinks the content 
that follows it is actually alternative content.

I hope that helps eliminate some future problems if not your current one. 
;-)

-Jonathan


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



 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/1U_rlB/TM
~- 

-
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/

* 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/
 





Re: [svg-developers] Re: getURL parameter type mismatch error within handleEvent on ASV using prototypes

2005-08-24 Thread Jonathan Watt
Hi Klaus,

I think there are issues with using the same object as both an event
handler and getURL callback. I probably caught that in the #svg
channel on irc.freenode.org. Try googling svg.jibbering.com to see if
the logs have any useful info.

On 8/24/05, arosyada [EMAIL PROTECTED] wrote:
 Hi
 in line :
 addEventListener(click,this,false)
 'this' will be handled by 'Strange.prototype.handleEvent'
 
 but in line :
 getURL(strange.svg,this);
 'this' refers to 'Strange'
 
 maybe you can use something like :
 getURL(strange.svg,this.callback);
 
 Strange.prototype.callback = function(response){
 }
 
 for addEventListener, in ASV 'this' will refer to the object, but in
 CSV and Batik, 'this' refers to js 'Function' native object.


Hi amri,

Did you test this? The 'this' keyword should be a reference to the
Strange object in both cases, and from my quick test in Batik 1.6 this
seems to be the case. (I haven't tested CSV.)


 amri
 
 --- In svg-developers@yahoogroups.com, Klaus Förster
 [EMAIL PROTECTED] wrote:
  are there any know issues with using getURL in combination with
  prototypes, handleEvent and operationComplete in ASV3/6? the
 following
  code yields a parameter type mismatch error for getURL
 passing this as
  callback-function argument and i don't see a reason why it should ;-
 )
 
  strange.svg:
  svg
  script type=text/javascript![CDATA[
  function Strange() {
   document.getElementById(r).addEventListener
 (click,this,false);
  }
  Strange.prototype.handleEvent = function(evt) {
   getURL(strange.svg,this);
  }
  Strange.prototype.operationComplete = function(req) {
   alert(req.success);
  }
  new Strange();
 
  ]]/script
  rect id=r x=20 y=20 width=40 height=30 /
  /svg
 
  any ideas how to solve this?
  klaus
 
 
 
 
 
 
 -
 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
 
 
 
 
 
 



 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12ht0gfch/M=362131.6882499.7825260.1510227/D=groups/S=1706030389:TM/Y=YAHOO/EXP=1124888407/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy/a./font
~- 

-
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/

* 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/
 




Re: [svg-developers] Help with SkewY for newbie!

2005-08-12 Thread Jonathan Watt
Hi,

Skew applies to the coordinate system (as with any transform), not
just the object. The skewX will be shifting the rectangle too, it's
just that the 'y' attribute is so close to zero it isn't so noticable.
Set 'y' to 588 or something and apply/remove the skewX and you'll see
what I mean.

If you don't want to move the rectangle you can set a translate
transform instead of x and y attributes on the rect. E.g.:

rect width=12 height=20 transform=translate(588,6) skewY(20)
stroke-width=1 stroke=navy fill=#FF/

-Jonathan

P.S. Note I removed your 'style' attribute and used the 'stroke-width'
attributes directly. It's best to avoid style whenever possible.



On 8/12/05, P Ramesh [EMAIL PROTECTED] wrote:
 Hi,
 
 I have the following code:
 
 svg id=root width=700 height=400
 g id=xBtn
 rect x=544 y=0 width=32 height=32 style=stroke-
 width:1;stroke:navy;fill:white/
 rect x=552 y=6 width=12 height=20 style=stroke-
 width:1;stroke:silver;fill:#FF/
 rect x=552 y=6 width=12 height=20 transform=skewX(20)
 style=stroke-width:1;stroke:navy;fill:#FF/
 /g
 g id=yBtn
 rect x=580 y=0 width=32 height=32 style=stroke-
 width:1;stroke:navy;fill:white/
 rect x=588 y=6 width=12 height=20 style=stroke-
 width:1;stroke:silver;fill:#FF/
 rect x=588 y=6 width=12 height=20 transform=skewY(20)
 style=stroke-width:1;stroke:navy;fill:#FF/
 /g
 
 /svg
 
 When I run this in IE6 with ASV3, the skewX transform works fine but
 the skewY shifts the rectangle.
 
 Can anyone please point out the mistake?
 
 Many thanks in advance,
 
 Ramesh
 
 
 
 
 
 -
 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
 
 
 
 
 
 
 



 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hmkjo34/M=362329.6886308.7839368.1510227/D=groups/S=1706030389:TM/Y=YAHOO/EXP=1123875778/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
Fair play? Video games influencing politics. Click and talk back!/a./font
~- 

-
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/

* 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/
 




Re: [svg-developers] Re: Detect native SVG support

2005-07-28 Thread Jonathan Watt
First off, I've noticed that my suggested script doesn't work in IE6
since it doesn't seem to implement createElementNS. To prevent a
script error I'll revise my script to:

var hasNativeSVG = false;
try {
  if (document.createElementNS('http://www.w3.org/2000/svg','svg').width)
hasNativeSVG = true;
} catch (e) { /* ignore exception */ };


On 7/28/05, Holger Will [EMAIL PROTECTED] wrote:
 Hi Jonathan,
 
 in most cases i tend to favor the objectalternate content/object -
 syntax, which works without script.

Yup, but John asked for a script, so that's what I was trying to do.
Also the object approach will not differentiate between plug-in and
native support.

 i've tried the following without success, and i wonder if the behavior
 is specified like this or if its a bug.
 object ... 
 img ... onload=alert('SVG not supported')/
 /object

I thought you were trying not to rely on script support. j/k ;-)

 THIS DOES NOT WORK !
 the onload allways gets fired. is this right? do html clients allways
 load both the objects content and the alternate content ?
 is there another event that can be used ? is there any other specified
 way to determin if object renders the original content or the alternate
 content ?

Hmm, I'm not sure. That the onload get's evaluated seems like a bug to me.

-Jonathan


-
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/

* 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/
 




Re: [svg-developers] Re: Detect native SVG support

2005-07-28 Thread Jonathan Watt
Hi Mark,

You're quite right of course. This would be the *real* way to do it,
and Mozilla happily returns true for both tests. Opera doesn't support
scripting of SVG (yet) I believe, so the test won't work for it, but
as far as *script* testing goes this is definately the way to do it.

Thanks!
Jonathan


On 7/28/05, Mark Birbeck [EMAIL PROTECTED] wrote:
 Dear all,
 
 We shouldn't really have to check for the existence of methods, etc. An HTML
 DOM that can have SVG inline should really return true for one of:
 
   document.implementation.hasFeature(org.w3c.dom.svg, 1.0)
 
 or:
 
 
 document.implementation.hasFeature(http://www.w3.org/TR/SVG11/feature#SVG;,
 1.1)
 
 I haven't tried it, but I would say that's what Opera and Mozilla _should_
 provide (and may well do).
 
 Regards,
 
 Mark


-
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/

* 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/
 





Re: [svg-developers] Re: Detect native SVG support

2005-07-28 Thread Jonathan Watt
I'm told that we are doing the right thing, and that not render
doesn't mean not parse. Alternative content should still appear in
the DOM as usual, and any img elements should have their content
loaded. Hence the onload should fire. It seems a bit counter to what
you'd expect, but there you go.

On 7/28/05, Holger Will [EMAIL PROTECTED] wrote:
 i dont know what ive tested last time, but this indeed seems to work in
 IE and Opera, so this is probably  a bug in mozilla,
 in which component would i post this bug ?


-
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/

* 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/
 




Re: [svg-developers] Native mozilla svg onclick event only activates once

2005-07-27 Thread Jonathan Watt
Hi, can you submit a bug reports using the form here:

  https://bugzilla.mozilla.org/enter_bug.cgi?product=Corecomponent=SVG

please? It would also be excellent if you could attach a reduced
testcase (the simplest SVG document that still demonstrates the
problem) on the bug after you've filed it.

Thanks!
-Jonathan


-- Forwarded message --
From: tomobbe [EMAIL PROTECTED]
Date: Jul 22, 2005 5:49 PM
Subject: [svg-developers] Native mozilla svg onclick event only activates once
To: svg-developers@yahoogroups.com


I have been developing a GUI for a website recently and have come
across  a problem. The GUI is a series of 4 iframes, the 1st of which
loads with SVG content which contains many circle /  elements each
with an onclick event to change the src value of the the 2nd iframe.
This is fine, and works in IE with ASV however in Deer Park Alpha 2
(Firefox 1.1 pre-release) the onclick event works for one circle, and
then another, but never lets me reload something thats been reloaded
once before.

Further investigation has shown me that multiple alert() commands
work, I can click that many times. My onclick code is as follows.

circle cx=638 cy=836 r=1 fill=white
onclick=top.document.getElementById('map_info').src='/mini_map/mini_map_info.php?sid=198';
/

The other circles are similar just with different cx, cy and sid in
the link. Any ideas?

Thanks




-
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 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/

* 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/
 





Re: [svg-developers] Detect native SVG support

2005-07-27 Thread Jonathan Watt
Perhaps something like

  var hasNativeSVG =
document.createElementNS('http://www.w3.org/2000/svg','svg').viewBox ?
true : false;

will do what you want? If the implementation doesn't support SVG, then
the element it creates won't have a 'viewBox' property. There's
probably a lighterweight way of doing this, but I haven't thought
about it too deeply. ;-)


On 7/23/05, jophof007 [EMAIL PROTECTED] wrote:
 Hi,
 
 Does anyone has a solution on detecting native svg support. Deer park
 Alpha 2 supports native svg. How can a client javascript detect that
 deerpark alpha 2 is running or how can a client javascript detect that
 native svg support is available?
 
 We like to make our diagram editor native svg compliant in
 open-modeing (http://open-modeing.sourceforge.net).
 
 Thanx in advance.
 
 John
 
 
 
 
 -
 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 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/

* 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/
 




Re: [svg-developers] Re: Detect native SVG support

2005-07-27 Thread Jonathan Watt
Hi John,

Mozilla has supported the 'viewBox' property for a long time, but
let's forget about that. It would actually be better to use a property
that will almost certainly be implemented - the 'width' property seems
like a good candidate. So you would use:

var hasNativeSVG =
document.createElementNS('http://www.w3.org/2000/svg','svg').width ?
true : false;

I'm not sure I can explain why this should work any clearer than I
already have, but here goes. If the implementation doesn't support
SVG, then the element that's created as a result of the
createElementNS call *won't* have a 'width' property. If the
implementation does support SVG, then the element that's created as a
result of the createElementNS call *will* have a 'width' property.
This seems like a good way to test for native SVG support to me. If
you don't think so, can you have a go at explain why?

Regards,
Jonathan


On 7/27/05, jophof007 [EMAIL PROTECTED] wrote:
 Hi,
 
 Sounds as a solution. But Mozilla is trying to implement zoom and pan
 things so a viewbox will appear in future I think.
 It is not that easy to determine.
 
 John
 --- In svg-developers@yahoogroups.com, Jonathan Watt [EMAIL PROTECTED] 
 wrote:
  Perhaps something like
 
var hasNativeSVG =
  document.createElementNS('http://www.w3.org/2000/svg','svg').viewBox ?
  true : false;
 
  will do what you want? If the implementation doesn't support SVG, then
  the element it creates won't have a 'viewBox' property. There's
  probably a lighterweight way of doing this, but I haven't thought
  about it too deeply. ;-)
 
 
  On 7/23/05, jophof007 [EMAIL PROTECTED] wrote:
   Hi,
  
   Does anyone has a solution on detecting native svg support. Deer park
   Alpha 2 supports native svg. How can a client javascript detect that
   deerpark alpha 2 is running or how can a client javascript detect that
   native svg support is available?
  
   We like to make our diagram editor native svg compliant in
   open-modeing (http://open-modeing.sourceforge.net).
  
   Thanx in advance.
  
   John
  
  
  
  
   -
   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 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 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/

* 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/
 




Re: [svg-developers] The Future of SVG

2005-07-01 Thread Jonathan Watt
On 6/30/05, Holger Will [EMAIL PROTECTED] wrote:
 Jonathan Watt schrieb:
 
  So
  you can do all types of cross-document scripting in Firefox, but just
  in a different (i.e. W3C standard) way. I've put up heavily commented
  demos showing how to script from HTML to an embedded SVG document and
  it's scripts here:
 
  http://jwatt.org/svg/demos/scripting-across-embed.html
  http://jwatt.org/svg/demos/scripting-across-object.html
 
 will these files stay at this url? the question is comming up regularly,
 and in the future i would like to point people to these fine examples.
 

Yes, I intend to keep them there. Thanks Holger.


-
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/

* 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/
 




Re: [svg-developers] Re: Problem with SVG and Javascript

2005-07-01 Thread Jonathan Watt
I would recommend that instead of removing 'document.' you make it
document.getElementById('SVGdata').elements...

This should work in a wider range of browsers, and is likely to
continue working in future.


On 6/30/05, Nicholas Lucaroni [EMAIL PROTECTED] wrote:
 looks decent... try removing 'document.' ?
 
 --- In svg-developers@yahoogroups.com, derguteonkeldod
 [EMAIL PROTECTED] wrote:
  Hello,
 
  I want to manipulate the value of a HTML form by Javascript.
  I got this error message: 'document.SVGdata.elements is Null or no
  object'. I really don't know why.
  BTW: the HTML code is embedded in a portlet (Jetspeed2 Portal).
 Maybe
  this could help finding a solution.
 
 
  That's the Javascript function:
 
  function onclickFunction(evt)
  {
  seat = evt.getTarget();
  document.SVGdata.elements['SeatNr'].value=seat.getAttribute
 (id);document.SVGdata.submit();
  }
  (I also tried 'document.SVGdata.SeatNr.value',
  'document.forms['SVGdata'}.elements['SeatNr'].value')
 
  ...and that's the HTML code:
 
  form name=SVGdata id=SVGdata method=POST
  action=http://localhost:8080/;
input type=hidden name=SeatNr value=
  /form
  embed src=http://localhost:8080/HelloWorld/Test.svg;
  type=image/svg-xml width=100px height=100px/
 
 
 
 
 -
 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 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/

* 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/
 




Re: [svg-developers] The Future of SVG

2005-06-29 Thread Jonathan Watt
On 6/29/05, Holger Will [EMAIL PROTECTED] wrote:
 Doug Schepers schrieb:
 
  Rick Bullotta wrote:
  |
  | I'll check it out tonight (with a beer in my hand)!  Thanks
  | for the heads up.  Is browser-SVG scripting support enabled?
 
  I'm not sure if it is enabled in the same way that it is for ASV+IE...
 
 yes it is, on embed you got the getSVGDocument() method, and on
 object you can use contentDocument and contentWindow.
 as far as i can tell the only missing part is the getWindow() method on
 embed. so if you need to have functions defiend in your SVG and you
 want to access them from your html,
 youll have to use object.

Actually you can use embed. You can then use the W3C standard
property 'defaultView' on the SVGDocument object to access the SVG
document's 'window' object (and hence the scripts defined in it). So
you can do all types of cross-document scripting in Firefox, but just
in a different (i.e. W3C standard) way. I've put up heavily commented
demos showing how to script from HTML to an embedded SVG document and
it's scripts here:

http://jwatt.org/svg/demos/scripting-across-embed.html
http://jwatt.org/svg/demos/scripting-across-object.html


-
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/

* 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/
 




Re: [svg-developers] SVG turned on in mozilla nightly builds

2005-04-27 Thread Jonathan Watt

On 4/27/05, Holger Will [EMAIL PROTECTED] wrote:
 
 Hi everyone
 according to
 http://weblogs.mozillazine.org/chase/archives/2005/04/svg_here_we_com.html
 SVG is now available in all nightly builds of mozilla / firefox ( at
 least for Win and Mac builds)
 thats great news, i think, and i want to take the opportunity to once
 again thank all mozilla hackers
 especially the SVG Team.
 
 cheers
 Holger

Cheers, Holger. But note that although SVG is built into the
nightlies, it isn't quite turned on as such. You still need to set a
configuration preference to turn it on (see
http://weblogs.mozillazine.org/tor/archives/2005/02/important_svg_b.html
). Having said that this should change shortly - keep an eye on
https://bugzilla.mozilla.org/show_bug.cgi?id=292160


-
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/

* 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/
 





Re: [svg-developers] Help regarding evt event

2005-04-15 Thread Jonathan Watt

On 4/15/05, callyourshiva [EMAIL PROTECTED] wrote:
 
 
 Hi all,
 
When i run my SVG (.svg file) in my browser it's running fine.
 
 when i load the same file on to Citrix machine and some other machines
 
 it's giving an Jscript error:evt is undefined.Please let me know why it
 
 is giving this error .I'm falling short of time.In both the machines we
 
 have Adobe SVG Viewer Installed.

I think in ASV3 evt was a global object, but that in ASV6 this has
been fixed. I'm not sure if that's correct or not since I haven't got
round to testing it properly yet. Anyone else know for sure?

In any case, make sure that you are passing evt _explicitly_ in your
event attribute like this:

svg onload=init(evt)

and that you have an explicit parameter in your function 'init' to
enable you to reference the event object:

function init(evt) {
  alert(evt);
}

Don't have onload=init() and function init() { ... } since this
won't work in other browsers, and doesn't seem to work in ASV6.


 Another one: Could we add scrolling features to an SVG document.
 
 I added zooming features but it is not seeming nice.Help me out in this
 
 aspect.
 
Waiting for all your valuable replies.
 
 Regards,
 Shiva Kumar Soma



-
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/

* 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/
 





Re: [svg-developers] Re: Help regarding evt event

2005-04-15 Thread Jonathan Watt

On 4/15/05, welkerpaul [EMAIL PROTECTED] wrote:
 
 
 --- In svg-developers@yahoogroups.com, Jonathan Watt [EMAIL PROTECTED]
 wrote:
  I think in ASV3 evt was a global object, but that in ASV6 this has
  been fixed. I'm not sure if that's correct or not since I haven't
 got
  round to testing it properly yet. Anyone else know for sure?
 
  In any case, make sure that you are passing evt _explicitly_ in
 your
  event attribute like this:
 
  svg onload=init(evt)
 
  and that you have an explicit parameter in your function 'init' to
  enable you to reference the event object:
 
  function init(evt) {
alert(evt);
  }
 
  Don't have onload=init() and function init() { ... } since this
  won't work in other browsers, and doesn't seem to work in ASV6.
 
 
 
 Jonathan,
 IMOSHO your know-it-all attitude isn't accurate this time;-)
 AFAIUI svg onload=init(evt) cannot work if evt isn't a global
 attribute.
 AAMOF, if there's no event, there's no evt object (window.evt attrib
 =null).

Well I haven't a clue what those acronyms mean, so clearly I don't
know it all. ;-) Seriously though, if I come across as being a bit
arrogant, I appologise. I don't know half the stuff that some of the
people on this list know so I certainly don't want to seem to be a
know it all. I'm aware my contributions can be a bit curt, but
that's more to do with time constraints than attitude. I simply want
to help ensure the SVG out there is portable by correcting some of the
errors I see posted to the list that will cause things to break in
implementations other than ASV. I hope others on the list would point
out any mistakes I make (both those that would cause portability
problems, and any others).

Anyway, back to the question in hand. I seem to recall the DOM 2
Events spec says something about event objects being passed as an
argument to the first parameter of the event handler. The implication
of this is that you need to make sure the handler has at least one
parameter, and that it's that parameter that you use to refer to the
event object.


-
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/

* 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/
 





Re: [svg-developers] Re: Help regarding evt event

2005-04-15 Thread Jonathan Watt

Thanks Kerry, I appreciate you saying so. :-)

On 4/15/05, Kerry Coffin [EMAIL PROTECTED] wrote:
 
 Jonathan,
 
 You are not arrogant at all.  You're comments and advice are worth
 reading.  Keep them coming.
 
 Kerry



-
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/

* 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/
 





Re: [svg-developers] set width and height from svg with javascript

2005-04-12 Thread Jonathan Watt

On Apr 12, 2005 4:36 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
 It is not so complicated as you tried to make it.
 
 svg onload=init(evt)

Please make that:

svg onload=init(evt)
   xmlns=http://www.w3.org/2000/svg;
   xmlns:xlink=http://www.w3.org/1999/xlink;

So that your SVG will work in Mozilla.

 script type=text/javascript

Please remove the 'type' attribute so your SVG will work in Batik.

   function init(evt)
   {
 var elem = evt.target;
 elem.setAttribute('width',window.innerWidth);
 elem.setAttribute('height',window.innerHeight);
   }
 
 /script
 
 /svg
 
 That will set the width/height of your SVG to the size of the browser
 window,  I think that is what you were trying to do.
 
 Regards,
 Keir Gordon



-
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/

* 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/
 





Re: [svg-developers] Re: MHTML (web Archive) / SVG / Javascript problem

2005-04-12 Thread Jonathan Watt

On Apr 12, 2005 5:29 PM, Jonathan Watt [EMAIL PROTECTED] wrote:
 On Apr 12, 2005 5:14 PM, riverside6 [EMAIL PROTECTED] wrote:
 
 
  While window.document.embeds('FP').window is undefined,
  window.document.embeds('FP') is defined, so the embed does exist.
 
  I have to think this is some setting on my machine, but at this point
  I'm both helpless and clueless.  Please help!

BTW, a more portable way to get the SVG document and it's global
window object is to use a function like the one below from your
HTML. Your HTML scripts should then be able to access your SVG in
Mozilla as well, and hopefully also in Batik.

function setSVGVars()
{
  // create two global variables that should point to the SVG document
  // and its window
  window.svgdoc = null;
  window.svgwin = null;

  // get the embed object using getElementById!
  var embed = document.getElementById('embed_id');
  try {
// ASV doesn't allow us to test for getSVGDocument so we just have
to call it.
// We should catch exceptions thrown by browers that don't support it.
window.svgdoc = embed.contentDocument || embed.getSVGDocument();
  }
  catch (e) {
// ignore exception and check whether svgdoc == null later
  }
  window.svgwin = svgdoc  svgdoc.defaultView || embed.window || null;
}

After calling this function you should be able to access your SVG
document using svgdoc, and access functions and variables defined in
scripts in your SVG document using svgwin.functionOrVariableName.

If the SVG document couldn't be accessed then svgdoc will be set to
null. If the SVG document's global window object couldn't be
accessed then svgwin will be set to null.


-
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/

* 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/
 





Re: [svg-developers] Firefox crashes on Refresh

2005-04-12 Thread Jonathan Watt

Probably you should read:

http://www.mozilla.org/projects/svg/faq.html#asv


On Apr 12, 2005 6:15 PM, Shopana Periasamy [EMAIL PROTECTED] wrote:
 
 
 Hi,
 I am struggling with this problem. Firefox browser crashes when
 ever I tried to reload a SVG File. The same file is not crashing in IE.
 I have the SVG File embedded in HTML using embed tag. But it doesn't
 matter. Because it crashes even if it is not embedded. I am having
 Adobe SVG Viewer as the plug-in for Firefox. Any idea or work around
 for this problem? Thanks a lot
 
 Regards,
 Shopana.


-
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/

* 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/
 





Re: [svg-developers] Re: HTML to SVG communication

2005-04-08 Thread Jonathan Watt

On Apr 8, 2005 9:47 AM, Holger Will [EMAIL PROTECTED] wrote:
 
 
  unfortunately that won't work. With the current Adobe SVG viewer and
  web  browsers you
  can only use Internet-Explorer to do such things.
 
 since  2005-03-23 mozillaSVG implements the getSVGDocument() method on
 html embed elements.
 https://bugzilla.mozilla.org/show_bug.cgi?id=281741

Since the 22nd actually. ;-)

 so you can make inter document communication work in both IE+ASV3/6 and
 Mozilla with native SVG support.
 see: http://www.treebuilder.de/svg/interdoc/interdoccom2.html
 
 in order to get things going in FF+ASV maybe some votes on this bug
 could help:
 https://bugzilla.mozilla.org/show_bug.cgi?id=115528

I doubt it. That bug isn't assigned to anyone.

 regards
 Holger


-
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/

* 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/
 





Re: [svg-developers] DTD declaration, was:Re: google and SVG

2005-03-30 Thread Jonathan Watt

On Wed, 30 Mar 2005 15:53:40 +0200, Robin Berjon [EMAIL PROTECTED] wrote:
 
 [sorry if you get this twice, email problems being solved...]
 
 Andreas Neumann wrote:
  The DOCTYPE is totally irrelevant
 
  well, but the DTD is necessary to validate the SVG. If you use a XML
  validator you have to reference the DTD.
 
 No you don't. You can validate the SVG using the DTD with an XML
 processor without having to reference the DTD in the DOCTYPE. In fact
 it's better that way as you can choose various DTDs.
 
 Use DTDs for validation if you want (they won't validate much but it's a
 start) but don't use DOCTYPE. It's useless.

The most accessible validator is the one provided at validator.w3.org
- it doesn't allow you to specify the DTD that should be used. It may
allow you to select a Doctype, but SVG isn't on the list that's
provided. It seems to me that it's still useful to include a DOCTYPE
in this case.

Furthermore, for those of us who get emails saying this page doesn't
work in your SVG implementation it would be useful to be able to
throw the URL into the W3C validator to help in debugging without
having to manually choose/type an SVG DTD URL as well.

Even if DOCTYPEs don't have clear uses to you, why so strongly
discourage their use unless they are actively harmful?


 --
 Robin Berjon
Research Scientist
Expway, http://expway.com/



-
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/

* 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/
 





Re: [svg-developers] Old Viewer SVG 3.01 with mozilla

2005-03-16 Thread Jonathan Watt

If the builds you are using have native SVG support, then the plug-in
will be ignored. It sounds like this may be the case, and that you're
experiencing the problem described here:

  http://www.mozilla.org/projects/svg/faq.html#source

I've got to ask though, why aren't you using Mozilla 1.7.5? Also note:

  http://www.mozilla.org/projects/svg/faq.html#iasv


On Wed, 16 Mar 2005 12:51:01 -, racapi02 [EMAIL PROTECTED] wrote:
 
 
 Hello.
 
 I am trying to run SVG files by using mozilla. Since mozilla native
 svg implemtation do not have implemented the animations yet I would
 like to use the old way: install ASVG plugin in mozilla.
 
 I have done it but I am having some problems: although the mozilla
 plugins information page say that the plugin is installed I can not
 see anything on the screen when I try to open a SVG file (even a
 simple one). Of course, I can see the source but not the image :S. Any
 idea? I have tried with several mozilla builds since 1.4.1 till 1.6
 (which incrediblely is running in other computer and allows to view
 SVG files).
 
 I'm running Suse 9.2 (and Suse 9.1 in the computer that allows to view
 the files)
 
 Am I missing something?
 
 Thanks in advance.



-
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/

* 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/
 





Re: [svg-developers] controls of HTML

2005-03-16 Thread Jonathan Watt

On Tue, 15 Mar 2005 00:35:47 +0100, Philippe Lhoste [EMAIL PROTECTED] wrote:
 
 MARCIO RIBEIRO wrote:
  Personal good night...
 
  I am finding very good to study SVG and he/she would
  like to know if it is possible to use controls of HTML
  in SVG.
 
  Example.
  Form, Input text, textarea, checkbox,radio group ...
 
  If somebody to pass examples I am thanked.
 
 It seems that nobody answered your message, at least publicly.
 
 The answer to your question is: NO.
 You can't use HTML controls in SVG.

Sure you can, this works in Mozilla's native SVG implementation: :-)

  http://jwatt.org/svg/demos/button-demo.svg


 Now, on IE with ASV, you can embed a SVG into an HTML with controls, and
 interact with it. It won't work with Mozilla though.

I think probably half my posts to this list have been regarding how to
do it with Mozilla's native implementation. It works perfectly. If you
meant it doesn't work for *ASV* in Mozilla, then you are correct.


 SVG 1.1 has no concept of GUI controls as native component.
 But in GUI (graphical user interface), there is G, a domain where SVG
 shines. So many SVG developers drawn UI widgets and used JavaScript to
 control the interaction with the user.
 So you can have text edit widgets, sliders and scroll bars, combo boxes
 and lists, various buttons of course, etc.
 
 I believe that if you google around for SVG and GUI, you will find
 useful links.



-
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/

* 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/
 





Re: [svg-developers] Re: Cannot get Firefox w/ Native SVG to work

2005-02-24 Thread Jonathan Watt

On Wed, 23 Feb 2005 17:07:20 -, Jan [EMAIL PROTECTED] wrote:
 
 
 --- In svg-developers@yahoogroups.com, Jonathan Watt [EMAIL PROTECTED]
 wrote:
   - first, since Feb 21, they introduce an option to enable/disable
 SVG
   and it is disable by default (check
  
 http://weblogs.mozillazine.org/tor/archives/2005/02/important_svg_b.ht
 ml)
 
  Yes, this is an important announcement, and it's probably the
 reason.
  Be sure to read it if you're using Mozilla Suite/Mozilla Firefox
 with
  native SVG support built in.
 
 I set the svg.enabled preference and that made a difference, however,
 now I'm getting my svg code displayed instead of my svg image.  I
 know I read somewhere that someone else had that same problem, but
 can't remember what the fix was for that.  Can anyone help?

Read:

  http://www.mozilla.org/projects/svg/faq.html#source

and also check whether the version you downloaded works with:

  http://jwatt.org/moz/circles1.svgz

since I know that should work in Moz. I suspect that you were testing
by trying to view SVG files from a misconfigures server, but if that
doesn't work let me know.

Check out the rest of the FAQ since that might answer some of the
questions you don't even realise you have yet.

-Jonathan


-
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/

* 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/
 





Re: [svg-developers] General web svg architecture

2005-02-18 Thread Jonathan Watt

On Fri, 18 Feb 2005 23:17:26 -, Jan [EMAIL PROTECTED] wrote:
 
 
 I'm developing a web site using svg, php, Javascript, and html.  It
 is a traffic map application that has layer controls, zooming,
 panning, etc.  The svg for the map is generated by php code and then
 displayed and is embedded within the html.  The map will also display
 icons for traffic incidents.  The page will also allow for a textual
 listing of the traffic incidents by clicking on an html link.
 
 The problem I have right now is that the traffic incident data will
 be stored within a Javascript array within the svg for the map and is
 not available to the containing html parent.  I found a solution for
 communicating between html and svg that works in IE, but I don't
 believe it will work in Netscape or Mozilla.

This depends on whether you're talking about Mozilla with native SVG
support, or Mozilla with the ASV 6 alpha installed. ASV does not
support scripting to and from Mozilla, and I guess they will wait
until they finalise ASV 6 before adding that support, so forget about
scripting between the two documents in this case.

At the moment if you want to embed SVG by reference into an HTML file,
Mozilla with native SVG will support direct script access from the
HTML to the SVG if you use the object or iframe tags. Currently
the embed tag does not allow you to script from the HTML to the SVG
document directly. (I plan to write a patch to add a contentDocument
attribute or getSVGDocument method to the 'embed' object, but
unfortunately I'm unlikely to get to this before SVG is built into the
official Mozilla 1.8 (hopefully) builds.) If you want to script across
embed you will need to push a reference to the SVG document up to
the HTML document first.

Since ASV has removed the script link between itself and IE if the SVG
is embeded using the object tag I would imagine that you are using
the embed or iframe tag. To create a link between the HTML and SVG
document for Mozilla put something like the following in a script in
your SVG document.

top.svgDoc = document;  // creates a reference in the HTML to the SVG document
top.svgWin = window;  // creates a reference in the HTML to the SVG
document's 'window'

Scripts in your HTML document can then check for window.svgDoc and
window.svgWin and use them once they've been set.


 My question is:  how are most people developing their svg sites,
 especially map sites?  Are most people doing everything in svg and
 are most people using a combination of svg and html?  If so, how is
 the communication between the two done so that things work in both
 browsers?
 
 Should I be developing my map controls and links in svg as well
 instead of trying to communicate between html and svg?
 
 Jan



-
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/

* 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/
 





Re: [svg-developers] Mozilla/Firefox Issue, Please Help

2005-02-09 Thread Jonathan Watt

On Tue, 08 Feb 2005 18:19:17 -, academyhtml [EMAIL PROTECTED] wrote:
 
 
 Hi,
 
 I'm using an embed along with a getsvgdocument() to access SVG
 elements from an HTML file (see below).
 
 embed name=svgFile1... (in the html)
 svgdoc = svgFile1.getSVGDocument(); (in the js)

This doesn't work in Mozilla's native SVG implementation or in Mozilla
+ ASV since Mozilla's native SVG implementation doesn't implement the
GetSVGDocument interface (yet), and neither does ASV when run in
Mozilla.

 After pouring through the messages here I realize why this doesn't
 work in FF/Moz, but I wasn't able to find an alternative way of
 accessing the SVG DOM from the html.

In Mozilla there is no way for scripts in an HTML document to access
an SVG document embeded by reference if it's embeded using the embed
tag. The only way you will be able to access an embeded SVG document
is if you embed it using the object tag. If you use object then
you can access the SVG document using .getSVGDocument() in IE+ASV and
.contentDocument in Mozilla with *native* SVG.

 Can anyone provide me with an alt. way I can implement this, not using
 getsvgdocument that will work on both IE and FF/Moz?
 
 TIA



-
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/

* 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/
 





Re: [svg-developers] Re: Mozilla/Firefox Issue, Please Help

2005-02-09 Thread Jonathan Watt

Not at this point in time. You need the native SVG support in FF/Moz.
This may change with a future release of ASV.


On Wed, 09 Feb 2005 19:28:12 -, academyhtml [EMAIL PROTECTED] wrote:
 
 So even with the use of the object tag, with ASV there is no way to
 access the svg from scripts in the html through FF/Moz then?
 
 --- In svg-developers@yahoogroups.com, Jonathan Watt [EMAIL PROTECTED] 
 wrote:
  On Tue, 08 Feb 2005 22:04:34 -, academyhtml [EMAIL PROTECTED]
 wrote:
  
  
   Would somebody be able to provide an example of what was suggested
   previously within the framework of the code I posted earlier:
  
embed name=svgFile1... (in the html)
svgdoc = svgFile1.getSVGDocument(); (in the js)
  
   Thx.
  
 
  As I said, you can't access the SVG document if you use embed. You
  need to use object.
 
 -
 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 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/

* 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/
 





Re: [svg-developers] Re: Mozilla/Firefox Issue, Please Help

2005-02-09 Thread Jonathan Watt

That shouldn't be too difficult to do, but I'd be interested nonetheless.


On Wed, 09 Feb 2005 13:15:02 -0700, Rerun [EMAIL PROTECTED] wrote:
 
 I have a php solution that works for both IE and Mozilla if anyone is
 interested.  It only requires one HTML/XHTML doc.  They are the same,
 but I create them slightly different depending on browser type.



-
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/

* 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/
 





Re: [svg-developers] Re: Mozilla/Firefox Issue, Please Help

2005-02-09 Thread Jonathan Watt

On Wed, 09 Feb 2005 04:20:12 -, tcorbet [EMAIL PROTECTED] wrote:
 
 
 --- In svg-developers@yahoogroups.com, academyhtml
 [EMAIL PROTECTED] wrote:
 
  Would somebody be able to provide an example of what was suggested
  previously within the framework of the code I posted earlier:
 
   embed name=svgFile1... (in the html)
   svgdoc = svgFile1.getSVGDocument(); (in the js)
 
 
 01.  Jonathon's helpful suggestion means you have to code something
 like this:
 
 object name=yourSVGName data=yourSVGFile type=image/svg+xml
 width=400 height=300
 embed name = yourSVGName src=yourSVGFile type=image/svg+xml
 width=400 height=300 /
 /object

Well, in so far as I only talked about the 'object' element.


 I realize that even this snippet only adds to the confusion, but see
 http://wiki.svg.org/index.php/EmbedingSvgInHTML for a thoughtful
 discussion about why the method of embedding the svg is client agent
 peculiar.
 
 Then, in your JavaScript, you would replace your:
 
 var svgDoc = svgFile1.getSVGDocument();
 
 with
 
 var svgDoc = HTMLObjectElement.contentDocument.defaultView;
 
 Unfortunately Jonathon's suggestion does not fix our problem. When you
 open the Firfox JavaScript Console instead of seeing:
 
 Error: SVGObject is not defined
 
 you will see:
 
 Error: HTMLObjectElement.contentDocument has no properties

I hope you didn't literally use HTMLObjectElement. HTMLObjectElement
is an interface that should be implemented by the object that
corresponds to the object tag. You should be doing something like:

  document.getElementById('myObjectElementsID').contentDocument.defaultView;

If you're using a Mozilla based browser with native SVG support, the
object returned by the getElementById call should implement the
HTMLObjectElement interface, and so you can use .contentDocument on
it. If it doesn't implement this interface you're probably not using
native SVG support, and yes, you will probably get an error something
like

  Error: document.getElementById('myObjectElementsID').contentDocument
has no properties


 02.  Now for the really bad news.  Even if you had coded the way Adobe
 recommended at http://www.adobe.com/svg/demos/colorpicker/colorpicker.html
 
 var svgDoc = document.svgFile1.getSVGDocument();
 
 you would have seen:
 
 Error: document.SVGObject.getSVGDocument is not a function
 
 That might have caused you to find recommendations like:
 
 var svgDoc = document.embeds[svgFile1].getSVGDocument();
 or
 var svgDoc = document.embeds[0].getSVGDocument();
 
 but don't waste your time.  There is NO documented way to gain a
 proper reference to the svg tag content from the html script
 engine when using ASV6 with Firefox.

To be more precise, there is no way to access your SVG document from
your embeding HTML document in Mozilla/Mozilla Firefox + ASV --
documented _or_ undocumented.


 03.  I do not know what the problem is.  I have posted to every
 reputable site and filed a bug with Adobe.  For some reason, unknown
 to me, there is a purposeful hiding of the svg elements from the
 DOM.  If, instead of relying on the JavaScript Console, you use the
 wonderful DOM Inspector, it becomes clear.  Where a node ought to have
 content, there is merely #text.  That is what is preventing us from
 being able to use html controls to work with svg content.

I doubt it's a case of hiding it. It's probably simply that there
isn't any code in ASV to connect up code running in a Gecko (Mozilla)
based browser with code running in ASV or visa versa.


 What is especially maddening is that what you want to do is possible
 when using the ASV with the dreaded IE.  It's almost as if the most
 esteemed members of the Open Source world -- Mozilla and Adobe -- are
 sitting by while the Microsoft juggernaut moves forward on all the
 fronts necessary for creating rich clients.  

Adobe is a esteemed member of the Open Source world? Regardless, the
contributors to the Mozilla SVG project aren't sitting by.


 Mozzila's native SVG
 scripting engine promises to open up the svg DOM to the parent
 scripting engine, but just go to the W3C pages for SVG compliance and
 you see Mozilla sitting way way to the right with a lot of red colors.

And when was that page last updated? See
http://www.mozilla.org/projects/svg/status.html for a more accurate
reflection of what has been implemented to date.


  Adobe obviously has a good implementation, but what reason can there
 be for beta code that is two years old.  Where is the commitment to
 the need for implementing svg and xform solutions today.

As I understand it they are waiting for SVG1.2 to be finalised.
Personally I'd quite like them to wait and not add stuff that may be
removed/changed from the spec and introduce even more
incompatibilities between SVG implementations.


 04.  Finally, you will find in the those wonderful examples from the
 books in 2002 the suggestion that you 'push' a reference from svg up
 to html since, as we 

Re: [svg-developers] Mozilla getStyle GetStyleData JavaScript etc

2005-02-08 Thread Jonathan Watt

When using html:object in Mozilla you *can* access the SVGDocument
object by using the HTMLObjectElement.contentDocument attribute.

  http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-9893177

If you need to access the 'window' of the SVG document from a script
in the HTML document you can access it via the defaultView attribute
on the SVGDocument object.

  http://www.w3.org/TR/DOM-Level-2-Views/views.html#Views-DocumentView

Hence to access a function called mySVGFunc in the SVG document from a
script in the HTML document you would use:

  HTMLObjectElement.contentDocument.defaultView.mySVGFunc()


On Mon, 07 Feb 2005 13:49:33 -0700, Rerun [EMAIL PROTECTED] wrote:
 
 That worked great, and the code is even a bit cleaner.  While I'm on the
 subject of Mozilla implementations, I have another question regarding
 scripting.  Mozilla has implemented the embed tag reluctantly I see,
 but still advocates the object tag.  This is all  all well and good,
 but the object tag doesn't allow the use of JavaScript, neither does
 the embed tag in a Mozilla browser.  Am I up a creek with this, or is
 there another way to add interactivity with js?



-
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/

* 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/
 





Re: [svg-developers] Mozilla getStyle GetStyleData JavaScript etc

2005-02-05 Thread Jonathan Watt

On Sat, 05 Feb 2005 01:35:03 -, couloir007 [EMAIL PROTECTED] wrote:
 
 
 The Code below apparently is an Adobe specific way of setting fill
 color.  I believe GetStyleData would be the Mozilla equivalent.  Not
 sure though since I can't get it to work.  Does anyone know how to do
 this in Mozilla?  I've had some limited success altering CSS
 attributes, but would like to avoind it if possible.  Thank you.
 
 svgobj = document.getElementById(id);
 svgstyle = svgobj.getStyle();
 svgstyle.setProperty('fill', 'yellow');
 

The DOM interface to use is CSSStyleDeclaration, see

http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleDeclaration

Note that setProperty takes *three* arguments. It may be that in ASV
you don't need to provide the last one, but in Mozilla you will so
best to get in the habit of including all three. Normally the third
argument is simply null. In Mozilla your code should look like this:

svgobj = document.getElementById(id);
svgstyle = svgobj.style;
svgstyle.setProperty('fill', 'yellow', null);

And if that doesn't work in ASV then this probably will:

svgobj = document.getElementById(id);
svgstyle = svgobj.style || svgobj.getStyle();
svgstyle.setProperty('fill', 'yellow', null);


-
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/

* 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/
 





  1   2   >