SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    reads the ********* Crier silver trophybronze trophy longneck's Avatar
    Join Date
    Feb 2004
    Location
    Tampa, FL (US)
    Posts
    9,854
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    download buttons aren't working

    i've got a web application with a really ugly download page. it works in firefox, but not in internet explorer. the code looks mostly like this:
    HTML Code:
    <html>
    <head><link rel="stylesheet" type="text/css" href="style.css" /></link></head>
    <body>
    <h3><a href='main.php'>main menu</a> >> <a href='import.php'>import</a></h3>
    <h2>NF FTP Import</h2>
    
    <p><form action='/dave/import.php' method='post' >
    <table border='1'>
    	<tr>
    		<td width='120'>Import</td>
    		<td width='200'>Report name</td>
    		<td width='120'>Date</td>
    		<td width='120'>Download</td>
    		<td width='120'>Delete</td>
    	</tr>
    	<tr>
    		<td><input type='submit' name='ftpfilename' value='FBNR112A0928.TXT'></td>
    		<td>112A</td>
    		<td>09/28</td>
    		<td><input type='submit' name='ftpdownload' value='FBNR112A0928.TXT'></td>
    		<td><input type='checkbox' name='delete[]' value='FBNR112A0928.TXT'></td>
    	</tr>
    	<tr>
    		<td><input type='submit' name='ftpfilename' value='FBNR220A0927.TXT'></td>
    		<td>220A</td>
    		<td>09/27</td>
    		<td><input type='submit' name='ftpdownload' value='FBNR220A0927.TXT'></td>
    		<td><input type='checkbox' name='delete[]' value='FBNR220A0927.TXT'></td>
    	</tr>
    .... more tr's ....
    	<tr>
    		<td><input type='submit' name='ftpfilename' value='FBNR153D1001.TXT'></td>
    		<td>153D</td>
    		<td>10/01</td>
    		<td><input type='submit' name='ftpdownload' value='FBNR153D1001.TXT'></td>
    		<td><input type='checkbox' name='delete[]' value='FBNR153D1001.TXT'></td>
    	</tr>
    </table><br />
    		<td><input type='submit' name='deletesubmit' value='delete checked entries'></td>
    </form>
    <h2>Manual Import</h2>
    
    </body></html>
    any ideas why when i click on any of the buttons in IE, nothing happens?
    Check out our new Industry News forum!
    Keep up-to-date with the latest SP news in the Community Crier

    I edit the SitePoint Podcast

  2. #2
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,782
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    No idea why it isn't letting you do anything in IE. But perhaps it is because you are in quirks mode. Meaning you have no Doc type.

    Add
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    before <html>
    Always looking for web design/development work.
    http://www.CodeFundamentals.com

  3. #3
    SitePoint Wizard silver trophybronze trophy
    Join Date
    Jul 2008
    Location
    New York, NY
    Posts
    1,432
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I would add a doctype as Ryan has already said, but also make sure you validate your coding. I see an error already:
    Replace -

    This:
    Code:
    </table><br />
    		<td><input type='submit' name='deletesubmit' value='delete checked entries'></td>
    </form>
    <h2>Manual Import</h2>
    With this:
    Code:
    	<tr>
    		<td><input type='submit' name='deletesubmit' value='delete checked entries' /></td>
    	</tr>
    	</table>
    </form>
    
    <h2>Manual Import</h2>
    If you do end up going the 'transitional' route, use this to start off your document:

    Code:
    <!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">
    <head>
    	<meta http-equiv="content-type" content="text/html; charset=utf-8" />

  4. #4
    Non-Member
    Join Date
    Oct 2008
    Location
    Banned
    Posts
    506
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I validated your page. Here is the cleaned up version.

    Code:
    <!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" xml:lang="en" lang="en">
    <head>
    <link rel="stylesheet" type="text/css" href="style.css" />
    <title></title>
    </head>
    <body>
    <h3><a href='main.php'>main menu</a> &gt;&gt; <a href='import.php'>import</a></h3>
    <h2>NF FTP Import</h2>
    <form action="/dave/import.php" method="post">.... more tr's ....
    <table border="1">
    <tr>
    <td width='120'>Import</td>
    <td width='200'>Report name</td>
    <td width='120'>Date</td>
    <td width='120'>Download</td>
    <td width='120'>Delete</td>
    </tr>
    <tr>
    <td><input type='submit' name='ftpfilename' value='FBNR112A0928.TXT' /></td>
    <td>112A</td>
    <td>09/28</td>
    <td><input type='submit' name='ftpdownload' value='FBNR112A0928.TXT' /></td>
    <td><input type='checkbox' name='delete[]' value='FBNR112A0928.TXT' /></td>
    </tr>
    <tr>
    <td><input type='submit' name='ftpfilename' value='FBNR220A0927.TXT' /></td>
    <td>220A</td>
    <td>09/27</td>
    <td><input type='submit' name='ftpdownload' value='FBNR220A0927.TXT' /></td>
    <td><input type='checkbox' name='delete[]' value='FBNR220A0927.TXT' /></td>
    </tr>
    <tr>
    <td><input type='submit' name='ftpfilename' value='FBNR153D1001.TXT' /></td>
    <td>153D</td>
    <td>10/01</td>
    <td><input type='submit' name='ftpdownload' value='FBNR153D1001.TXT' /></td>
    <td><input type='checkbox' name='delete[]' value='FBNR153D1001.TXT' /></td>
    </tr>
    </table>
    <br />
    <h2>Manual Import</h2>
    <table>
    <tr>
    <td><input type='submit' name='deletesubmit' value='delete checked entries' /></td>
    </tr>
    </table>
    </form>
    </body>
    </html>
    Not sure how everyone missed this but you don't need that </link> there. That is a self closing tag therefore you had it right by doing /> at the end of the linking to an external stylesheet tag. That wouldn't fix the download buttons.

    The reason your buttons aren't doing anything is probably because the action is wrong. Can you post the content of your action file from the <form> tag? Also you had a lot of validation errors. For future reference to display the greater then signs do not do >>, do &gt; for each greater then sign. In your case do &gt;&gt;. This isnt C++

  5. #5
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,782
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    The mere fact that this isn't working in IE only shows that your code is fine, yet some unvalidated part of it makes it not work.
    Always looking for web design/development work.
    http://www.CodeFundamentals.com


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
  •