Results 1 to 9 of 9

Thread: Simple Controls Gallery v1.3 Firefox problem Error: DIV

  1. #1
    Join Date
    Mar 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Simple Controls Gallery v1.3 Firefox problem Error: DIV

    I am having a problem with this Script: Simple Controls Gallery v1.3 when using Firefox 3.07 I get the error: Error: DIV with ID "simplegallery1" not found on page.

    After I click OK on the error the script works fine. How do I get the error not to come up? I tried to follow the direction for building this script but apparently I didn't do something right.

    The error page is at: http://dutchpark.com/2009/test3.html
    This is the script I was trying to do: http://www.dynamicdrive.com/dynamici...plegallery.htm

    Thanks, Kevin

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Did you correct the issue already? I'm not getting the alert message in FF3.x.
    DD Admin

  3. #3
    Join Date
    Mar 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I did figure it out. Thanks

  4. #4
    Join Date
    Aug 2008
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    What would cause this error? It seems that this script calls a simple gallery on every page when you only want it on one.

    If I am correct it has something to do with this from line 42
    Code:
     if (setting.$wrapperdiv.length==0){ //if no wrapper DIV found
    			alert("Error: DIV with ID \""+setting.wrapperid+"\" not found on page.")
    			return

    how do you disable this?
    Last edited by capnhud; 12-17-2009 at 06:32 PM. Reason: added more information

  5. #5
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    capnud:
    Well, for every page that references the Simple Gallery .js file, the script will try and display a gallery on that page, yes. The script does a check on the page in question to see if an empty DIV is defined to house the gallery, and if non is found, alerts an error message. You can disable that message by commenting out the below line inside the .js file:

    Code:
    		if (setting.$wrapperdiv.length==0){ //if no wrapper DIV found
    			//alert("Error: DIV with ID \""+setting.wrapperid+"\" not found on page.")
    			return
    		}
    DD Admin

  6. #6
    Join Date
    Aug 2008
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I was not sure how much of that I needed to comment out in order for that to work. Problem is solved

  7. #7
    Join Date
    Nov 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I've the same problem with my website...
    Error: DIV with ID "windfinder" not found on page.
    Someone can help me please...?
    Last edited by fmangione; 11-28-2010 at 04:43 PM. Reason: i can leave my URL

  8. #8
    Join Date
    Nov 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by fmangione View Post
    I've the same problem with my website...
    Error: DIV with ID "windfinder" not found on page.
    Someone can help me please...?
    I can leave The URL

  9. #9
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by ddadmin View Post
    capnud:
    Well, for every page that references the Simple Gallery .js file, the script will try and display a gallery on that page, yes. The script does a check on the page in question to see if an empty DIV is defined to house the gallery, and if non is found, alerts an error message. You can disable that message by commenting out the below line inside the .js file:

    Code:
    		if (setting.$wrapperdiv.length==0){ //if no wrapper DIV found
    			//alert("Error: DIV with ID \""+setting.wrapperid+"\" not found on page.")
    			return
    		}
    If it's really the same problem, try the above quoted solution first. It's in the simplegallery.js file.

    Quote Originally Posted by fmangione View Post
    I can leave The URL
    Yes you can (best to post it without the http part or the www part). If you want more help though, and the above is not the solution, please start a new thread for a new question and include the URL there.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

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