mdbootstrap / bootstrap-templates

A collection of free Bootstrap 5 templates.
https://mdbootstrap.com/freebies/
3.07k stars 1.01k forks source link

Tagsinput not working #395

Closed sanaalauddin closed 8 years ago

sanaalauddin commented 9 years ago

Hi. Im trying to use tagsinput, I added the input code and included the js and css file in my codeigniter view. But its not working. Which JS/Jquery files need to be included for it to work? I get the following errors in the console:

"NetworkError: 403 Forbidden" in both bootstrap-tagsinput.js/css

scottwarren commented 9 years ago

I'm not the owner of this repo, but can you put this into a JSfiddle with your problem so we can help debug?

Is your page layout like this?:

<html>
<head>
<!-- Load your Bootstrap-tagsinput CSS here -->
</head>
<body>
<input data-role="tagsinput">
<!-- Load your Bootstrap-tagsinput Javascript here -->
</body>
sanaalauddin commented 9 years ago

Yes it is the same layout. I have tidied up my code a little but (its a long page using Codeigniter with multiple partial views). Heres the JSFiddle:

http://jsfiddle.net/a3jnv2he/

I really appreciate your help. Thanks.

scottwarren commented 9 years ago

Can you create a smaller more focused JSfiddle with minimal amount of code that reproduces your issue?

scottwarren commented 9 years ago

Also:- the JSfiddle you have linked doesn't load the Bootstrap tagsinput as it still has some PHP code in there: <script src="<?php echo base_url(); ?>public/tagsinput/bootstrap-tagsinput.min.js"></script>

sanaalauddin commented 9 years ago

I updated the fiddle. On Sep 22, 2015 11:14 PM, "Scott Warren" notifications@github.com wrote:

Also:- the JSfiddle you have linked doesn't load the Bootstrap tagsinput as it still has some PHP code in there:

— Reply to this email directly or view it on GitHub https://github.com/timschlechter/bootstrap-tagsinput/issues/395#issuecomment-142478933 .

scottwarren commented 9 years ago

The original fiddle seems the same, do you have another (updated) Fiddle URL?

scottwarren commented 9 years ago

I forked the JSFiddle and included the CSS and JS for this library and it works: http://jsfiddle.net/ecg2dkq4/

scottwarren commented 9 years ago

This leads me to believe the Bootstrap Tags input CSS and/or Javascript is not being loaded (maybe it is 404ing). Check in your developer toolbar to make sure they're loading

sanaalauddin commented 9 years ago

I checked the jsfiddle link you gave.It isnt working for me.

sanaalauddin commented 8 years ago

Yay! Its working. Thanks alot. :)

scottwarren commented 8 years ago

no worries