SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Addict
    Join Date
    Feb 2012
    Location
    Kiwi in Bangkok
    Posts
    352
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Can someone explain how to back trace a dead button?

    Hello,

    I have a Button on a page that is dead/not working.

    using FireBug I can see this below.

    <tr>
    <tr>
    <form name="select_auctions" method="get" action="list_auctions.php"></form>
    <tr>
    <tr>
    <tr>
    <td align="center">
    <input id="form_save_settings" type="button" value="Proceed" name="form_save_settings" onclick="send_form(select_auctions, 'approval');">
    </td>
    </tr>
    </tbody>

    all help appreciated

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    23,592
    Mentioned
    411 Post(s)
    Tagged
    6 Thread(s)
    The CSS applying to that code is probably the culprit. Can we see a live example of this? Is the code you've posted just a snippet of the HTML? If not, you have too many <tr>s.

  3. #3
    SitePoint Addict
    Join Date
    Feb 2012
    Location
    Kiwi in Bangkok
    Posts
    352
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello ralph.m

    thank you for your reply, ok here is what I can see using FireBug table to table.

    <table width="100%" cellspacing="0" cellpadding="0" border="0">
    <tbody>
    </table>
    <table class="fside" width="100%" cellspacing="3" cellpadding="3" border="0">
    <tbody>
    <tr>
    <tr>
    <tr>
    <tr>
    <form name="select_auctions" method="get" action="list_auctions.php"></form>
    <tr>
    <tr>
    <tr>
    <td align="center">
    <input id="form_save_settings" type="button" value="Proceed" name="form_save_settings" onclick="send_form(select_auctions, 'approval');">
    </td>
    </tr>
    </tbody>
    </table>

    Complete:

    PHP Code:
    <html>
    <
    head>
    <
    body bgcolor="#ffffff" topmargin="20" leftmargin="8">
    <
    table width="100%" cellspacing="0" cellpadding="0" border="0" style="border-bottom: 1px solid #777777; background-image: url(images/bg_head.gif); background-repeat: repeat-x; background-position: bottom;">
    <
    div>
    <
    table width="100%" cellspacing="4" cellpadding="0" border="0">
    <
    tbody>
    <
    tr>
    <
    td width="220" valign="top">
    <
    td width="10">
    <
    td width="100%" valign="top">
    <
    script language="Javascript">
    <
    style type="text/css">
    <
    div id="centered_div">
    <
    div class="mainhead">
    <
    table width="100%" cellspacing="0" cellpadding="0" border="0">
    <
    tbody>
    </
    table>
    <
    table class="fside" width="100%" cellspacing="3" cellpadding="3" border="0">
    <
    tbody>
    <
    tr>
    <
    tr>
    <
    tr>
    <
    tr>
    <
    form name="select_auctions" method="get" action="list_auctions.php"></form>
    <
    tr>
    <
    tr>
    <
    tr>
    <
    td align="center">
    <
    input id="form_save_settings" type="button" value="Proceed" name="form_save_settings" onclick="send_form(select_auctions, 'approval');">
    </
    td>
    </
    tr>
    </
    tbody>
    </
    table>
    <
    table width="100%" cellspacing="0" cellpadding="0" border="0">
    </
    td>
    </
    tr>
    </
    tbody>
    </
    table>
    <
    br>
    <
    table width="100%" cellspacing="0" cellpadding="0" border="0" style="border-top: 1px solid #777777; background-image: url(images/bg_foo.gif); background-repeat: repeat-x; background-position: top;">
    <
    script src="http://analytics.hosting24.com/count.php" type="text/javascript">
    <
    style>
    <
    script src="http://analytics.hosting24.com/j.js" type="text/javascript">
    <
    script type="text/javascript">
    <
    noscript>&lt;a href="http://www.hosting24.com/"&gt;&lt;img src="http://analytics.hosting24.com/count.php" alt="web hosting" /&gt;&lt;/a&gt;</noscript>
    <
    div id="facebox" style="top: 110.5px; left: 306px; display: none;">
    </
    body>
    </
    html

  4. #4
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    23,592
    Mentioned
    411 Post(s)
    Tagged
    6 Thread(s)
    Again, CSS is important here. But to be honest, that HTML needs a massive cleanup. You've got all kinds of things like multiple empty, unclosed <tr>s

    <tr>
    <tr>
    <tr>
    <tr>

    a closing </form> tag before the remaining <form> elements, a couple of empty or incomplete tables ... The first thing to do is to work out what the page actually needs to do / present, and then start from there. With code this jumbled, any number of things could be causing your problem.

    I don't mean to be cruel, but honestly, it's critical to tidy up this code first. Otherwise, any superficial help is like offering a bandaid to a patient with severe coronary disease.

  5. #5
    SitePoint Addict
    Join Date
    Feb 2012
    Location
    Kiwi in Bangkok
    Posts
    352
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you Ralph.m

    I will start to tidy up the code, and see how things develop,

    your reply/help/ideas appreciated


  6. #6
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,564
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Ignoring the HTML...well, ignoring how very invalid it is, you close the <form> before you have anything in it!

    Also your submit button relys on the use of a javascript function onclick...post that code here. If you remove it, does it work?

    Your code is far too invalid to even attempt fixing it at this stage. You shouldn't even really be using tables from the looks of it .
    Twitter-@Ryan_Reese09
    http://www.ryanreese.us -Always looking for web design/development work


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
  •