Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>What is your jquery version ? I've test this code with 1.9.1 and 1.10.2 : </p> <p><strong>getFiles.php :</strong></p> <pre><code>&lt;?php //$dir = $_SESSION['user']['id'] . "/xmls/"; // files are in xmls dir $dir = 'xmls/'; // for testing if ($dirHandle = opendir($dir) ){ } else { echo ("&lt;br /&gt;getFiles.php: $dir not found."); exit; } echo ("&lt;option selected='selected' value=''&gt;&lt;b&gt; $list &lt;/b&gt; &lt;/option&gt;"); // first line of this drop down option while (false !== ($fileName = readdir($dirHandle))) { if ($fileName == "." || $fileName == "..") { continue; } $fileNames[] = $fileName; // collect file names } sort($fileNames); foreach ($fileNames as $fileName) { $displayName = basename($fileName, '.xml'); // cut .xml at end echo ("&lt;option value='$displayName'&gt;" . $displayName . "&lt;/option&gt;"); } </code></pre> <p><strong>get_files.html</strong></p> <pre><code>&lt;script src="jquery-1.10.2.min.js" type="text/javascript"&gt;&lt;/script&gt; &lt;select id='load_dropdown' name=loads help_token="load_dropdown" title=""&gt; &lt;option value='LOAD' selected='selected'&gt;LOAD&lt;/option&gt; &lt;/select&gt; &lt;script&gt; $('select#load_dropdown').load('getFiles.php', {list : 'LOAD'}); //fill the load drop down list &lt;/script&gt; </code></pre> <p>I have created a <code>xmls</code> folder in the root of the project with <code>file1.xml</code> and <code>file2.xml</code>.</p> <p>It works on IE9 (ver 9.0.8112. update 9.0.24) (same result as other browsers). the listbox contain <code>file1</code> and <code>file2</code> : <img src="https://i.stack.imgur.com/9L7LV.png" alt="IE9 - load"></p> <p>If you want to see the generated html, you juste have to click the refresh button (in the red square)</p> <p>Hope it's what you want.</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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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