I have posted the current working draft of the Swish3 documentation. These are mostly API docs for the C library.
These APIs are subject to change. See the Swish3 dev site for up-to-date info and source.
an eddy in the bitstream
Maker of lunches.
Teller of stories.
Singer of songs.
Crafter of code.
Kicker of darkness.
I have posted the current working draft of the Swish3 documentation. These are mostly API docs for the C library.
These APIs are subject to change. See the Swish3 dev site for up-to-date info and source.
I had to hack the new prototype.js 1.5.0 release to revert to the 1.4 getTransport() order. The problem: IE7’s “native” XMLHttpRequest method won’t play nice with a <base> tag whose domain value is different than the domain value of the page’s URL.
Example:
url:
http://flop.net/bar.html
with:
<base href="http://foo.com/" />
then IE7 new XMLHttpRequest() for
'http://flop.net/ajax'
throws access denied error.
However, this works:
url:
http://flop.net/bar.html
with:
<base href="http://flop.net/">
then IE7 new XMLHttpRequest() for
'http://flop.net/ajax'
So we just revert to using ActiveX (the original Microsoft version for remote transport).
I see that YUI checks for transport the same way. So I expect their’s will break with IE7 too.
Here’s the diff:
var Ajax = {
getTransport: function() {
return Try.these(
- function() {return new XMLHttpRequest()},
function() {return new ActiveXObject('Msxml2.XMLHTTP')},
- function() {return new ActiveXObject('Microsoft.XMLHTTP')}
+ function() {return new ActiveXObject('Microsoft.XMLHTTP')},
+ function() {return new XMLHttpRequest()}
) || false;
},
I assume Microsoft changed this behaviour in IE7 in the name of security, but it is still a royal PITA.
Did I just miss the warning signs?
I don’t really see how this ‘security’ precaution actually makes anything more secure. If anything, in my case, not using the ‘base’ tag means my HTML would be lots more verbose, since I would need to specify the URL in every href link.
Posted to the Cat list today. A nice summary of how to get help on the internet.
If you don’t know what sudo is, this’ll be less funny.
![]()
This article and this article were very helpful. And so was the fact that we use Template Toolkit and a shared template directory for all sites.
© 2025 peknet
Theme by Anders Noren — Up ↑