1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

javascript disabled on search result

Discussion in 'JavaScript' started by lew1s666, Sep 22, 2014.

  1. #1
    I am using javascript in footer which enable to show and hide fields in the search box. But when you search and go to listings page the search box fields are all visible. I check on the page and the javascript is in the footer with inspector

    Here you can see just few fields in search box. After selecting you can see more
    http://projects.qbf.ie/hogan/

    Here are all visible . dont understand why
    http://projects.qbf.ie/hogan/property-search-results/
     
    lew1s666, Sep 22, 2014 IP
  2. brealmz

    brealmz Well-Known Member

    Messages:
    335
    Likes Received:
    24
    Best Answers:
    3
    Trophy Points:
    138
    #2
    something to do with your javascript console error?
    Uncaught TypeError: Cannot read property 'nodeValue' of null config.js:333

    It was advisable to initially hide it through css.
     
    brealmz, Sep 22, 2014 IP
  3. lew1s666

    lew1s666 Member

    Messages:
    101
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    30
    #3
    so what does it mean ? something clashing in config.js with my javascript in footer ?

    Uncaught TypeError: Cannot read property 'nodeValue' of null
     
    lew1s666, Sep 24, 2014 IP
  4. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #4
    It means that somewhere you have a variable in javascript that isn't set, probably because it can't find the value in the DOM.
    I don't know what js you're running, but somewhere, there's an error - I'd suggest trying to narrow down the error to a more specific subset of javascript (most likely the error is somewhere in your javascript, which utilize some library) - you could try commenting out everything, and just add one function at the time back in, and see when the error occurs.
     
    PoPSiCLe, Sep 25, 2014 IP
  5. seductiveapps.com

    seductiveapps.com Active Member

    Messages:
    200
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #5
    possibly a new error :

    Failed to load resource: the server responded with a status of 500 (Internal Server Error) http://projects.qbf.ie/hogan/wp-content/plugins/revolution-slider/rs-plugin/css/captions.php?rev=4.3.3&ver=4.0

    you have a simple error (syntax error) in captions.php most likely..
     
    seductiveapps.com, Oct 25, 2014 IP