Note that there are some explanatory texts on larger screens.

plurals
  1. POtab order for links in a simplemodal dialog
    primarykey
    data
    text
    <p>I am using the excellent jquery.simplemodal dialog plugin to show a list of items. These items contain hyperlinks. It all works great except that the links in the modal dialog arent coming up as part of the tab order. I have tried setting tabindex explicitly, but for some reason only the input elements are in the tab order - if I tab through the dialog I just cycle through the 3 input elements and dont hit the anchors.</p> <p>Am I doing something wrong with calling simplemodal plugin?</p> <p>An example is at <a href="http://dev.andrewbucknell.com/basic/demo1.html" rel="nofollow">http://dev.andrewbucknell.com/basic/demo1.html</a></p> <p>The code (with relative paths) for the demo is as follows</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt; SimpleModal Basic Modal Dialog &lt;/title&gt; &lt;meta name='author' content='Eric Martin' /&gt; &lt;meta name='copyright' content='2010 - Eric Martin' /&gt; &lt;!-- Page styles --&gt; &lt;link type='text/css' href='css/demo.css' rel='stylesheet' media='screen' /&gt; &lt;!-- Contact Form CSS files --&gt; &lt;link type='text/css' href='css/basic.css' rel='stylesheet' media='screen' /&gt; &lt;!-- IE6 "fix" for the close png image --&gt; &lt;!--[if lt IE 7]&gt; &lt;link type='text/css' href='css/basic_ie.css' rel='stylesheet' media='screen' /&gt; &lt;![endif]--&gt; &lt;!-- JS files are loaded at the bottom of the page --&gt; &lt;/head&gt; &lt;body&gt; &lt;div id='container'&gt; &lt;div id='logo'&gt; &lt;h1&gt;Simple&lt;span&gt;Modal&lt;/span&gt;&lt;/h1&gt; &lt;span class='title'&gt;A Modal Dialog Framework Plugin for jQuery&lt;/span&gt; &lt;/div&gt; &lt;div id='content'&gt; &lt;div id='basic-modal'&gt; &lt;h3&gt;Basic Modal Dialog&lt;/h3&gt; &lt;p&gt;A basic modal dialog with minimal styling and no additional options. There are a few CSS properties set internally by SimpleModal, however, SimpleModal relies mostly on style options and/or external CSS for the look and feel.&lt;/p&gt; &lt;input type='button' name='basic' value='Demo' class='basic'/&gt; or &lt;a href='#' class='basic'&gt;Demo&lt;/a&gt; &lt;/div&gt; &lt;div id="funddialog"&gt; &lt;div id="fundpickfilter"&gt; &lt;div class="fundfilter"&gt; &lt;label style="font-weight: bold;" for="filtertext"&gt;Find: &lt;/label&gt; &lt;input class="tfilter" type="text" id="filtertext" value=""/&gt; &lt;/div&gt; &lt;div id="fundactions"&gt; &lt;button type="button" id="fundsearch" class="searchbutton"&gt;Search&lt;/button&gt; &lt;button type="button" id="fundreset" class="resetbutton"&gt;Reset&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;div id="fundpicklist"&gt; &lt;div class="fund"&gt;&lt;a href="http://www.slashdot.org" &gt;Item 1&lt;/a&gt;&lt;/div&gt; &lt;div class="fund"&gt;&lt;a href="http://www.arstechnica.com" &gt;Item 2&lt;/a&gt;&lt;/div&gt; &lt;div class="fund"&gt;&lt;a href="http://www.techmeme.com" &gt;Item 3&lt;/a&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;!-- modal content --&gt; &lt;div id="basic-modal-content"&gt; &lt;div id="funddialog"&gt; &lt;div id="fundpickfilter"&gt; &lt;div class="fundfilter"&gt; &lt;label style="font-weight: bold;" for="filtertext"&gt;Find: &lt;/label&gt; &lt;input class="tfilter" type="text" id="filtertext" value=""/&gt; &lt;/div&gt; &lt;div id="fundactions"&gt; &lt;button type="button" id="fundsearch" class="searchbutton"&gt;Search&lt;/button&gt; &lt;button type="button" id="fundreset" class="resetbutton"&gt;Reset&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;div id="fundpicklist"&gt; &lt;div class="fund"&gt;&lt;a href="http://www.slashdot.org" &gt;Item 1&lt;/a&gt;&lt;/div&gt; &lt;div class="fund"&gt;&lt;a href="http://www.arstechnica.com" &gt;Item 2&lt;/a&gt;&lt;/div&gt; &lt;div class="fund"&gt;&lt;a href="http://www.techmeme.com" &gt;Item 3&lt;/a&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;!-- Load jQuery, SimpleModal and Basic JS files --&gt; &lt;script type='text/javascript' src='js/jquery.js'&gt;&lt;/script&gt; &lt;script type='text/javascript' src='js/jquery.simplemodal.js'&gt;&lt;/script&gt; &lt;script type='text/javascript' src='js/basic.js'&gt;&lt;/script&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    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.
 

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