Giter Club home page Giter Club logo

Comments (4)

fathimalinsak avatar fathimalinsak commented on May 16, 2024 5

please add the attributes data-toggle="modal" data-target="#modal_komplain" to the trggering element and remove the triggering through script.

Please refer http://getbootstrap.com/docs/4.1/components/modal/#live-demo for more details.

from staradmin-free-bootstrap-admin-template.

fathimalinsak avatar fathimalinsak commented on May 16, 2024

Please share the HTML code of the element which triggers the modal.

from staradmin-free-bootstrap-admin-template.

topex-psy avatar topex-psy commented on May 16, 2024

I just use $('#modal_komplain').modal('show');

from staradmin-free-bootstrap-admin-template.

gabryk91 avatar gabryk91 commented on May 16, 2024

please add the attributes data-toggle="modal" data-target="#modal_komplain" to the trggering element and remove the triggering through script.

Please refer http://getbootstrap.com/docs/4.1/components/modal/#live-demo for more details.

I also have this problem with modal, I am used to open them from codebehind using an hidden button and a small piece of jscript, like this:

<button type="button" style="display: none;" id="btnModal" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#modalRegole">Launch demo modal</button>

<script type="text/javascript">
        function ShowModal() {
            $("#btnModal").click();
        }
    </script>

and this code behind call: ClientScript.RegisterStartupScript(Me.GetType(), "alert", "ShowModal();", True)

This works on all my other bootstrap project except the one where i'm using sb admin template.
I need to edit what the modal will show by changing its components texts and visibility and I don't know how to do this without using code behind. So I don't want to open them using attributes data-toggle and data-target

from staradmin-free-bootstrap-admin-template.

Related Issues (20)

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.