Well thnx a lot but it is not working ...
what is the ideal environment to get it to work...
as I managed to get the svg to be viewed even i get a
validation error as the onclick="DoPost();"/>
is not recogized as attribute...
but nothing happens...
so what do i need to have to get it to work...
kojo
--- Jeff Rafter <[EMAIL PROTECTED]> wrote:

> Here... note, this may or may not work in different
> implementations and 
> may or may not let you do cross site posting. It
> depends on the environment.
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <svg xmlns:xlink="http://www.w3.org/1999/xlink";
>       xmlns="http://www.w3.org/2000/svg";>
>    <title></title>
>    <defs>
>      <script type="text/javascript"><![CDATA[
> 
>        function DoPostComplete(status) {
>          alert("XML posted - " + status.content);
>        }
> 
>        function DoPost() {
>          if (typeof postURL=='undefined') {
>            alert('Sorry, but the viewer you are
> using does not support 
> the URL interaction. ' +
>              'Try updating to a newer viewer.');
>            return;
>          }
>          var sendXML =
>            '<?xml version="1.0" encoding="UTF-8"?>'
> +
>            '<test/>';
> 
>          alert("about to post");
> 
>          postURL('http://example.org', sendXML,
> DoPostComplete, 
> 'text/xml', null)
> 
>          alert("after post");
>        }
> 
>      // ]]></script>
>    </defs>
>    <rect fill="red" x="0" y="0" height="100"
> width="100" 
> onclick="DoPost();"/>
> </svg>
> 
> Cheers,
> Jeff Rafter
> 



                
__________________________________ 
Do you Yahoo!? 
Jazz up your holiday email with celebrity designs. Learn more. 
http://celebrity.mail.yahoo.com


------------------------ Yahoo! Groups Sponsor --------------------~--> 
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/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/
 



Reply via email to