use some javascript 101 course before digging into javascript. One issue 
with your code is that you're not waiting the document to be ready before 
calling the javascript bit. Use $(document).ready(function() {}) to wrap 
any javascript in the page.

On Friday, November 28, 2014 8:49:35 PM UTC+1, fsp wrote:
>
> Hy everyone.
>
> I'm working with web2py since one year. In most cases it's a fine and easy 
> way to develop a nice working web app.
>
> Now i want to create a new web application in web 2.0 design.
> For this i want to use more bootstrap components
>
> i need to use the bootstrap slider
> http://seiyria.github.io/bootstrap-slider/
>
> and the autocomplete extension
> https://twitter.github.io/typeahead.js/examples/
>
> i've downloaded the java scripts and css files and placed them to the js 
> and css directory.
>
> After this, i added 
> <link href="{{=URL('static', 'css/bootstrap-slider.css')}}" rel=
> "stylesheet" type="text/css" />
> <script src="{{=URL('static','js/bootstrap-slider.js')}}"></script>
>
> in my view html file.
>
> i also added a sample in my view file..
>
> <input id="ex1" data-slider-id='ex1Slider' type="text" data-slider-min="0" 
> data-slider-max="20" data-slider-step="1" data-slider-value="14"/>
>
>
> <script>
> $('#ex1').slider({
>     formatter: function(value) {
>         return 'Current value: ' + value;
>     }
> });
>
>
> </script>
>
>
> <style>
> #ex1Slider .slider-selection {
>     background: #BABABA;
> }
> </style>
>
> But it does not work.
> Just a empty input filed is displayed..
>
> I added a alter in the slider.js file. This works -> alter call is 
> displayed.
>
> Can anybody help me??
>
> Regards 
> Florian
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to