Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    Senior Coder Logic Ali's Avatar
    Join Date
    Sep 2010
    Location
    London
    Posts
    1,028
    Thanks
    0
    Thanked 207 Times in 202 Posts
    Quote Originally Posted by xeirus View Post
    Rather than taking everyone on a wild goose chase,
    That would be you I'm afraid.

    Code:
    var pathArray = document.referrer.split( '/' );
    var userReferrerDomain = pathArray[2];
    If document.referrer does not contain '/', userReferrerDomain is undefined, so any reference to its properties will and does cause an error.

    USE THE ERROR CONSOLE

  2. #17
    New Coder
    Join Date
    Aug 2008
    Posts
    77
    Thanks
    23
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Logic Ali View Post
    That would be you I'm afraid.



    If document.referrer does not contain '/', userReferrerDomain is undefined, so any reference to its properties will and does cause an error.

    USE THE ERROR CONSOLE
    hahahaha.... I agree. Indeed, I am on a wild goose chase!
    But please tell me about the ERROR CONSOLE, many people talk about it but where can I access/use it?
    Is it in the browser? I am using IE9.
    Thank you!

  3. #18
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,461
    Thanks
    11
    Thanked 600 Times in 580 Posts
    Quote Originally Posted by xeirus View Post
    But please tell me about the ERROR CONSOLE, many people talk about it but where can I access/use it?
    Is it in the browser? I am using IE9.
    Thank you!
    [F12] man; learn it, live it, love it.
    my site (updated 2014/10/20)
    BROWSER STATS [% share] (2014/9/03) IE7:0.1, IE8:4.3, IE11:9.2, IE9:2.7, IE10:2.6, FF:16.8, CH:47.5, SF:7.8, NON-MOUSE:37%

  4. #19
    New Coder
    Join Date
    Aug 2008
    Posts
    77
    Thanks
    23
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by rnd me View Post
    [F12] man; learn it, live it, love it.
    Thank you rnd me.
    Will do


 
Page 2 of 2 FirstFirst 12

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •