Jquery integration  

  

I want to use Jquery plug in for range slider

hence, I have downloaded all required js, css and added in resources and then referred it in the web-block 

but, the slider UI is not visible.

I tried executing simple jquery in the web block Jquery control


SyntaxEditor Code Snippet

"<script>
$(document).ready(function() {
   alert('jQuery is working!');
       
});
</script>"


But this is not executing, if i give only alert then it works.

Please help me in this regards.

Hi Hemlata,

There is already a Jquery based slider available in forge , you can use this one and also by looking at the code you will also learn to wrap you javascript\jquery in webblock in order to create your own plugin.

Here is the slide link

http://www.outsystems.com/forge/component/709/number-slider/

http://www.outsystems.com/forge/component/410/slider/


Regards

-PJ-


Hemlata Nerurkar wrote:

I want to use Jquery plug in for range slider

hence, I have downloaded all required js, css and added in resources and then referred it in the web-block 

but, the slider UI is not visible.

I tried executing simple jquery in the web block Jquery control


SyntaxEditor Code Snippet

"<script>
$(document).ready(function() {
   alert('jQuery is working!');
       
});
</script>"


But this is not executing, if i give only alert then it works.

Please help me in this regards.

Hi Hemlata,

You can see the error by debugging the page in browser and check the Console for the error logs. Maybe there's a conflict in your scripts or something. If you can give an example OML for that, we can investigate the scenarios or the error

Kind regards,

Cy