Note that there are some explanatory texts on larger screens.

plurals
  1. POjsFiddle code doesn't run on Aptana
    primarykey
    data
    text
    <p>(first of all, a disclaimer: I'm a JavaScript / MooTools newbie, so it's very likely that the solution may be a trivial miss)</p> <p>With some help, I was able to put a simple slider to run properly on jsFiddle, using MooTools. It is here -> <a href="http://jsfiddle.net/wowenkho/uGcTx/" rel="nofollow">http://jsfiddle.net/wowenkho/uGcTx/</a></p> <p>Now, I want to reproduce it on my own PC. I learn from some threads here that I have to wrap jsFiddle code. In Aptana, I've got the code like this:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;script type="text/javascript" src="mootools_v1_2.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; $(function() { window.addEvent('domready',function() { var s = new Slider(document.id("slider-1"), document.id("slider-input-1"), { onChange : function(step) { document.id("q1_r1").set('value',step); document.id("value").set('html',step); } }); window.onresize = function () { //s.recalculate(); }; }); }); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;input name="q1_r1" id="q1_r1" type="hidden"&gt; &lt;span id="value"&gt;0&lt;/span&gt; &lt;p &gt;&lt;div class="slider" id="slider-1" tabIndex="1"&gt; &lt;input class="slider-input" id="slider-input-1" /&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>I do know that the MooTools version I'm using isn't exactly the same (jsFiddle is using 1.2.5, I'm using 1.2.1). I could try to use 1.2.5 here (and I will, meanwhile), but that's not the purpose, since I have to use 1.2.1. I also do know MooTools is running well, at least theoretically, since I've made the "hello world" before and it worked.</p> <p>How this is at the moment, I only see the span and a text box, instead of the slider.</p> <p>I guess I'm missing something trivial here.</p> <p>Thanks all possible help in advance, Jaff</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.
 

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