Help Center Live Community
April 20, 2014, 06:44:50 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Aardvark Help - CLOSED  (Read 4083 times)
daemonkin
Not too much to say...
*
Offline Offline

Posts: 12


Yippe Ky Yay MoFo


WWW
« 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:
Code:
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?

D.
« Last Edit: May 13, 2009, 04:21:43 PM by daemonkin » Logged

If Avian Flu and Swine Flu combine we will have Flying Pig Flu - Doom and Gloom!
SpenserJ
Moderator
HCL Regular
*****
Offline Offline

Posts: 179

Some helpful guy


WWW
« Reply #1 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!

Spenser
Logged

I am NOT a developer for HelpCenterLive. I am just trying to help out anyone that has issues. If you have a problem, check the list of fixes and then create a new topic
daemonkin
Not too much to say...
*
Offline Offline

Posts: 12


Yippe Ky Yay MoFo


WWW
« Reply #2 on: May 12, 2009, 09:03:15 AM »

Thanks Spenser.  I think I sorted it out - had the replacement script in the wrong place!

D.
Logged

If Avian Flu and Swine Flu combine we will have Flying Pig Flu - Doom and Gloom!
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.143 seconds with 19 queries.

Google visited last this page Yesterday at 06:57:01 AM