Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>After many tries I've got something.</p> <p>It exists two versions of this framework.</p> <p>Here the code for <strong>*<em>Tinybox 1</em>*</strong>:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt; &lt;title&gt;JSP Page&lt;/title&gt; &lt;link rel="stylesheet" href="http://sandbox.scriptiny.com/tinybox/style.css" /&gt; &lt;script type="text/javascript" src="http://sandbox.scriptiny.com/tinybox/tinybox.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; function tiny(show) { TINY.box.show("ajax.html",show,300,150,true,5); } &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;label&gt;Name: &lt;/label&gt;&lt;input type="text" id="name" onclick="tiny(true)"/&gt; &lt;/body&gt; &lt;html&gt; </code></pre> <p>If the value of variable <code>show</code> was true (or 1), it seems the tinybox want to include the given file, via iframe. Wether my IE9, FF21 and Chrome browser could open the file (the browsers complained an access validation). At the opposit, a valid external URL did work.</p> <p>Here the code for <strong>*<em>Tinybox 2</em>*</strong>:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt; &lt;title&gt;JSP Page&lt;/title&gt; &lt;link rel="stylesheet" href="http://sandbox.scriptiny.com/tinybox2/style.css" /&gt; &lt;script type="text/javascript" src="http://sandbox.scriptiny.com/tinybox2/tinybox.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; function tiny(show) { TINY.box.show({iframe:'ajax.html',width:300,height:150}) } &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;label&gt;Name: &lt;/label&gt;&lt;input type="text" id="name" onclick="tiny(true)"/&gt; &lt;/body&gt; &lt;html&gt; </code></pre> <p>This version did work perfectly.</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.
    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