I tested it and it works cross-domain with IE7 and FF3.  It appears to
send the data URL encoded inside the CSS like so:

#cr0 {
    background: red url(http://cssrpc/%3Ch1%3EResult%20from%20CSS
%201%3C/h1%3E);
}

#cr1 {
    background: blue url(http://cssrpc/%3Cp%3EThis%20is%20lorem%20ipsum
%20in%20a%20paragraph%20tag.%20Or%20something.%3C/p%3E);
}

So the url field is then URL decoded and written to the page.  Is this
right?  Is there a advantage of using CSS files instead of JS files
for cross-domain data communication?



On Dec 12 2008, 12:31 am, Bil Corry <b...@corry.biz> wrote:
> ricardobeat wrote on 12/11/2008 7:06 PM:
>
> > Hi Bill, it seems that that technique doesn't work for FF3, so it's
> > out, unfortunately.
>
> It makes reference to an "original prototype" that does work with FF3, you 
> can see it work here:
>
>        http://ydnar.typepad.com/css-rpc/css-rpc.html
>
> Although it doesn't actually demonstrate loading anythingcross-domain, so I'm 
> not sure if that would work or not.
>
> - Bil

Reply via email to