View Single Post
  #26  
Old June 1st, 2008, 08:10 AM
lch's Avatar

lch lch is offline
General
 
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
lch is on a distinguished road
Default Re: Spell Guide Beta-0

Quote:
Zentar said:
The concept is great and I like that it does searches for specified spell requirements, but I get this message when using it on my MAC "Exception while loading: TypeError: Null value". I am part of the 75%.
That is because the code requires that the browser has support for the XSLTProcessor. KHTML, which is being used by Konqueror and Safari, does not. I think that support for MSIE can be added quite easily by adding the following code snippet from the XMLHttpRequest Wikipedia page: Code:
/**
* Bridge XMLHTTP to XMLHttpRequest in pre-7.0 Internet Explorers
*/
if( typeof XMLHttpRequest == "undefined" ) XMLHttpRequest = function()
{
try{ return new ActiveXObject("Msxml2.XMLHTTP.6.0") }catch(e){}
try{ return new ActiveXObject("Msxml2.XMLHTTP.3.0") }catch(e){}
try{ return new ActiveXObject("Msxml2.XMLHTTP") }catch(e){}
try{ return new ActiveXObject("Microsoft.XMLHTTP") }catch(e){}
throw new Error("This browser does not support XMLHttpRequest or XMLHTTP.")
};

I didn't get to test it, though.

Unless KHTML implements XSLTProcessor support, this page won't work for Konqueror and Safari. But in case Snoddasmannen wants to add support for them, I think that a cross-browser wrapper library named Sarissa takes care to add just this functionality for browsers.
__________________
Come to the Dom3 Wiki and help us to build the biggest Dominions-centered knowledge base on the net.
Visit my personal user page there, too!
Pretender file password recovery
Emergency comic relief
Reply With Quote