Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Why does my Firefox keep hanging on this page?  (Read 3875 times)

0 Members and 1 Guest are viewing this topic.

Rinkotsu

    Topic Starter


    Newbie

    Why does my Firefox keep hanging on this page?
    « on: March 16, 2009, 10:07:44 PM »
    It's a page I've created for private messages. It works completely how it's suppose to, except a tenth of the time it hangs Firefox when it's opened. Here is the HTML output after PHP has done its job:

    Code: [Select]
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
     <head>
      <link rel="shortcut icon" href="/favicon.ico" />
      <link href="/style/000.css" rel="stylesheet" type="text/css" />
      <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
    <script type="text/javascript">
    function checkAll(boxes) {
    var theboxes = document.getElementsByName( boxes );
    for(var i = 0; i &#60; theboxes.length; i++) {
    theboxes[i].checked = true;
    }
    }

    function uncheckAll(boxes) {
    var theboxes = document.getElementsByName( boxes );
    for(var i = 0; i &#60; theboxes.length; i++) {
    theboxes[i].checked = false;
    }
    }

    </script>  <title></title>
      <!--[if IE]><style>input {  font-size: .9em; }</style><![endif]-->
     </head>
     <body>

      <h1></h1>
      <blockquote><p></p></blockquote>
      <div id="container">

       <div id="directory">
        <a href="/user.php">(540)</a> <a href="#">Friends (128)</a> <a href="#">Notifications (2)</a> <a href="/messages.php">Private Messages</a> <a href="/user.php?logout">Log Out</a>   </div>

       <ul id="navigation">

        <li><a href="" title="Overview">Overview</a></li>
        <li><a href="user.php" title="User Control Panel">User</a></li>
        <li><a href="news.php" title="News">News</a></li>
        <li><a href="projects.php" title="Projects">Projects</a></li>
        <li><a href="clients.php" title="Clients" style="text-decoration: line-through;">Clients</a></li>
        <li><a href="boards/index.php" title="Message Boards" style="text-decoration: line-through;">Boards</a></li>

        <li><a href="about.php" title="About" style="text-decoration: line-through;">About</a></li>
       </ul>
       <div id="ad"><a href="http://getfirefox.com" title="Get Firefox"><img alt="Get Firefox" src="http://sfx-images.mozilla.org/affiliates/Buttons/firefox3/120x240.png" /></a></div>
       <div id="infobox">
        <a href="http://validator.w3.org/check?uri=referer" title="Valid XHTML 1.1"><img alt="Valid XHTML 1.1" src="http://www.w3.org/Icons/valid-xhtml11" /></a>
        <a href="http://jigsaw.w3.org/css-validator/check?uri=referer" title="Valid CSS"><img alt="Valid CSS" src="http://jigsaw.w3.org/css-validator/images/vcss" /></a>
       </div>

       <div class="container2">

       <div class="content">
        <h2>Conversations</h2>
         <span><a href="messages.php">Conversations</a> |
    <a href="messages.php?send">Compose</a></span>
         <form action="messages.php" method="post"><table style="text-align: center;"><tr><td>
    <input name="select[]" type="checkbox" value="10" /></td><td>
    <a href="user.php?id=8">Blazing Saddles</a></td><td><a href="messages.php?id=10#new">BAJKKAASXX</a>
    </td><td>Feb 25, 2009</td></tr>

    <tr><td><input name="select[]" type="checkbox" value="11" /></td><td>
    <a href="user.php?id=7">SamuelLJackson</a></td><td>
    <strong style="font-size: .8em;">(saved)</strong>
    <a href="messages.php?id=11#new">NATE LLOYD</a></td><td>Feb 25, 2009</td></tr>

          <tr><td colspan="4"><a href="javascript:void(0)" onclick="checkAll('select[]')">Check All</a> |
    <a href="javascript:void(0)" onclick="uncheckAll('select[]')">Uncheck All</a>
    <input name="delete" type="submit" value="Delete" /><input name="report" type="submit" value="Report" />
    <input name="save" type="submit" value="Save" /></td></tr>
        </table></form>
       </div>

       </div>

       <div id="post"><a href="#">Back to top</a></div>
      </div>

      <div id="footer"><a href="/advertise.php" title="Advertise with us" style="text-decoration: line-through;">Advertising</a>
    <a href="" title="Terms of Service" style="text-decoration: line-through;">Terms</a>
    <a href="/privacy.php" title="Privacy Policy">Privacy</a>
    <a href="help.php" title="Help">Help</a><a href="/admin/index.php" title="Admin CP">Admin CP</a>
    <a href="mod/index.php" title="Mod CP">Mod CP</a><br /><a href="#">Copyright &copy; 2008 </a></div>

     </body>
    </html>

    (I removed a bunch of crap from that that was non-essential to the purpose of the question, just stuff such as the site name and such)

    So what is it? It only happens when I have the JavaScript in there. I asked on questions, and a Top Contributor answered but it didn't help AT ALL. All it caused me was for me to switch from a checkbox to check all to two different links.

    http://answers.yahoo.com/question/index?qid=20090316144249AAsZ2AM
    « Last Edit: March 17, 2009, 03:27:49 AM by kpac »

    kpac

    • Web moderator
    • Moderator


    • Hacker

    • kpac®
    • Thanked: 184
      • Yes
      • Yes
      • Yes
    • Certifications: List
    • Computer: Specs
    • Experience: Expert
    • OS: Windows 7
    Re: Why does my Firefox keep hanging on this page?
    « Reply #1 on: March 17, 2009, 03:30:19 AM »
    What do you mean "hangs"?

    Rinkotsu

      Topic Starter


      Newbie