Download the alert plugin:

http://twitter.github.com/bootstrap/javascript.html#alerts

Example of alert div with a class "close":

<div class="alert fade in">            <a class="close"
data-dismiss="alert" href="#">×</a>            <strong>Holy
guacamole!</strong> Best check yo self, you're not looking too good.
       </div>






Il giorno 27 marzo 2012 20:45, Henry Finkelstein
<[email protected]>ha scritto:

> Gotcha.  Thanks!
>
> On Tue, Mar 27, 2012 at 10:06 AM, Jason Strimpel <[email protected]>wrote:
>
>> One quick note. You do not need to call $('selector').alert() if you
>> have 'data-dismiss="alert"' in your 'a' tag. -Jason
>>
>> On Mon, Mar 26, 2012 at 9:08 PM, John Roberts <[email protected]>
>> wrote:
>> > We've all been there!  Glad you got it figured out!
>> >
>> >
>> > On Monday, March 26, 2012 9:06:33 PM UTC-7, Henry Finkelstein wrote:
>> >>
>> >> Thanks for jumping on this so quick guys.  It was a very stupid
>> mistake -
>> >> I had a "s" at the end of my js include (it's bootstrap-alert not
>> >> bootstrap-alerts)
>> >>
>> >> I appreciate your willingness to help with my baby steps.
>> >>
>> >> On Monday, March 26, 2012 8:54:59 PM UTC-7, Jason Strimpel wrote:
>> >>>
>> >>> First have you loaded the associated bootstrap JS? I just load the
>> >>> minimized version with all plugins. If yes, then are you using
>> >>> firebug? If so click on the DOM tab, drill into the jQuery object -
>> >>> jQuery.fn. Do you see alert?
>> >>>
>> >>> On Mon, Mar 26, 2012 at 8:30 PM, Henry Finkelstein
>> >>> <[email protected]> wrote:
>> >>> > Nope, sadly that didn't do it.  I added the href, saw the X as a
>> >>> > clickable
>> >>> > link with my mouseover, and # appended to my URL when I click on it
>> -
>> >>> > behavior is as I would expect for an action.
>> >>> >
>> >>> > So I'm not crazy that my initialization looks as it should, right?
>> >>> >
>> >>> >
>> >>> > On Monday, March 26, 2012 12:40:29 PM UTC-7, John Roberts wrote:
>> >>> >>
>> >>> >> Try adding an href="#" to your link.  Some browsers are finicky
>> about
>> >>> >> the
>> >>> >> presence of an href to make a link clickable.
>> >>> >>
>> >>> >> On Monday, March 26, 2012 12:22:48 PM UTC-7, Henry Finkelstein
>> wrote:
>> >>> >>>
>> >>> >>> Total newb question: I have both the carousel and alerts on my
>> page,
>> >>> >>> and
>> >>> >>> I have no problem initializing the carousel but seem to have
>> trouble
>> >>> >>> with
>> >>> >>> the alert.  I've included the js file, and here is my initializing
>> >>> >>> script
>> >>> >>>
>> >>> >>>   <script type="text/javascript">
>> >>> >>>     $(document).ready(function(){
>> >>> >>>       $('#myCarousel').carousel('cycle');
>> >>> >>>       $(".alert").alert();
>> >>> >>>     });
>> >>> >>>   </script>
>> >>> >>>
>> >>> >>> and my alert:
>> >>> >>>     <div class= "alert alert-success fade in">
>> >>> >>>       <a class= "close" data-dismiss="alert">×</a>
>> >>> >>>       Thank you, we received your information and will be in touch
>> >>> >>> with
>> >>> >>> you shortly.
>> >>> >>>     </div>
>> >>> >>>
>> >>> >>> I see the alert and (x) just fine, but can't close it.  What am I
>> >>> >>> missing?
>> >>> >>>
>> >>> >>> Thanks!
>>
>
>

Reply via email to