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 1 of 2 12 LastLast
Results 1 to 15 of 23
  1. #1
    New Coder
    Join Date
    Nov 2009
    Posts
    12
    Thanks
    1
    Thanked 0 Times in 0 Posts

    I killed my site!!

    Hi! I hope I'm posting this in the right forum....

    Somehow I killed my navigation menus!! Menus without sub-menus are fine, but I can't get any menu with a sub-menu to expand. What did I do?! Here's the first few (there's about 30 altogether). Hellllppppppp!!!

    <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td style="background:images/categories-bg.jpg repeat-x;"><img src="images/categories.jpg" width="217" height="41" /></td>
    </tr>
    <tr>
    <td class="list">
    <ul>
    <li onclick="show_next('tab1')" class="tab_hover" id="tab1"><a href="/SiteIndex.htm">All Product Index <span class="icon"></span> </a>
    <div id="tab1_data" style="display:block;"></div></li>

    <li id="tab2" class="tab" onclick="show_next('tab2')"><a href="javascript:void(0);">Adhesives &amp; Sandpaper <span class="icon"></span> </a>
    <div id="tab2_data">
    <ul>
    <li><a href="/surehold.htm">Sure-Hold Super Glue</a></li>
    <li><a href="/E6000.htm">E6000</a></li>
    <li><a href="/Craftics33.htm">Craftics Acrylic Cement</a></li>
    <li><a href="/sandpaper.htm">Sandpaper</a></li>
    </ul>
    </div>
    </li>

    <li id="tab3" class="tab" onclick="show_next('tab3')"><a href="javascript:void(0);">Beadable Kits <span class="icon"></span> </a>
    <div id="tab3_data">
    <ul>
    <li><a href="/Bottle_opener.htm">Bottle Opener</a></li>
    <li><a href="/BeadableStopper.htm">Beadable Wine Stoppers</a></li>
    <li><a href="/BeadPens.htm">Bead Pens</a></li>
    </ul>
    </div>
    </li>

    <li id="tab4" class="tab" onclick="show_next('tab4')"><a href="javascript:void(0);">Beads/Cabochons <span class="icon"></span> </a>
    <div id="tab4_data">
    <ul>
    <li><a href="/beads.htm">Fancy Glass Beads</a></li>
    <li><a href="/abalone.htm">Abalone, Mother of Pearl</a></li>
    <li><a href="/dichroic.htm">Dichroic Cabochons</a></li>
    </ul>
    </div>
    </li>

    <li id="tab5" class="tab" onclick="show_next('tab5')"><a href="javascript:void(0);">Bottle Stoppers <span class="icon"></span> </a>
    <div id="tab5_data">
    <ul>
    <li><a href="/Stoppers.htm">Stoppers w/Wood Tops</a></li>
    <li><a href="/Stopperbevel.htm">Stoppers w/Bevel Tops</a></li>
    <li><a href="/BeadableStopper.htm">Beadable Bottle Stoppers</a></li>
    <li><a href="/stoppers_display.htm">Stopper Display Stand</a></li>
    </ul>
    </div>
    </li>

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,744
    Thanks
    22
    Thanked 1,838 Times in 1,822 Posts
    Hello Irubin28,
    Give us a link to the site. What you've posted is not enough information.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #3
    New Coder
    Join Date
    Nov 2009
    Posts
    12
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Thanks!!

    My website is http://www.polymerclayprojects.com

  • #4
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,744
    Thanks
    22
    Thanked 1,838 Times in 1,822 Posts
    Looks like a bit of cut/paste got out of control?
    I found this bit, highlighted in red, that definitely does not belong. Could be more, I did not look further. -
    Code:
     </tr>
     <tr>
     <td class="bodypart"><table border="0" align="center" cellpadding="0" cellspacing="0" width="100%">
      <tr>
     <td valign="top" class="leftNav"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
     
    <table width="100%" border="0" cellpadding
    Run it all through the validator and see what errors you can fix. See the links about validation in my sig below.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #5
    New Coder
    Join Date
    Nov 2009
    Posts
    12
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Sorry - I'm not sure I did it right. I didn't see any errors that looked like they were related. I did use a tool inside Expression Web - the web tool I have and it noted 65 instances of "undefined class"...I am not sure I understand why everything was working fine for a year or more, and suddenly it doesn't....?

  • #6
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    Did you mess with your javascript at all recently?

    In Firebug your script is throwing an error in the hideAll() function. It says that "document.getElementById(tabdata) is null" which means that you should be error checking before trying to set the style.display value.

    Try this and see if functionality returns:
    Code:
    function hideAll(dt){
    	for(var i=1; i<=33;i++){
    		var tabdata = "tab"+i+"_data";
    		if (document.getElementById(tabdata)) {
    			document.getElementById(tabdata).style.display='none';
    		}
    	}
    	if(dt) {
    		document.getElementById(dt).style.display='block';
    	}
    }
    And even if this fixes the issue, make a stop by the validator and fix all of your code, whether the issues seem relevant or not (currently 92 Errors, 5 warnings). Just because a markup error isn't causing a noticeable problem now doesn't mean that it won't screw something up later.
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting

  • #7
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    you have an error in your table structure which is triggering many more errors.

    look for this line:

    Code:
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
    see how the tag prior to it is a tr tag. replace the <tr> tag with <tr><td> and see what happens to the validator results.

    bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link

  • #8
    New Coder
    Join Date
    Nov 2009
    Posts
    12
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Sorry to be dense guys - I am not a developer. I usually just create new pages and stay away from scripts. But yesterday I used my ISPs editor because I was not at home where my copy of Expression Web is that I would normally use. I'm not sure why, but I think someone the mess started there.

    I added the <td> to the leftNav.html file, but still nothing works....??

  • #9
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    get yourself a copy of firefox and download the web developer plug-in. it'll let you go directly from your web page to the validator and show you where the errors are.

    If it were my choice, I would use the son of suckerfish drop down which doesn't need javascript but instead uses css and is therefore workable for clients which have javascript or scripting disabled.

    bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link

  • #10
    New Coder
    Join Date
    Nov 2009
    Posts
    12
    Thanks
    1
    Thanked 0 Times in 0 Posts
    ok thanks! I do use Firefox - I will get the plug in.

    I am having my ISP restore my files from the day before. I still don't totally understand why using their tool causes problems like this...I know there's an explanation, but they couldn't really tell me.

  • #11
    New Coder
    Join Date
    Nov 2009
    Posts
    12
    Thanks
    1
    Thanked 0 Times in 0 Posts
    ok, so the ISP may not be restoring my files....I apologize for sounding like a smart-a@#, but I need to get my menus working soon - without menus, my customers can't place orders. Is there a way to diagnose why its not working aside from the validator? I can't figure out from there what the specific issue is and I need to get my site working.
    larry

  • #12
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,744
    Thanks
    22
    Thanked 1,838 Times in 1,822 Posts
    Wow, that is unfortunate that you don't have a working backup.

    I clicked around on your site and seem to be able to place an order but the menu does not work very reliably. Using FireFox to do that. IE8 is worse.

    I think this may be beyond your ability to fix and you should think about hiring it out. Maybe it's a good excuse for a facelift to the whole site.

    Once you get it running again, you should check with your isp about how to set up a reliable backup so you'll have a working version to go back to if anything else ever happens.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #13
    New Coder
    Join Date
    Nov 2009
    Posts
    12
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Thanks.

    Yes, unfortunate I wasn't smart enough to keep a copy...and yes, the problem IS the menus! That's what I think I said initially...my menus no longer work.

    With all due respect, and I sincerely appreciate the fact that you've responded, I was hoping to find an actual answer other than 'run it through the validator' - I mean its a good tool to use, but its not much in the way of actual advice. Telling everyone to use the validator is not really sharing knowledge - again, no disrespect intended....
    I'm not a developer, but what I have on my website is not rocket science...I should be able to fix it if someone is willing to share their insite about the actual problem. Sorry if my response seems flippant.

  • #14
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    Quote Originally Posted by lrubin28 View Post
    Sorry to be dense guys - I am not a developer. I usually just create new pages and stay away from scripts. But yesterday I used my ISPs editor because I was not at home where my copy of Expression Web is that I would normally use. I'm not sure why, but I think someone the mess started there.

    I added the <td> to the leftNav.html file, but still nothing works....??
    What specifically did you do with the editor?

    Have you tried my suggestion yet?
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting

  • #15
    New Coder
    Join Date
    Nov 2009
    Posts
    12
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I changed some of the pricing on my html pages. AND probably most importantly I went into the leftNav.html and was trying to add some new pages to my navigational menus. But I used my ISP's file manager, which now they tell me I shouldn't do because it creates some sort of conflict(? they couldn't explain it well). But now my sub menus won't work...like if you click on Kaleidoscope Kits for example, it should expand to show all the kits...


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

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