Javascript Error

dbooth80dbooth80 Registered Users Posts: 36 Big grins
edited January 25, 2007 in SmugMug Support
I'm getting a javacript error when I load my smugmug galleries.

The error is reported, in firefox, as:

Error: document.getElementById("searchWords") has no properties
Source File: http://viewingbooth.smugmug.com/gallery/2368079
Line: 110



Line 110 of the relevant source file is:

******** type="text/javascript">
document.getElementById('searchWords').value = ' ';
</********
I'm assuming that this is part of the built-in code from smugmug, though it may be something wrong with my javascript coding (I've put in bulk zoom thumbnail, as well as the slideshow scripts). It doesn't seem to affect the viewing of the page at all, but it does show up in the Error Console of Firefox. And in IE, it shows up in the status bar: "Done, but with errors."

Comments

  • AndyAndy Registered Users Posts: 50,016 Major grins
    edited January 24, 2007
    dbooth80 wrote:
    I'm getting a javacript error when I load my smugmug galleries.

    The error is reported, in firefox, as:

    Error: document.getElementById("searchWords") has no properties
    Source File: http://viewingbooth.smugmug.com/gallery/2368079
    Line: 110



    Line 110 of the relevant source file is:

    ******** type="text/javascript">
    document.getElementById('searchWords').value = ' ';
    </********
    I'm assuming that this is part of the built-in code from smugmug, though it may be something wrong with my javascript coding (I've put in bulk zoom thumbnail, as well as the slideshow scripts). It doesn't seem to affect the viewing of the page at all, but it does show up in the Error Console of Firefox. And in IE, it shows up in the status bar: "Done, but with errors."
    Looking, standby...
  • AndyAndy Registered Users Posts: 50,016 Major grins
    edited January 24, 2007
    In addition to SMUGSEARCH in your header html, you had this:


    <*script* type="text/javascript">
    document.getElementById('searchWords').value = ' ';
    </*script*>

    (with no asterisks)

    Which was causing the error. I removed that.
  • dbooth80dbooth80 Registered Users Posts: 36 Big grins
    edited January 24, 2007
    Thanks! Must have been a remnant from something. Sorry for not finding that myself; I only looked in the javascript window.
  • 3rdPlanetPhotography3rdPlanetPhotography Banned Posts: 920 Major grins
    edited January 24, 2007
    That must be why Andy is titled the "House Pro"

    thumb.gif
  • guerrierurbainguerrierurbain Registered Users Posts: 1 Beginner grinner
    edited January 25, 2007
    Error on page
    Hi! I can't seem to display the pictures in my galleries and receive the following message when I tried to access Smugmug from work.

    "Problems with this Web page might prevent it from being displayed properly or funtioning properly...

    Line: 60
    Char: 2
    Error: Object expected
    Code: 0
    URL: http://shahromey.smugmug.com/gallery/2226299


    But there seems to be no problem when I access from home. Incidentally, it hadn't happen before at work. It was fine until a few days ago. Is there anything I can do at my end? Thanx!
  • AndyAndy Registered Users Posts: 50,016 Major grins
    edited January 25, 2007
    Hi! I can't seem to display the pictures in my galleries and receive the following message when I tried to access Smugmug from work.

    "Problems with this Web page might prevent it from being displayed properly or funtioning properly...

    Line: 60
    Char: 2
    Error: Object expected
    Code: 0
    URL: http://shahromey.smugmug.com/gallery/2226299


    But there seems to be no problem when I access from home. Incidentally, it hadn't happen before at work. It was fine until a few days ago. Is there anything I can do at my end? Thanx!
    HI. We hit your site just fine, IE6, IE7, all supported browsers. Perhaps your work is blocking some access to us? Unfortunately it happens :(
Sign In or Register to comment.