Note that there are some explanatory texts on larger screens.

plurals
  1. POjQuery ajaxForm plugin not running success function in IE6
    primarykey
    data
    text
    <p>I'm using the jQuery plugin <a href="http://www.malsup.com/jquery/form/" rel="nofollow noreferrer">ajaxForm</a> to submit a file upload form via AJAX. The script submits the form, which, upon success, runs <code>uploadResponse()</code> that adds a new row into a <code>&lt;table&gt;</code> on the page. It works fine in Opera, Firefox, Safari, IE7, and IE8.</p> <p>However, IE6 does not run the <code>uploadResponse()</code> after the form has been submitted. The POST request from the script runs and you can see the file when you refresh the page. However, <code>uploadResponse()</code> simply does not run and the DOM is not updated.</p> <p>Here is the portion of the script:</p> <pre><code>/** * Ajaxified upload form */ $('form#upload').ajaxForm( { url: 'ajax/upload.php', success: uploadResponse, dataType: 'xml' }); /** * Upload form response * * @param responseXML Returned from the AJAX POST */ function uploadResponse(responseXML) { var displayName = $('display_name', responseXML).text(); var fileName = $('name', responseXML).text(); var directoryID = $('directory_id', responseXML).text(); var abbrTitle = $('abbr_title', responseXML).text(); var tableRow = 'file_' + tableRowCount; $('table#listing tbody').prepend(row(displayName, null, '', 'delete.php?directory_id=' + directoryID + '&amp;file=' + fileName, 'Delete', null, tableRow, 'fileName jsHide', 'rename jsHide', 'delete jsHide', abbrTitle)); $('td.jsHide').fadeIn(); // AJAX renaming $('tr#file_' + tableRowCount).find('td.fileName').click(generateRenameForm); // Remove "no files" notficiation $('p#noFiles').remove(); alternatingRows(); tableRowCount++; } </code></pre> <p>The particular code in the <code>uploadResponse()</code> function is not under question. It simply does not run (I tested it using <code>alert()</code>).</p> <p>Also, IE6 displays the "this page contains secure and non-secure content" dialogue box. All of the scripts, stylesheets, etc. are all local on the secure server, so nothing as far as I'm aware is non-secure. I've checked over this pretty thorougly.</p> <p>Thanks for any help.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload