cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Crabtree" <Paul.Crabt...@dna.co.uk>
Subject RE: Upload widget for Woody: how to handle form redisplay?
Date Mon, 10 Nov 2003 14:01:03 GMT
Take a look at this...
It dynamically writes an image, i think only a bmp to the screen to
create an interactive game.
I believe IE and Mozilla and NS4 all support this but only for b&w bmps,
could be wrong.
http://www.the5k.org/description.asp/entry_id=946

Paul

-----Original Message-----
From: Sylvain Wallez [mailto:sylvain@apache.org]
Sent: 10 November 2003 13:11
To: dev@cocoon.apache.org
Subject: Re: Upload widget for Woody: how to handle form redisplay?


Stefano Mazzocchi wrote:

<snip/>

>> Do you mean embed the image inside the HTML as e.g. base-64 data?
>
>
> <html>
> <head>
> <script language="JavaScript"><!--
> function binary(d) {
>     var o = '';
>     for (var i=0; i<d.length; i=i+2)  
> o+=String.fromCharCode(eval('0x'+(d.substring(i,i+2)).toString(16)));
>     return o;
> }
>
> gif =  
>
binary('47494638376120001000800000000000FFFFFF2C00000000200010000002208C

>
8FA9CBED0FA344A0D609019E7A47DB799938924A189A07AA9E570BC7F2BC15003B0A');
> //--></script>
> </head>
> <body>
> <img src="javascript:gif"/>
> </body>
> </html>


Wooooow! Awesome weird trick ;-)

> works in Netscape (from 4.x to latest firebird), but doesn't work  
> anywhere else.
>
> [taken from http://developer.irt.org/script/955.htm]
>
> I still have to find an equivalent way to do the above in IE, anybody?


Tried in IE6 but doesn't work...

Sylvain

-- 
Sylvain Wallez                                  Anyware Technologies
http://www.apache.org/~sylvain           http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
Orixo, the opensource XML business alliance  -  http://www.orixo.com



_____________________________________________________________________
This e-mail has been scanned for viruses by MCI's Internet Managed
Scanning Services - powered by MessageLabs. For further information
visit http://www.mci.com

Mime
View raw message