Git Product home page Git Product logo

Comments (5)

kartik-v avatar kartik-v commented on August 19, 2024

Cannot verify or replicate your use case.

The variable slider_XXXXXX should be dynamically created at the beginning in the document head. It seems you are having some javascript problems - check for any other javascript errors (or asset dependency errors) - or clean up your assets and client cache and retry.

You may also want to disable any other javascript plugins (that may be erroring out) and try rendering view only with this widget and confirm.

from yii2-slider.

BenasPaulikas avatar BenasPaulikas commented on August 19, 2024

It's not generated in head. It's generated in footer. No other javascript errors occurs;

I've already cleaned up all assets and cache, but thing is it should genereate slider_349e56b4 with quatation. Now it does without.

<script src="/xxxx/basic/web/assets/3d9af0ba/yii.activeForm.js"></script> <script src="/xxxx/basic/web/assets/36d3b569/js/bootstrap.js"></script> <script type="text/javascript">jQuery(document).ready(function () { jQuery('#orderform-ram').slider(slider_349e56b4) $('#orderform-ram').on('slideStop', function(){$('#orderform-ram').trigger('change')});

from yii2-slider.

BenasPaulikas avatar BenasPaulikas commented on August 19, 2024

Check line 7 on this http://pastebin.com/G02WGYeq, quatation is missed and this source is not parsed nor evaluated by any browser or something.

from yii2-slider.

kartik-v avatar kartik-v commented on August 19, 2024

slider_6c3130ac is a javascript variable (not a string)- so NO QUOTES must be there. The variable is auto set by the extension in the HEAD, and later being used for plugin initialization in the end on doc ready. You should do a view page source and check for all instances of this variable. It maybe is facing a problem for your environment in this getting initialized in the HEAD and not getting read... anyway please debug your environment and let know - because cannot replicate any error you are facing.

from yii2-slider.

BenasPaulikas avatar BenasPaulikas commented on August 19, 2024

Thank you I was missing head() ?> which lead to missing variable.

from yii2-slider.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.