seems like making the custom code fit the functionality of the plugin (
which works), rather than hack the plugin to pieces to fit your
methods, would make more sense expresso wrote: NO, I have custom code that determines how to paint in images to JCarousel based on a _javascript_ array, much more dynamic and deferred loading...even more custom than they have it. So I need to be able to tell it when it's at the end to disable that button. The default behavior won't work for what I'm doing based on my own itemLoad method's logic now.Take a look at http://sorgalla.com/projects/jcarousel/ yea, I know default behavior automatically disables the next button. But again, I have very custom logic I'm using in my load event so I now will have to tell it when it's at the end of the list of data so that I can manually disable that button. When you look at the source, the button is here:<div class="jcarousel- next jcarousel-next-horizontal" style="display: block;" disabled="false"/> On Jul 8, 10:40 am, BaBna <thomas.na...@gmail.com> wrote:Because it sucks? It might create problems with some DTD I think, and maybe this disable on a DIV is an IE "special feature", I don't know. Anyway, what do you want to achieve here? On Jul 8, 4:30 pm, "Cesar Sanz" <the.email.tr...@gmail.com> wrote:How come is that you want to disable a div??Do you mean, block the content inside div?----- Original Message ----- From: "BaBna" <thomas.na...@gmail.com> To: "jQuery (English)" <jquery-en@googlegroups.com> Sent: Wednesday, July 08, 2009 9:28 AM Subject: [jQuery] Re: Cannot disable divMaybe because there is no disabled property for DIV?http://www.w3schools.com/tags/tag_DIV.aspOn Jul 8, 4:25 pm, expresso <dschin...@gmail.com> wrote:<div class="jcarousel-skin-ie7"> <div class="jcarousel-container jcarousel-container-horizontal" style="display: block; height: 220px; width: 592px;"> <div class="jcarousel-prev jcarousel-prev-horizontal" style="display: block;" disabled="false"/> <div class="jcarousel-next jcarousel-next-horizontal" style="display: block;" disabled="false"/> <div class="jcarousel-clip jcarousel-clip-horizontal" style="width: 600px; height: 220px;"> <ul id="mycarousel" class="jcarousel-list jcarousel-list-horizontal" style="height: 220px; width: 3315px; left: -2028px;"> </ul> </div> </div> </div>I'm trying to change disabled to true. It's not taking. And what I also don't get is what is disable doing for a div?I have tried this:jQuery(".jcarousel-skin-ie7 .jcarousel-next .jcarousel-next- horizontal").attr({ disabled: "true" }); |
- [jQuery] Re: Cannot disable div MorningZ
- [jQuery] Re: Cannot disable div Michael Lawson
- [jQuery] Re: Cannot disable div expresso
- [jQuery] Re: Cannot disable div Michael Lawson
- [jQuery] Re: Cannot disable div expresso
- [jQuery] Re: Cannot disable div expresso
- [jQuery] Re: Cannot disable div expresso
- [jQuery] Re: Cannot disable div expresso
- [jQuery] Re: Cannot disable div expresso
- [jQuery] Re: Cannot disable div expresso
- [jQuery] Re: Cannot disable div Charlie
- [jQuery] Re: Cannot disable div expresso
- [jQuery] Re: Cannot disable div expresso