Working with IE6.0 but not with FF2.0

Discussion in 'JavaScript' started by Yoeld, Feb 16, 2008.

  1. #1
    I wonder if somebody can help me with this script. It is meant to track outgoing links. It works without any problem with IE but not with FF.

    Can somebody provide any kind of hint?

    Thanks
     
    Yoeld, Feb 16, 2008 IP
  2. MMJ

    MMJ Guest

    Messages:
    460
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try:
    (new Image()).src = ...
    PHP:
    what you are doing is very susceptible to memory leaks.
     
    MMJ, Feb 16, 2008 IP
  3. Yoeld

    Yoeld Peon

    Messages:
    152
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks it does not help.

    Any other suggestion?
     
    Yoeld, Feb 16, 2008 IP
  4. imvain2

    imvain2 Peon

    Messages:
    218
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #4
    have you tried separating the src

    iimg = new Image();
    iimg.src = 'http://myserverurl.com/tracking/track_click1.php?id=1&href='+ location.href;
     
    imvain2, Feb 16, 2008 IP
  5. MMJ

    MMJ Guest

    Messages:
    460
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hmm... I tried it, it worked for me on Firefox.
     
    MMJ, Feb 17, 2008 IP