Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Twitter Bootstrap – Help Needed

  • This topic is empty.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #36791
    rosco
    Participant

    Hi guys,

    I’ve just started developing a site in Twitter Bootstrap and got a couple of quick questions.

    You can see the site here and I was wondering why the Javascript Carousel isn’t showing? When I check the code in firebug the whole section is faded out.

    Can anyone tell me where I am going wrong? The instructions for implementing the Carousel are here.

    I wasn’t sure how to “call” via javascript using $(‘.carousel’).carousel(). Perhaps this is the problem???

    Also, I’ve added my company logo to the navbar, but ideally I want this to sit above the navbar. I tried simply adding a new div above which contained the logo but I could get it to show. Can anyone advise on how I would do this?

    Any help would be much appreciated.

    Thanks,

    Ross

    #97246
    Senff
    Participant

    The URL of your images are wrong.

    Should be:

    http://dummyimage.com/500x350/000000/ffffff

    Not sure if that will fix your problem entirely, but start there.

    #97248
    rosco
    Participant

    Thanks Senff, I’ve taken out the ‘/img’ before the url’s but unfortunately that didn’t work. Any other ideas?

    #97252
    TheDoc
    Member

    None of your JS files are loading – are they are your server?

    #97289
    rosco
    Participant

    I have a ‘js’ folder in the website directory that contains the ‘bootstrap-carousel.js’ file. However it doesn’t seem to be linking to it. I’m not sure what I am doing wrong. It’s probably something quite straight forward, but I can’t figure it out.

    Ross

    #97292
    Paulie_D
    Member

    Well obviously you need to call the JS then.

    Try adding this inside your head tag.

    #97293
    Senff
    Participant

    You’re probably calling the JS files in the wrong folder, or you have them misplaced.

    At the end of your code, you’re calling all the JS files like this:



    etc. etc.

    However, those files can not be found:
    http://www.rossparker.co.uk/bootstrap/js/jquery.js
    http://www.rossparker.co.uk/bootstrap/js/bootstrap-transition.js
    http://www.rossparker.co.uk/bootstrap/js/bootstrap-alert.js
    etc. etc, they all give 404 errors.

    I checked in the root folder, but they’re also not there:
    http://www.rossparker.co.uk/js/jquery.js
    http://www.rossparker.co.uk/js/bootstrap-transition.js
    http://www.rossparker.co.uk/js/bootstrap-alert.js
    etc.

    So basically, just make sure you have placed all the JS files in the right location, and then call them using the proper path.

    #97301
    rosco
    Participant

    Hmm… the files are definitely there but as I’m working on the site in Coda on my machine. I think it’s to do with the way that I am linking to them. The links like this below just don’t work.

    I’m sure it’s something quite straight forward. If anyone has a chance to look it may help by looking at the download files for Twitter Bootstrap, as I haven’t edited them much at all yet.

    Hope someone can help me find a solution.

    Thanks,

    Ross

    #97305
    Senff
    Participant

    When you say the files are definitely there…they are definitely WHERE? Cause if you follow any of the links I posted in my previous post, you’ll see that they’re definitely not there.

    (Unless they are, but made hidden/unaccessible/secret.)

    #97347
    rosco
    Participant

    Figured it out. I had installed the bootstrap-carousel.js plug-in thinking that’s all I needed, but I hadn’t installed the other files you mentioned:



    I installed all of the files and now it works. Sorry that it was such as basic mistake, and thanks for helping me out.

Viewing 10 posts - 1 through 10 (of 10 total)
  • The forum ‘CSS’ is closed to new topics and replies.