Help Center Live Community

Support => Installation Help & Software Support => Topic started by: daemonkin on May 11, 2009, 09:52:33 AM

Title: Aardvark Help - CLOSED
Post by: daemonkin on May 11, 2009, 09:52:33 AM
Hi guys,

Everything working on Safari and IE7 XP SP3 just tryiongto figure out why it is not playing ball on FF 3. 0. 10.

I opened the /class/js/aardvark. php file and spaced out the lines for clarification.  I noticed this:
function Aardvark(object) {
 this.object = object;
 this.xmlhttp = new XMLHttpRequest();
 this.mac = navigator.platform.indexOf('Mac');
 this.msie = navigator.userAgent.indexOf("MSIE");
 this.image = new Image();
 this.fallback = false;
 this.url = '';
 this.variables = new Array();
 this.vars = new Array();
 this.connect_host = '';
 this.install_host = '';
 this.initiated = false;
 this.url_built = false;
 this.response = '';
 this.gc = 'reset';
 this.validateurl = function(){
  this.connect_host = this.url;
this.install_host = document.location.toString();
this.connect_host = this.connect_host.replace(/(.*?)\/\/(.*?)\/(.*)/i, "$1//$2");
this.install_host = this.install_host.replace(/(.*?)\/\/(.*?)\/(.*)/i, "$1//$2");
this.connect_host = this.connect_host.replace(/(.*?)\/\/(.*?)/i, "$2");
this.install_host = this.install_host.replace(/(.*?)\/\/(.*?)/i, "$2");
if (this.connect_host !== this.install_host) {
if (navigator. appName == 'Microsoft Internet Explorer') {
    this. fallback = false;
} else {
      this. fallback = true;

I an not a big user of Ajax but was wondering why there was only a mention of IE and Mac in the function variables.  Should there be one for FF or does it not require one?


Title: Re: Aardvark Help
Post by: SpenserJ on May 11, 2009, 06:34:01 PM
No there should not.  It is because certain fixes have been implemented for IE and Mac (or I am assuming so).  However it appears that you managed to fix it in your other topic.  If that isn't the case, just let me know and I will try and figure it out more!


Title: Re: Aardvark Help - CLOSED
Post by: daemonkin on May 12, 2009, 09:03:15 AM
Thanks Spenser.  I think I sorted it out - had the replacement script in the wrong place!