DEVHIDE
        • Home (current)
        • About
        • Contact
        • Cookie
        • Home (current)
        • About
        • Contact
        • Cookie
        • Disclaimer
        • Privacy
        • TOS
        Login Or Sign up

        Using holder.js in Grails application

        228 Views Asked by Illep At 13 May 2014 at 08:06 2025-12-06T04:22:03.729000

        I am trying to add a carousel slider.

              <div id="myCarousel" class="carousel slide" data-ride="carousel">
          <!-- Indicators -->
          <ol class="carousel-indicators">
            <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
            <li data-target="#myCarousel" data-slide-to="1"></li>
            <li data-target="#myCarousel" data-slide-to="2"></li>
          </ol>
          <div class="carousel-inner">
            <div class="item active">
              <img data-src="holder.js/900x500/auto/#777:#7a7a7a/text:First slide" alt="First slide">
              <div class="container">
                <div class="carousel-caption">
                  <h1>Example headline.</h1>
                  <p>Note: If you're viewing this page via a <code>file://</code> URL, the "next" and "previous" Glyphicon buttons on the left and right might not load/display properly due to web browser security rules.</p>
                  <p><a class="btn btn-lg btn-primary" href="#" role="button">Sign up today</a></p>
                </div>
              </div>
            </div>
            <div class="item">
              <img data-src="holder.js/900x500/auto/#666:#6a6a6a/text:Second slide" alt="Second slide">
              <div class="container">
                <div class="carousel-caption">
                  <h1>Another example headline.</h1>
                  <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
                  <p><a class="btn btn-lg btn-primary" href="#" role="button">Learn more</a></p>
                </div>
              </div>
            </div>
            <div class="item">
              <img data-src="holder.js/900x500/auto/#555:#5a5a5a/text:Third slide" alt="Third slide">
              <div class="container">
                <div class="carousel-caption">
                  <h1>One more for good measure.</h1>
                  <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
                  <p><a class="btn btn-lg btn-primary" href="#" role="button">Browse gallery</a></p>
                </div>
              </div>
            </div>
          </div>
          <a class="left carousel-control" href="#myCarousel" data-slide="prev"><span class="glyphicon glyphicon-chevron-left"></span></a>
          <a class="right carousel-control" href="#myCarousel" data-slide="next"><span class="glyphicon glyphicon-chevron-right"></span></a>
        </div>
        

        Now i want to know what the following line is:

              <img data-src="holder.js/900x500/auto/#555:#5a5a5a/text:Third slide" alt="Third slide">
        

        I am using Grails and i added the following lines of code in the ApplicationResources.groovy file

        holder {
            dependsOn 'bootstrap'
        
            resource url: [dir: 'js', file: 'holder.js']
        }
        

        I also manually downloaded and added the holder.js file in web-app/js folder. But still i don't see the image.

        Help ?

        twitter-bootstrap grails holder.js
        Original Q&A
        1

        There are 1 best solutions below

        0
        Develop4Life Develop4Life On 13 May 2014 at 08:32

        DO you have this on top of your page :

        <r:require modules="holder" />
        <r:layoutResources />
        

        bootstrap can be jquery , holder ,based on your dependencies . And this ?

        ApplicationResource.groovy

              modules = {
                bootstrap {
                    resource url:'js/bootstrap.js'
                }
        
         holder {
                    dependsOn 'bootstrap' 
                    resource url:'js/holder.js'
                }
        }
        

        Related Questions in TWITTER-BOOTSTRAP

        • General questions about creating a custom theme Moodle CMS
        • How to fix - The modal dissapear below 992px.?
        • Bootstrap horizontal gutters issue
        • How can I add a list of icons to the right of a text area
        • Why isn't my Bootstrap background color class working as expected?
        • Edit button in each row of table using same Bootstrap modal as add button
        • Change Opacity of Bootstrap Button
        • bootstrap 5 multiple tab dropdown with tab pane
        • Bootstrap v5.3 navbar drop-downs not working. Why?
        • Should i learn Bootstrap in 2024
        • How to turn on Bootstrap Intellisense in .NET 8 Blazor
        • Bootstrap 5.3 burger menu not responsive in Underscore WordPress template
        • Bootstrap 5 columns not displaying inline
        • Bootstrap scaffolding not showing good on mobile
        • How to Prevent Select2 Dropdown from Moving with Scroll inside a Bootstrap Vue Modal?

        Related Questions in GRAILS

        • Table UserRole not populated in Grails 6
        • Grails run-app or grails compile is not working with 6..0.0( java 11 or 17)
        • Hibernate OptimisticLocking(type = OptimisticLockType.DIRTY) not working
        • HibernateOptimisticLockingFailureException in Groovy / Grails, how to proceed after recovry
        • Grails with Spring Security: How do I keep a password history to prevent password reuse
        • How can I configure a Grails application using the Spring Security Rest plugin to authenticate with Amazon Cognito
        • Grails - Problem to Exclude a Filter from Specific Endpoints
        • Why are my beans disabled onStartUp after upgrading to grails5?
        • Getting error on upgrading mysql 8 with grails 2.4.3
        • get XFF using angular
        • how to compare to collections of map in groovy
        • Grail/GORM Data Service @Query - Join with Multiple Conditions
        • Build Grails project with specific environment
        • Grails params in controller empty on too large post request
        • Grails5 upgrade - hibernate now returning a hibernate proxy instead of actual object - why?

        Related Questions in HOLDER.JS

        • Holder.js image is not rendered in Symfony project
        • Is Holder.js a part of Twitter Bootstrap?
        • Holder JS will not work with %
        • Swiper with holder.js
        • Holder.js and Bootstrap cards - Can't get img data-src to display
        • Calling holder.js in Meteor
        • How do I get holder.js to work with bootstrap 4?
        • Custom Font on Holder.js objects
        • holderjs show text and size at the same time
        • How to load my images using holder.js bootstrap
        • Placeholder for broken image fails in IE11, using holder.js and AngularJS
        • holder.js not referenced or loaded in html document
        • Holder.js in Google Appengine (python)
        • holder.js not working when placed in bootstrap 3 accordion
        • Make holder.js same size as other bootstrap thumbnail images?

        Trending Questions

        • UIImageView Frame Doesn't Reflect Constraints
        • Is it possible to use adb commands to click on a view by finding its ID?
        • How to create a new web character symbol recognizable by html/javascript?
        • Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
        • Heap Gives Page Fault
        • Connect ffmpeg to Visual Studio 2008
        • Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
        • How to avoid default initialization of objects in std::vector?
        • second argument of the command line arguments in a format other than char** argv or char* argv[]
        • How to improve efficiency of algorithm which generates next lexicographic permutation?
        • Navigating to the another actvity app getting crash in android
        • How to read the particular message format in android and store in sqlite database?
        • Resetting inventory status after order is cancelled
        • Efficiently compute powers of X in SSE/AVX
        • Insert into an external database using ajax and php : POST 500 (Internal Server Error)

        Popular # Hahtags

        javascript python java c# php android html jquery c++ css ios sql mysql r reactjs node.js arrays c asp.net json

        Popular Questions

        • How do I undo the most recent local commits in Git?
        • How can I remove a specific item from an array in JavaScript?
        • How do I delete a Git branch locally and remotely?
        • Find all files containing a specific text (string) on Linux?
        • How do I revert a Git repository to a previous commit?
        • How do I create an HTML button that acts like a link?
        • How do I check out a remote Git branch?
        • How do I force "git pull" to overwrite local files?
        • How do I list all files of a directory?
        • How to check whether a string contains a substring in JavaScript?
        • How do I redirect to another webpage?
        • How can I iterate over rows in a Pandas DataFrame?
        • How do I convert a String to an int in Java?
        • Does Python have a string 'contains' substring method?
        • How do I check if a string contains a specific word?

        Copyright © 2021 Jogjafile Inc.

        • Disclaimer
        • Privacy
        • TOS
        • Homegardensmart
        • Pricesm.com
        • Aftereffectstemplates