Re: [svg-developers] HTML form communication

2005-09-02 Thread Holger Will
Pete d'Oronzio schrieb:

> Hi Holger,
>
> Thanks for the info.  I'm implementing some of it right now.  However, I'm
> not sure about all of it:
>
> > 1. please correct the MimeType ! the svg file is send as
> > text/html but should be send as image/svg+xml
>
> Where is this done?  Not in the SVG, right?  I have a server application
> that I produce svg from.  It sets the correct MimeType.  How do I do this
> when, as in this example, I'm serving up from IIS?


it seems the mimeType is correct, might be an error on my side, but that 
part works now :-)

>
> > 2. you dont
> > declare namespaces, in your root svg element, you have to
> > include the namespaces for svg and xlink e.g.:
> >http://www.w3.org/2000/svg";
> > xmlns:xlink="http://www.w3.org/1999/xlink"; >
>
> Indeed.  This was done some type ago and when I updated it, I didn't 
> notice
> it was missing.
>
> > 3. you use
> > getters and setters that are against the spec, like
> > "getTarget" and "getStyle" ( should  just be "target" and "style" )
>
> I didn't know that.  Thanks!
>
> > here is a nicely commented example showing how to communicate
> > from html to svg, so that it works across different implementations:
> > http://jwatt.org/svg/demos/scripting-across-embed.html
>
> I see this as a way to access elements in the svg from within the html.
> Does it provide access to call the svg's JS functions?  How about access
> from the SVG to HTML JS? 


this also shows how to access svgs window object.
all functions and variables defined in the svg are members of that 
window object.
as for communicating SVG to HTML, you are right, but your figured that 
out yourself i see.

>
> > to communicate from svg to html, you use parent, unfortunatly
> > ...
>
> No... I changed that.  I think you are seeing a commented line of JS.  
> I use
> "top" in the only call out of svg.
>
>
> Thanks *very* much for these insights.  As I mentioned in my original
> response, I'd just figured these things out recently, so it's nice to get
> them clarified and corrected here.  I'm implementing your suggestions /
> corrections into my "real" app now.
>
> -pete
>
>
>
> -
> 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
>
> *  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 .
>
>
> 
>


-- 
if this information was usefull, please try to help someone else !
http://www.treebuilder.de



 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] HTML form communication

2005-09-02 Thread Pete d'Oronzio
Hi Holger,

Thanks for the info.  I'm implementing some of it right now.  However, I'm
not sure about all of it:

> 1. please correct the MimeType ! the svg file is send as 
> text/html but should be send as image/svg+xml 

Where is this done?  Not in the SVG, right?  I have a server application
that I produce svg from.  It sets the correct MimeType.  How do I do this
when, as in this example, I'm serving up from IIS?

> 2. you dont 
> declare namespaces, in your root svg element, you have to 
> include the namespaces for svg and xlink e.g.:
>http://www.w3.org/2000/svg"; 
> xmlns:xlink="http://www.w3.org/1999/xlink"; > 

Indeed.  This was done some type ago and when I updated it, I didn't notice
it was missing.

> 3. you use 
> getters and setters that are against the spec, like 
> "getTarget" and "getStyle" ( should  just be "target" and "style" )

I didn't know that.  Thanks!

> here is a nicely commented example showing how to communicate 
> from html to svg, so that it works across different implementations:
> http://jwatt.org/svg/demos/scripting-across-embed.html

I see this as a way to access elements in the svg from within the html.
Does it provide access to call the svg's JS functions?  How about access
from the SVG to HTML JS?  

> to communicate from svg to html, you use parent, unfortunatly 
> ...

No... I changed that.  I think you are seeing a commented line of JS.  I use
"top" in the only call out of svg.


Thanks *very* much for these insights.  As I mentioned in my original
response, I'd just figured these things out recently, so it's nice to get
them clarified and corrected here.  I'm implementing your suggestions /
corrections into my "real" app now.

-pete



 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] HTML form communication

2005-09-01 Thread James Ross
many thanks for the pointers, will have a look and see if i can get it 
working.
cheers,
James

James Ross wrote:

>Hi List,
>How easy is html form and svg communication?
>For example a country map in svg, and a html selection list with cities.
>if the city is selected (form), the svg updates (hilighting the city).
>if a city is selected (svg), the html updates.
>Is this kind of thing possible without having to reload the whole page?
>Any pointers to examples out there would be greatly appreciated.
>Many thanks
>James
>  
>


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