|
tricky and nice :-)
THX for sharing
BTW.: Her a smal _javascript_ for encoding utf8, if
somebody can need it...
<SCRIPT LANGUAGE="_javascript_"><!-- Begin function encode_utf8(mypage, rohtext, myname, w, h, scroll) { // replace a carriage return or crl rohtext = rohtext.replace(/\r\n/g,"\n"); var utftext = ""; for(var n=0; n<rohtext.length; n++) { // Take teh unicode of the current Character var c=rohtext.charCodeAt(n); // all chars from 0-127 => 1byte if (c<128) utftext += String.fromCharCode(c); // all chars from 127 bis 2047 => 2byte else if((c>127) && (c<2048)) { utftext += String.fromCharCode((c>>6)|192); utftext += String.fromCharCode((c&63)|128);} // all chars from 2048 bis 66536 => 3byte else { utftext += String.fromCharCode((c>>12)|224); utftext += String.fromCharCode(((c>>6)&63)|128); utftext += String.fromCharCode((c&63)|128);} } var winl = (screen.width - w) / 2; var wint = (screen.height - h) / 2; winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+','+',scrollbars='+scroll+',resizable' win = window.open(mypage+utftext, myname, winprops) { win.window.focus(); } ; } // End --> </script>
Get Called over: <a href="" >My_HREF</a> regards
Daniel
________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf |
- Re: Witango-Talk: XML to array? Roland Dumas
- Re: Witango-Talk: XML to array? Ben Johansen
- Re: Witango-Talk: XML to array? Robert Garcia
- Re: Witango-Talk: XML to array? Dan Stein
- RE: Witango-Talk: XML to array? Scott Cadillac
- RE: Witango-Talk: XML to array? Scott Cadillac
- Re: Witango-Talk: XML to array? [EMAIL PROTECTED]
- Re: Witango-Talk: XML to array? Robert Garcia
- Re: Witango-Talk: XML to array? [EMAIL PROTECTED]
- Re: Witango-Talk: XML to array? Robert Garcia
- Re: Witango-Talk: XML to array? [EMAIL PROTECTED]
- Re: Witango-Talk: XML to array? Roland Dumas
- Re: Witango-Talk: XML to array? Robert Garcia
- RE: Witango-Talk: XML to array? Scott Cadillac
- Re: Witango-Talk: XML to array? Robert Garcia
