[jQuery] Re: Don't use onclick
The simple fact that you don't have javascript floating all over your doc inside elements is alone a reason that unobtrusive rocks. Let alone many other reasons. On Oct 12, 10:44 pm, expresso wrote: > >>>I think you have your design priorites backward. Firstly determine the > > functionality required, then how to best implement it. If that means > using a library > > obviously we're past that point. We've decided this was a good use > for jQuery. So how can you say priorities are tangled here when you > assume we're overthinking this because we're using a library. It > sounds as though you're a bit anti-new, stay hard core javascript type > of dude. If you're using javascript to make an entire application > fine, but I'm in with the new and new to me makes sense. Unobtrusive > is not overrated, it's good practice and it's a pattern as far as I'm > concerned. > > On Oct 12, 10:35 pm, expresso wrote: > > > unobtrusive in this case is keeping javascript out of elements. > > onclick= binds them together. > > > On Oct 12, 9:39 pm, RobG wrote: > > > > On Oct 13, 10:49 am, CoffeeAddict wrote: > > > > > Am I wrong to say you should never use onclick in an element as this > > > > would be > > > > contrary to the purpose of using jQuery > > > > I think you have your design priorites backward. Firstly determine the > > > functionality required, then how to best implement it. If that means > > > using a library, then use it. If the library driving your design > > > decisions, you might need to rethink using the library. > > > > > which means onclick would totally > > > > bind mark-up to javascript? > > > > In a way that using a CSS selector to attach handlers doesn't? > > > > > So it would not be unobtrusive in that case. > > > > The concept of "unobtrusive" javascript (i.e. attaching listeners at > > > the client, rather than the server) is an implementation methodology > > > that has been much hyped but probaby creates as many issues as it > > > solves. > > > > -- > > > Rob
[jQuery] Re: Don't use onclick
>>>I think you have your design priorites backward. Firstly determine the functionality required, then how to best implement it. If that means using a library obviously we're past that point. We've decided this was a good use for jQuery. So how can you say priorities are tangled here when you assume we're overthinking this because we're using a library. It sounds as though you're a bit anti-new, stay hard core javascript type of dude. If you're using javascript to make an entire application fine, but I'm in with the new and new to me makes sense. Unobtrusive is not overrated, it's good practice and it's a pattern as far as I'm concerned. On Oct 12, 10:35 pm, expresso wrote: > unobtrusive in this case is keeping javascript out of elements. > onclick= binds them together. > > On Oct 12, 9:39 pm, RobG wrote: > > > On Oct 13, 10:49 am, CoffeeAddict wrote: > > > > Am I wrong to say you should never use onclick in an element as this > > > would be > > > contrary to the purpose of using jQuery > > > I think you have your design priorites backward. Firstly determine the > > functionality required, then how to best implement it. If that means > > using a library, then use it. If the library driving your design > > decisions, you might need to rethink using the library. > > > > which means onclick would totally > > > bind mark-up to javascript? > > > In a way that using a CSS selector to attach handlers doesn't? > > > > So it would not be unobtrusive in that case. > > > The concept of "unobtrusive" javascript (i.e. attaching listeners at > > the client, rather than the server) is an implementation methodology > > that has been much hyped but probaby creates as many issues as it > > solves. > > > -- > > Rob
[jQuery] Re: Don't use onclick
unobtrusive in this case is keeping javascript out of elements. onclick= binds them together. On Oct 12, 9:39 pm, RobG wrote: > On Oct 13, 10:49 am, CoffeeAddict wrote: > > > Am I wrong to say you should never use onclick in an element as this would > > be > > contrary to the purpose of using jQuery > > I think you have your design priorites backward. Firstly determine the > functionality required, then how to best implement it. If that means > using a library, then use it. If the library driving your design > decisions, you might need to rethink using the library. > > > which means onclick would totally > > bind mark-up to javascript? > > In a way that using a CSS selector to attach handlers doesn't? > > > So it would not be unobtrusive in that case. > > The concept of "unobtrusive" javascript (i.e. attaching listeners at > the client, rather than the server) is an implementation methodology > that has been much hyped but probaby creates as many issues as it > solves. > > -- > Rob
[jQuery] Re: Don't use onclick
I don't think it's too hyped. Having calls to javascript in your elements defeats the purpose of unobtrusively maintaining and using libraries like jQuery. How can you stay that Rob?? On Oct 12, 9:39 pm, RobG wrote: > On Oct 13, 10:49 am, CoffeeAddict wrote: > > > Am I wrong to say you should never use onclick in an element as this would > > be > > contrary to the purpose of using jQuery > > I think you have your design priorites backward. Firstly determine the > functionality required, then how to best implement it. If that means > using a library, then use it. If the library driving your design > decisions, you might need to rethink using the library. > > > which means onclick would totally > > bind mark-up to javascript? > > In a way that using a CSS selector to attach handlers doesn't? > > > So it would not be unobtrusive in that case. > > The concept of "unobtrusive" javascript (i.e. attaching listeners at > the client, rather than the server) is an implementation methodology > that has been much hyped but probaby creates as many issues as it > solves. > > -- > Rob
[jQuery] Re: Call function in load
yea, forgot about removing the (). Thanks. On Oct 12, 9:49 pm, James wrote: > $(".someImage").load(doSomething); > > On Oct 12, 4:26 pm, expresso wrote: > > > Did I do this right? I can't test right now but I think this should > > work: > > > function doSomething() > > { > > ... > > } > > > (".someImage").load(doSomething()) ; > > > I want to fire off doSomething() when the image is fully loaded.
[jQuery] Call function in load
Did I do this right? I can't test right now but I think this should work: function doSomething() { ... } (".someImage").load(doSomething()) ; I want to fire off doSomething() when the image is fully loaded.
[jQuery] Standards
Am I wrong to say you should never use onclick in an element as this would be contrary to the purpose of using jQuery which means onclick would totally bind mark-up to javascript? So it would not be unobtrusive in that case. And can't you do this another way other than this: document.getElementById("productImage"); And what about this, isn't the point of jQuery is to use Load? $(document).ready(function() { prodImage = document.getElementById("productImage"); prodImage.onload = extraLargeLoad; });
[jQuery] Re: Cannot disable div
Easier said than done to write a control like this from scratch. On Jul 8, 4:49 pm, Ricardo wrote: > I'd love to see what the author thinks of your comments ;) > > From what I can see, you'd be much better off writing your own > carousel from scratch, and learning the basics as you go with it. > > On Jul 8, 1:05 pm, expresso wrote: > > > Now you tell me how the f* I'm supposed to understand how to > > manipulate this crap. So I figured I can just disable it with CSS > > straight up. > > > On Jul 8, 11:05 am, expresso wrote: > > > > buttons: function(n, p) { > > > if (n == undefined || n == null) { > > > var n = !this.locked && this.options.size !== 0 && > > > ((this.options.wrap && this.options.wrap != 'first') || > > > this.options.size == null); > > > //if (!this.locked && (!this.options.wrap || > > > this.options.wrap == 'first') && this.options.size != null && > > > this.last >= this.options.size) > > > // n = this.tail != null && !this.inTail; > > > } > > > > if (p == undefined || p == null) { > > > var p = !this.locked && this.options.size !== 0 && > > > ((this.options.wrap && this.options.wrap != 'last') || this.first > > > > 1); > > > if (!this.locked && (!this.options.wrap || > > > this.options.wrap == 'last') && this.options.size != null && > > > this.first == 1) > > > p = this.tail != null && this.inTail; > > > } > > > > var self = this; > > > n = true; > > > this.buttonNext[n ? 'bind' : 'unbind'] > > > (this.options.buttonNextEvent, this.funcNext)[n ? 'removeClass' : > > > 'addClass'](this.className('jcarousel-next-disabled')).attr > > > ('disabled', n ? false : true); > > > this.buttonPrev[p ? 'bind' : 'unbind'] > > > (this.options.buttonPrevEvent, this.funcPrev)[p ? 'removeClass' : > > > 'addClass'](this.className('jcarousel-prev-disabled')).attr > > > ('disabled', p ? false : true); > > > > if (this.buttonNext.length > 0 && (this.buttonNext > > > [0].jcarouselstate == undefined || this.buttonNext[0].jcarouselstate ! > > > = n) && this.options.buttonNextCallback != null) { > > > this.buttonNext.each(function() > > > { self.options.buttonNextCallback(self, this, n); }); > > > this.buttonNext[0].jcarouselstate = true; > > > } > > > > if (this.buttonPrev.length > 0 && (this.buttonPrev > > > [0].jcarouselstate == undefined || this.buttonPrev[0].jcarouselstate ! > > > = p) && this.options.buttonPrevCallback != null) { > > > this.buttonPrev.each(function() > > > { self.options.buttonPrevCallback(self, this, p); }); > > > this.buttonPrev[0].jcarouselstate = p; > > > } > > > }, > > > > On Jul 8, 11:03 am, expresso wrote: > > > > > If you look at the JCarousel .js, here's the logic > > > > > buttonNextHTML: '', > > > > > > > > this.buttonNext = $('.jcarousel-next', this.container); > > > > > if (this.buttonNext.size() == 0 && > > > > this.options.buttonNextHTML != null) > > > > this.buttonNext = this.clip.before > > > > (this.options.buttonNextHTML).prev(); > > > > > On Jul 8, 10:40 am, BaBna 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" wrote: > > > > > > > How come is that you want to disable a div?? > > > > > > > Do you mean, block the content inside div? > > > > > > > - Original Message - > > > > > > From: "BaBna" > > > > > > To: "jQuery (English)" > > > > > > Sent: Wednesday, July 08, 2009 9:28 AM > > > > > > Subject: [jQuery] Re: Cannot disable div > > > > > > > Maybe because there is no disabled property for DIV? > > > > > > >http://www.w3schools.com/tags/tag_DIV.asp > > > > > > > On Jul 8, 4:25 pm, expresso wrote: > > > > > > > > > > > > > > > > > > > > style="display: block; height: 220px; width: 592px;"> > > > > > > > > > > > > > style="display: > > > > > > > block;" disabled="false"/> > > > > > > > > > > > > > style="display: > > > > > > > block;" disabled="false"/> > > > > > > > > > > > > > style="width: > > > > > > > 600px; height: 220px;"> > > > > > > > > > > > > > style="height: 220px; width: 3315px; left: -2028px;"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 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: Access by item in the array
It's too bad we didn't kick your ass in soccer the past couple weeks ago. Now I wish we really had! Brazil is overrated in soccer. On Jul 9, 4:40 pm, expresso wrote: > This is exactly the kind of shit I'm talking about and I am cocky? > unreal. > > On Jul 9, 4:37 pm, expresso wrote: > > > Has nothing to do with me not being good enough and you have no idea > > on the scope of my project. I can't believe you actually replied like > > that and honestly coming here to tell me you're serious. But to state > > something like that and to butt in like this is unbelievable. Do you > > do this to people at work? They'd probably kick your ass for saying > > something like that. > > > On Jul 9, 4:27 pm, Ricardo wrote: > > > > It's not meant to be derogatory, no. I've said that many times, it's a > > > fact isn't it? Sorry if it came out as rude. I could name dozens of > > > better programmers than I am, and I'm not pissed off by that! > > > > On Jul 9, 6:06 pm, expresso wrote: > > > > > >>>Or just save your sleep time and hire someone with more experience to > > > > > do this for you :] > > > > > can I ask you if that was a derogatory statement? Seems like it to > > > > me. > > > > > On Jul 9, 3:34 pm, Ricardo wrote: > > > > > > "expresso" (we don't know your name), if you're still in need of help, > > > > > why not post an overview of what you need? You've posted several > > > > > pieces of your puzzle but no one can guess the overall structure > > > > > you're trying to code. Like "I need a carousel that expands when > > > > > blablabla and loads blablabla from json". And I'm pretty sure you have > > > > > an architectural problem there, the specific issues that pop up are > > > > > just a consequence of a lack of planning. > > > > > > Or just save your sleep time and hire someone with more experience to > > > > > do this for you :] > > > > > > And, please, try to keep discussions decently worded, and avoid > > > > > posting in sequence, specially if it's just pointless fighting, this > > > > > is a public forum. Thanks! > > > > > > On Jul 9, 4:45 pm, expresso wrote: > > > > > > > I understand. I have nothing that much against you Morning and I'll > > > > > > try to sound less abrasive in the future. Keep in mind I have been > > > > > > up > > > > > > till about 12:30am for about 4 nights straight on this so I am > > > > > > definitely trying all I could on customizing it and could not afford > > > > > > to just step back and say forget this plug-in because I had gotten > > > > > > much to far into it for our solution. > > > > > > > I am not one to just post and get freebies. Trust me, that's lame. > > > > > > > On Jul 9, 2:42 pm, MorningZ wrote: > > > > > > > > It's been perfectly clear that whatever you are trying to > > > > > > > accomplish > > > > > > > is anything *but* simple... and after two weeks of messing with > > > > > > > it, > > > > > > > maybe it is/was time to cut your losses on trying to manipulate > > > > > > > code > > > > > > > with which you have no idea what is going on under the hood. > > > > > > > and code that someone wrote for free, supported for free, and has > > > > > > > since moved on.. the tablesorter plugin is the same way... > > > > > > > it's > > > > > > > an older plugin that still works today, but people customizing it > > > > > > > are > > > > > > > on their own... > > > > > > > > whatever... i've done my best to help and point out issues to this > > > > > > > point best of luck... looks like you'll need it > > > > > > > . > > > > > > > > On Jul 9, 3:33 pm, expresso wrote: > > > > > > > > > Funny thing is, I'll be blogging about this carousel. And you > > > > > > > > may > > > > > > > > find my implementation to be pretty complex but you would not > > > > > > > > know &g
[jQuery] Re: Access by item in the array
This is exactly the kind of shit I'm talking about and I am cocky? unreal. On Jul 9, 4:37 pm, expresso wrote: > Has nothing to do with me not being good enough and you have no idea > on the scope of my project. I can't believe you actually replied like > that and honestly coming here to tell me you're serious. But to state > something like that and to butt in like this is unbelievable. Do you > do this to people at work? They'd probably kick your ass for saying > something like that. > > On Jul 9, 4:27 pm, Ricardo wrote: > > > It's not meant to be derogatory, no. I've said that many times, it's a > > fact isn't it? Sorry if it came out as rude. I could name dozens of > > better programmers than I am, and I'm not pissed off by that! > > > On Jul 9, 6:06 pm, expresso wrote: > > > > >>>Or just save your sleep time and hire someone with more experience to > > > > do this for you :] > > > > can I ask you if that was a derogatory statement? Seems like it to > > > me. > > > > On Jul 9, 3:34 pm, Ricardo wrote: > > > > > "expresso" (we don't know your name), if you're still in need of help, > > > > why not post an overview of what you need? You've posted several > > > > pieces of your puzzle but no one can guess the overall structure > > > > you're trying to code. Like "I need a carousel that expands when > > > > blablabla and loads blablabla from json". And I'm pretty sure you have > > > > an architectural problem there, the specific issues that pop up are > > > > just a consequence of a lack of planning. > > > > > Or just save your sleep time and hire someone with more experience to > > > > do this for you :] > > > > > And, please, try to keep discussions decently worded, and avoid > > > > posting in sequence, specially if it's just pointless fighting, this > > > > is a public forum. Thanks! > > > > > On Jul 9, 4:45 pm, expresso wrote: > > > > > > I understand. I have nothing that much against you Morning and I'll > > > > > try to sound less abrasive in the future. Keep in mind I have been up > > > > > till about 12:30am for about 4 nights straight on this so I am > > > > > definitely trying all I could on customizing it and could not afford > > > > > to just step back and say forget this plug-in because I had gotten > > > > > much to far into it for our solution. > > > > > > I am not one to just post and get freebies. Trust me, that's lame. > > > > > > On Jul 9, 2:42 pm, MorningZ wrote: > > > > > > > It's been perfectly clear that whatever you are trying to accomplish > > > > > > is anything *but* simple... and after two weeks of messing with it, > > > > > > maybe it is/was time to cut your losses on trying to manipulate code > > > > > > with which you have no idea what is going on under the hood. > > > > > > and code that someone wrote for free, supported for free, and has > > > > > > since moved on.. the tablesorter plugin is the same way... it's > > > > > > an older plugin that still works today, but people customizing it > > > > > > are > > > > > > on their own... > > > > > > > whatever... i've done my best to help and point out issues to this > > > > > > point best of luck... looks like you'll need it > > > > > > . > > > > > > > On Jul 9, 3:33 pm, expresso wrote: > > > > > > > > Funny thing is, I'll be blogging about this carousel. And you may > > > > > > > find my implementation to be pretty complex but you would not know > > > > > > > about the entire implementation and you assume that what we are > > > > > > > doing > > > > > > > is "simple" > > > > > > > > On Jul 9, 2:03 pm, expresso wrote: > > > > > > > > > >>>making it difficult to understand what you are asking > > > > > > > > > tell me how it's difficult, I am very thorough in explaining the > > > > > > > > situation and things tried. > > > > > > > > > On Jul 9, 1:57 pm, expresso wrote: > > > > > > > > > > You've got it backwards it makes mo
[jQuery] Re: Access by item in the array
Has nothing to do with me not being good enough and you have no idea on the scope of my project. I can't believe you actually replied like that and honestly coming here to tell me you're serious. But to state something like that and to butt in like this is unbelievable. Do you do this to people at work? They'd probably kick your ass for saying something like that. On Jul 9, 4:27 pm, Ricardo wrote: > It's not meant to be derogatory, no. I've said that many times, it's a > fact isn't it? Sorry if it came out as rude. I could name dozens of > better programmers than I am, and I'm not pissed off by that! > > On Jul 9, 6:06 pm, expresso wrote: > > > >>>Or just save your sleep time and hire someone with more experience to > > > do this for you :] > > > can I ask you if that was a derogatory statement? Seems like it to > > me. > > > On Jul 9, 3:34 pm, Ricardo wrote: > > > > "expresso" (we don't know your name), if you're still in need of help, > > > why not post an overview of what you need? You've posted several > > > pieces of your puzzle but no one can guess the overall structure > > > you're trying to code. Like "I need a carousel that expands when > > > blablabla and loads blablabla from json". And I'm pretty sure you have > > > an architectural problem there, the specific issues that pop up are > > > just a consequence of a lack of planning. > > > > Or just save your sleep time and hire someone with more experience to > > > do this for you :] > > > > And, please, try to keep discussions decently worded, and avoid > > > posting in sequence, specially if it's just pointless fighting, this > > > is a public forum. Thanks! > > > > On Jul 9, 4:45 pm, expresso wrote: > > > > > I understand. I have nothing that much against you Morning and I'll > > > > try to sound less abrasive in the future. Keep in mind I have been up > > > > till about 12:30am for about 4 nights straight on this so I am > > > > definitely trying all I could on customizing it and could not afford > > > > to just step back and say forget this plug-in because I had gotten > > > > much to far into it for our solution. > > > > > I am not one to just post and get freebies. Trust me, that's lame. > > > > > On Jul 9, 2:42 pm, MorningZ wrote: > > > > > > It's been perfectly clear that whatever you are trying to accomplish > > > > > is anything *but* simple... and after two weeks of messing with it, > > > > > maybe it is/was time to cut your losses on trying to manipulate code > > > > > with which you have no idea what is going on under the hood. > > > > > and code that someone wrote for free, supported for free, and has > > > > > since moved on.. the tablesorter plugin is the same way... it's > > > > > an older plugin that still works today, but people customizing it are > > > > > on their own... > > > > > > whatever... i've done my best to help and point out issues to this > > > > > point best of luck... looks like you'll need it > > > > > . > > > > > > On Jul 9, 3:33 pm, expresso wrote: > > > > > > > Funny thing is, I'll be blogging about this carousel. And you may > > > > > > find my implementation to be pretty complex but you would not know > > > > > > about the entire implementation and you assume that what we are > > > > > > doing > > > > > > is "simple" > > > > > > > On Jul 9, 2:03 pm, expresso wrote: > > > > > > > > >>>making it difficult to understand what you are asking > > > > > > > > tell me how it's difficult, I am very thorough in explaining the > > > > > > > situation and things tried. > > > > > > > > On Jul 9, 1:57 pm, expresso wrote: > > > > > > > > > You've got it backwards it makes more sense and keeps the > > > > > > > > clutter > > > > > > > > out if you stay in the same topic. > > > > > > > > > I did not say not to stay on the same topic. I said if I start > > > > > > > > veering off into anther discussion that's talking about a > > > > > > > > different > > > > > > > > app
[jQuery] Re: Access by item in the array
Ricardo, I have a feeling some put you up to this to piss me off again :) Nice work. On Jul 9, 4:06 pm, expresso wrote: > >>>Or just save your sleep time and hire someone with more experience to > > do this for you :] > > can I ask you if that was a derogatory statement? Seems like it to > me. > > On Jul 9, 3:34 pm, Ricardo wrote: > > > "expresso" (we don't know your name), if you're still in need of help, > > why not post an overview of what you need? You've posted several > > pieces of your puzzle but no one can guess the overall structure > > you're trying to code. Like "I need a carousel that expands when > > blablabla and loads blablabla from json". And I'm pretty sure you have > > an architectural problem there, the specific issues that pop up are > > just a consequence of a lack of planning. > > > Or just save your sleep time and hire someone with more experience to > > do this for you :] > > > And, please, try to keep discussions decently worded, and avoid > > posting in sequence, specially if it's just pointless fighting, this > > is a public forum. Thanks! > > > On Jul 9, 4:45 pm, expresso wrote: > > > > I understand. I have nothing that much against you Morning and I'll > > > try to sound less abrasive in the future. Keep in mind I have been up > > > till about 12:30am for about 4 nights straight on this so I am > > > definitely trying all I could on customizing it and could not afford > > > to just step back and say forget this plug-in because I had gotten > > > much to far into it for our solution. > > > > I am not one to just post and get freebies. Trust me, that's lame. > > > > On Jul 9, 2:42 pm, MorningZ wrote: > > > > > It's been perfectly clear that whatever you are trying to accomplish > > > > is anything *but* simple... and after two weeks of messing with it, > > > > maybe it is/was time to cut your losses on trying to manipulate code > > > > with which you have no idea what is going on under the hood. > > > > and code that someone wrote for free, supported for free, and has > > > > since moved on.. the tablesorter plugin is the same way... it's > > > > an older plugin that still works today, but people customizing it are > > > > on their own... > > > > > whatever... i've done my best to help and point out issues to this > > > > point best of luck... looks like you'll need it > > > > . > > > > > On Jul 9, 3:33 pm, expresso wrote: > > > > > > Funny thing is, I'll be blogging about this carousel. And you may > > > > > find my implementation to be pretty complex but you would not know > > > > > about the entire implementation and you assume that what we are doing > > > > > is "simple" > > > > > > On Jul 9, 2:03 pm, expresso wrote: > > > > > > > >>>making it difficult to understand what you are asking > > > > > > > tell me how it's difficult, I am very thorough in explaining the > > > > > > situation and things tried. > > > > > > > On Jul 9, 1:57 pm, expresso wrote: > > > > > > > > You've got it backwards it makes more sense and keeps the > > > > > > > clutter > > > > > > > out if you stay in the same topic. > > > > > > > > I did not say not to stay on the same topic. I said if I start > > > > > > > veering off into anther discussion that's talking about a > > > > > > > different > > > > > > > approach (in this case in that previous thread I started with a > > > > > > > question about obtaining the LAST ). Then I wondering maybe > > > > > > > instead I can just iterate through the list of and grab some > > > > > > > by > > > > > > > index. At that point, that's a whole different issue or scope. > > > > > > > Yea, > > > > > > > that time I should have stuck with the thread because I already > > > > > > > committed to the question on the index. > > > > > > > > Anyway I get it. But I should not be posting 2 different > > > > > > > questions on > > > > > > > the same thread which is what I try to avoid > > > > > > &
[jQuery] Re: Access by item in the array
Ricardo, I have a feeling some put you up to this to piss me off again :) Nice work. On Jul 9, 4:06 pm, expresso wrote: > >>>Or just save your sleep time and hire someone with more experience to > > do this for you :] > > can I ask you if that was a derogatory statement? Seems like it to > me. > > On Jul 9, 3:34 pm, Ricardo wrote: > > > "expresso" (we don't know your name), if you're still in need of help, > > why not post an overview of what you need? You've posted several > > pieces of your puzzle but no one can guess the overall structure > > you're trying to code. Like "I need a carousel that expands when > > blablabla and loads blablabla from json". And I'm pretty sure you have > > an architectural problem there, the specific issues that pop up are > > just a consequence of a lack of planning. > > > Or just save your sleep time and hire someone with more experience to > > do this for you :] > > > And, please, try to keep discussions decently worded, and avoid > > posting in sequence, specially if it's just pointless fighting, this > > is a public forum. Thanks! > > > On Jul 9, 4:45 pm, expresso wrote: > > > > I understand. I have nothing that much against you Morning and I'll > > > try to sound less abrasive in the future. Keep in mind I have been up > > > till about 12:30am for about 4 nights straight on this so I am > > > definitely trying all I could on customizing it and could not afford > > > to just step back and say forget this plug-in because I had gotten > > > much to far into it for our solution. > > > > I am not one to just post and get freebies. Trust me, that's lame. > > > > On Jul 9, 2:42 pm, MorningZ wrote: > > > > > It's been perfectly clear that whatever you are trying to accomplish > > > > is anything *but* simple... and after two weeks of messing with it, > > > > maybe it is/was time to cut your losses on trying to manipulate code > > > > with which you have no idea what is going on under the hood. > > > > and code that someone wrote for free, supported for free, and has > > > > since moved on.. the tablesorter plugin is the same way... it's > > > > an older plugin that still works today, but people customizing it are > > > > on their own... > > > > > whatever... i've done my best to help and point out issues to this > > > > point best of luck... looks like you'll need it > > > > . > > > > > On Jul 9, 3:33 pm, expresso wrote: > > > > > > Funny thing is, I'll be blogging about this carousel. And you may > > > > > find my implementation to be pretty complex but you would not know > > > > > about the entire implementation and you assume that what we are doing > > > > > is "simple" > > > > > > On Jul 9, 2:03 pm, expresso wrote: > > > > > > > >>>making it difficult to understand what you are asking > > > > > > > tell me how it's difficult, I am very thorough in explaining the > > > > > > situation and things tried. > > > > > > > On Jul 9, 1:57 pm, expresso wrote: > > > > > > > > You've got it backwards it makes more sense and keeps the > > > > > > > clutter > > > > > > > out if you stay in the same topic. > > > > > > > > I did not say not to stay on the same topic. I said if I start > > > > > > > veering off into anther discussion that's talking about a > > > > > > > different > > > > > > > approach (in this case in that previous thread I started with a > > > > > > > question about obtaining the LAST ). Then I wondering maybe > > > > > > > instead I can just iterate through the list of and grab some > > > > > > > by > > > > > > > index. At that point, that's a whole different issue or scope. > > > > > > > Yea, > > > > > > > that time I should have stuck with the thread because I already > > > > > > > committed to the question on the index. > > > > > > > > Anyway I get it. But I should not be posting 2 different > > > > > > > questions on > > > > > > > the same thread which is what I try to avoid > > > > > > &
[jQuery] Re: Access by item in the array
>>>Or just save your sleep time and hire someone with more experience to do this for you :] can I ask you if that was a derogatory statement? Seems like it to me. On Jul 9, 3:34 pm, Ricardo wrote: > "expresso" (we don't know your name), if you're still in need of help, > why not post an overview of what you need? You've posted several > pieces of your puzzle but no one can guess the overall structure > you're trying to code. Like "I need a carousel that expands when > blablabla and loads blablabla from json". And I'm pretty sure you have > an architectural problem there, the specific issues that pop up are > just a consequence of a lack of planning. > > Or just save your sleep time and hire someone with more experience to > do this for you :] > > And, please, try to keep discussions decently worded, and avoid > posting in sequence, specially if it's just pointless fighting, this > is a public forum. Thanks! > > On Jul 9, 4:45 pm, expresso wrote: > > > I understand. I have nothing that much against you Morning and I'll > > try to sound less abrasive in the future. Keep in mind I have been up > > till about 12:30am for about 4 nights straight on this so I am > > definitely trying all I could on customizing it and could not afford > > to just step back and say forget this plug-in because I had gotten > > much to far into it for our solution. > > > I am not one to just post and get freebies. Trust me, that's lame. > > > On Jul 9, 2:42 pm, MorningZ wrote: > > > > It's been perfectly clear that whatever you are trying to accomplish > > > is anything *but* simple... and after two weeks of messing with it, > > > maybe it is/was time to cut your losses on trying to manipulate code > > > with which you have no idea what is going on under the hood. > > > and code that someone wrote for free, supported for free, and has > > > since moved on.. the tablesorter plugin is the same way... it's > > > an older plugin that still works today, but people customizing it are > > > on their own... > > > > whatever... i've done my best to help and point out issues to this > > > point best of luck... looks like you'll need it > > > . > > > > On Jul 9, 3:33 pm, expresso wrote: > > > > > Funny thing is, I'll be blogging about this carousel. And you may > > > > find my implementation to be pretty complex but you would not know > > > > about the entire implementation and you assume that what we are doing > > > > is "simple" > > > > > On Jul 9, 2:03 pm, expresso wrote: > > > > > > >>>making it difficult to understand what you are asking > > > > > > tell me how it's difficult, I am very thorough in explaining the > > > > > situation and things tried. > > > > > > On Jul 9, 1:57 pm, expresso wrote: > > > > > > > You've got it backwards it makes more sense and keeps the > > > > > > clutter > > > > > > out if you stay in the same topic. > > > > > > > I did not say not to stay on the same topic. I said if I start > > > > > > veering off into anther discussion that's talking about a different > > > > > > approach (in this case in that previous thread I started with a > > > > > > question about obtaining the LAST ). Then I wondering maybe > > > > > > instead I can just iterate through the list of and grab some by > > > > > > index. At that point, that's a whole different issue or scope. > > > > > > Yea, > > > > > > that time I should have stuck with the thread because I already > > > > > > committed to the question on the index. > > > > > > > Anyway I get it. But I should not be posting 2 different questions > > > > > > on > > > > > > the same thread which is what I try to avoid > > > > > > > On Jul 9, 1:54 pm, expresso wrote: > > > > > > > > how the hell am I being rude? > > > > > > > > And second, I am giving information to help you help me. Again I > > > > > > > try > > > > > > > all sorts of shit before I post stuff. I don't just post on every > > > > > > > step of the way. I am showing you what I have tried. So you > > > > > > > either > > > > > > >
[jQuery] Re: jQuery on IE
Also, do you really have in there like you are showing? Or do you actually have <script type="text/javascript"> ? On Jul 9, 2:52 pm, expresso <dschin...@gmail.com> wrote: > Does this work instead? Just curious > > jQuery(document).ready(function(){ > > On Jul 9, 2:45 pm, Paulo Henrique <paulode...@gmail.com> wrote: > > > Hello people... > > I've been working with jQuery for some time now, but mostly on Firefox. But > > i was finishing an old project, and needed javascript, so I decided to use > > jQuery on it too. > > It worked perfectly on Firefox, but on IE it ain't working. > > The code is as it follows: > > > <script> > > $(document).ready(function(){ > > var nome = ""; > > var pos = ""; > > var html = document.createElement("div"); > > $(html).attr("id", "submenu"); > > . > > }); > > > > > But the IE complains about the $ before (document), saying that an object is > > expected (object expected at line X character 1). > > > Anyone out there could know what might be the reason? > > Waiting for your help, and thanks in advance for your time. > > > Att. > > Paulo Henrique Vieira Neves > > Bsc. Sistemas de Informação > > +55 38 9141 5400 > > MSN: paulode...@live.com > > GTALK: paulode...@gmail.com > > SKYPE: paulodemoc
[jQuery] Re: jQuery on IE
Does this work instead? Just curious jQuery(document).ready(function(){ On Jul 9, 2:45 pm, Paulo Henrique wrote: > Hello people... > I've been working with jQuery for some time now, but mostly on Firefox. But > i was finishing an old project, and needed javascript, so I decided to use > jQuery on it too. > It worked perfectly on Firefox, but on IE it ain't working. > The code is as it follows: > > > $(document).ready(function(){ > var nome = ""; > var pos = ""; > var html = document.createElement("div"); > $(html).attr("id", "submenu"); > . > }); > > > But the IE complains about the $ before (document), saying that an object is > expected (object expected at line X character 1). > > Anyone out there could know what might be the reason? > Waiting for your help, and thanks in advance for your time. > > Att. > Paulo Henrique Vieira Neves > Bsc. Sistemas de Informação > +55 38 9141 5400 > MSN: paulode...@live.com > GTALK: paulode...@gmail.com > SKYPE: paulodemoc
[jQuery] Re: Access by item in the array
I understand. I have nothing that much against you Morning and I'll try to sound less abrasive in the future. Keep in mind I have been up till about 12:30am for about 4 nights straight on this so I am definitely trying all I could on customizing it and could not afford to just step back and say forget this plug-in because I had gotten much to far into it for our solution. I am not one to just post and get freebies. Trust me, that's lame. On Jul 9, 2:42 pm, MorningZ wrote: > It's been perfectly clear that whatever you are trying to accomplish > is anything *but* simple... and after two weeks of messing with it, > maybe it is/was time to cut your losses on trying to manipulate code > with which you have no idea what is going on under the hood. > and code that someone wrote for free, supported for free, and has > since moved on.. the tablesorter plugin is the same way... it's > an older plugin that still works today, but people customizing it are > on their own... > > whatever... i've done my best to help and point out issues to this > point best of luck... looks like you'll need it > . > > On Jul 9, 3:33 pm, expresso wrote: > > > Funny thing is, I'll be blogging about this carousel. And you may > > find my implementation to be pretty complex but you would not know > > about the entire implementation and you assume that what we are doing > > is "simple" > > > On Jul 9, 2:03 pm, expresso wrote: > > > > >>>making it difficult to understand what you are asking > > > > tell me how it's difficult, I am very thorough in explaining the > > > situation and things tried. > > > > On Jul 9, 1:57 pm, expresso wrote: > > > > > You've got it backwards it makes more sense and keeps the clutter > > > > out if you stay in the same topic. > > > > > I did not say not to stay on the same topic. I said if I start > > > > veering off into anther discussion that's talking about a different > > > > approach (in this case in that previous thread I started with a > > > > question about obtaining the LAST ). Then I wondering maybe > > > > instead I can just iterate through the list of and grab some by > > > > index. At that point, that's a whole different issue or scope. Yea, > > > > that time I should have stuck with the thread because I already > > > > committed to the question on the index. > > > > > Anyway I get it. But I should not be posting 2 different questions on > > > > the same thread which is what I try to avoid > > > > > On Jul 9, 1:54 pm, expresso wrote: > > > > > > how the hell am I being rude? > > > > > > And second, I am giving information to help you help me. Again I try > > > > > all sorts of shit before I post stuff. I don't just post on every > > > > > step of the way. I am showing you what I have tried. So you either > > > > > get called out for not giving enough information or giving too > > > > > little. > > > > > > Chill > > > > > > On Jul 9, 11:04 am, MorningZ wrote: > > > > > > > "so it's only respectful on my part to > > > > > > start a new thread on a different topic that's veering off in the > > > > > > same > > > > > > thread. Not cool. " > > > > > > > You've got it backwards it makes more sense and keeps the > > > > > > clutter > > > > > > out if you stay in the same topic. > > > > > > > As Liam points out you already asked the index question, AND it > > > > > > was answered by Charlie, in the topic you created just 13 hours ago > > > > > > >http://groups.google.com/group/jquery-en/browse_thread/thread/8832916... > > > > > > > and yet, here's an identical topic asking the identical question > > > > > > with > > > > > > 2 min apart two sentence ramblings on them all > > > > > > > Realize what this list for what it is: a mailing list where lots > > > > > > of > > > > > > us provide free help out of our own time > > > > > > > making it difficult to understand what you are asking, being rude to > > > > > > people trying to show you the way, rambling on and on with the same > > > > > > stuff all that doesn't lend itself very well to mak
[jQuery] Re: Access by item in the array
As requested I'm done. I hope that Charlie re-evaluates his assumptions (that people have not tried things out, that what they are doing overall is simple, yada yada) before he posts things. As for the future yea, I'll try to consolidate. I try to give as much information as possible as to what I tried but I'll try to consolidate those replies into less posts. thanks for your help Morning and Charlie. On Jul 9, 2:39 pm, Matt Zagrabelny wrote: > expresso, > > Please stop going on and on and on (ad infinitum). (I am trying to be > polite) > > Thank you. > > > > On Thu, 2009-07-09 at 12:33 -0700, expresso wrote: > > Funny thing is, I'll be blogging about this carousel. And you may > > find my implementation to be pretty complex but you would not know > > about the entire implementation and you assume that what we are doing > > is "simple" > > > On Jul 9, 2:03 pm, expresso wrote: > > > >>>making it difficult to understand what you are asking > > > > tell me how it's difficult, I am very thorough in explaining the > > > situation and things tried. > > > > On Jul 9, 1:57 pm, expresso wrote: > > > > > You've got it backwards it makes more sense and keeps the clutter > > > > out if you stay in the same topic. > > > > > I did not say not to stay on the same topic. I said if I start > > > > veering off into anther discussion that's talking about a different > > > > approach (in this case in that previous thread I started with a > > > > question about obtaining the LAST ). Then I wondering maybe > > > > instead I can just iterate through the list of and grab some by > > > > index. At that point, that's a whole different issue or scope. Yea, > > > > that time I should have stuck with the thread because I already > > > > committed to the question on the index. > > > > > Anyway I get it. But I should not be posting 2 different questions on > > > > the same thread which is what I try to avoid > > > > > On Jul 9, 1:54 pm, expresso wrote: > > > > > > how the hell am I being rude? > > > > > > And second, I am giving information to help you help me. Again I try > > > > > all sorts of shit before I post stuff. I don't just post on every > > > > > step of the way. I am showing you what I have tried. So you either > > > > > get called out for not giving enough information or giving too > > > > > little. > > > > > > Chill > > > > > > On Jul 9, 11:04 am, MorningZ wrote: > > > > > > > "so it's only respectful on my part to > > > > > > start a new thread on a different topic that's veering off in the > > > > > > same > > > > > > thread. Not cool. " > > > > > > > You've got it backwards it makes more sense and keeps the > > > > > > clutter > > > > > > out if you stay in the same topic. > > > > > > > As Liam points out you already asked the index question, AND it > > > > > > was answered by Charlie, in the topic you created just 13 hours ago > > > > > > >http://groups.google.com/group/jquery-en/browse_thread/thread/8832916... > > > > > > > and yet, here's an identical topic asking the identical question > > > > > > with > > > > > > 2 min apart two sentence ramblings on them all > > > > > > > Realize what this list for what it is: a mailing list where lots > > > > > > of > > > > > > us provide free help out of our own time > > > > > > > making it difficult to understand what you are asking, being rude to > > > > > > people trying to show you the way, rambling on and on with the same > > > > > > stuff all that doesn't lend itself very well to make your > > > > > > issues > > > > > > worth other peoples time and effort > > > > > > > . > > > > > > > On Jul 9, 11:12 am, expresso wrote: > > > > > > > > Because sometimes I get into other topics not related to my > > > > > > > original > > > > > > > posts in those other thread so it's only respectful on my part to > > > > > > > start a new thread on a different topic that's veering off in the > >
[jQuery] Re: Access by item in the array
Funny thing is, I'll be blogging about this carousel. And you may find my implementation to be pretty complex but you would not know about the entire implementation and you assume that what we are doing is "simple" On Jul 9, 2:03 pm, expresso wrote: > >>>making it difficult to understand what you are asking > > tell me how it's difficult, I am very thorough in explaining the > situation and things tried. > > On Jul 9, 1:57 pm, expresso wrote: > > > You've got it backwards it makes more sense and keeps the clutter > > out if you stay in the same topic. > > > I did not say not to stay on the same topic. I said if I start > > veering off into anther discussion that's talking about a different > > approach (in this case in that previous thread I started with a > > question about obtaining the LAST ). Then I wondering maybe > > instead I can just iterate through the list of and grab some by > > index. At that point, that's a whole different issue or scope. Yea, > > that time I should have stuck with the thread because I already > > committed to the question on the index. > > > Anyway I get it. But I should not be posting 2 different questions on > > the same thread which is what I try to avoid > > > On Jul 9, 1:54 pm, expresso wrote: > > > > how the hell am I being rude? > > > > And second, I am giving information to help you help me. Again I try > > > all sorts of shit before I post stuff. I don't just post on every > > > step of the way. I am showing you what I have tried. So you either > > > get called out for not giving enough information or giving too > > > little. > > > > Chill > > > > On Jul 9, 11:04 am, MorningZ wrote: > > > > > "so it's only respectful on my part to > > > > start a new thread on a different topic that's veering off in the same > > > > thread. Not cool. " > > > > > You've got it backwards it makes more sense and keeps the clutter > > > > out if you stay in the same topic. > > > > > As Liam points out you already asked the index question, AND it > > > > was answered by Charlie, in the topic you created just 13 hours ago > > > > >http://groups.google.com/group/jquery-en/browse_thread/thread/8832916... > > > > > and yet, here's an identical topic asking the identical question with > > > > 2 min apart two sentence ramblings on them all > > > > > Realize what this list for what it is: a mailing list where lots of > > > > us provide free help out of our own time > > > > > making it difficult to understand what you are asking, being rude to > > > > people trying to show you the way, rambling on and on with the same > > > > stuff all that doesn't lend itself very well to make your issues > > > > worth other peoples time and effort > > > > > . > > > > > On Jul 9, 11:12 am, expresso wrote: > > > > > > Because sometimes I get into other topics not related to my original > > > > > posts in those other thread so it's only respectful on my part to > > > > > start a new thread on a different topic that's veering off in the same > > > > > thread. Not cool. > > > > > > On Jul 9, 9:30 am, Liam Potter wrote: > > > > > > > how about reading all the replies to your other thread about this? > > > > > > > $("#mycarousel > li:eq(10)").css("margin-right", "5px"); > > > > > > > expresso wrote: > > > > > > > Is it possible to target certain in an unordered list by > > > > > > > index > > > > > > > with jQuery? I thought maybe I could use .index but was not able > > > > > > > to > > > > > > > get the syntax right. > > > > > > > > I thought maybe something like this would work but is has not: > > > > > > > > $("#mycarousel > li").index(i).css("margin-right", "5px");
[jQuery] Re: Access by item in the array
While I certainly have gotten all pissed off in this thread now...I think both sides need to re-evaluate. On your side, you need to both stop with your little hints of "you're an idiot" in your responses. Key words like these from developers who think they are above others is what I'm talking about: "Of Course" "Why would you do that" "Obviously" key words like this are unneccessary when you are trying to help out a fellow. So please, this is not a one way highway here for bashing today. On Jul 9, 2:24 pm, expresso wrote: > >>>Morning, then tell my why the code is putting that in there straight > > from the JCarousel plug-in > > Because previous to that, you were pretty cocky about the way you said > that disabled is not part of a Read the post. > > YOu have to take that response above in context. I was in no way > trying to be cocky, just making a point that hey, it's in there so I > don't get why then. > > On Jul 9, 2:22 pm, expresso wrote: > > > Charlie, I have said thanks in a lot of my posts. > > > Second, I am customizing this control way beyond what most people > > have. And yes, it's pretty frustrating to say the least when you > > create a plugin and then disappear after 2 years. While it's open > > source, still. When you email the creator nicely asking him if he's > > still contributing and you get no response, and then the forums the > > pages for that Carousel are abandoned, one's got to wonder wtf. > > > My tone? Look at the kind of responses I get from people like you. > > Stuff like "Of Course that won't work". Your tone is just as cocky as > > you think mine is. > > > >>>a number of the last posts directed back to you have been trying to give > > >>>you a clue that everyone is getting really tired of all the frantic posts > > > I don't see how they are frantic, just separated out. And I don't see > > all the people here who are getting fed up. > > > I want you and Morning to know that some of the responses are > > definitely passive aggressive on your side to even start with. Do you > > need examples? > > > I'm not here to argue. I'll do my best to consolidate my replies. > > And understand that people are human, sure I'm frustrated with the > > fact that the author is no longer to be found. Don't take someone's > > frustration to the point of saying I'm being negative when I was not > > THAT negative. What a way to blow this entire thing out of the water. > > > On Jul 9, 2:08 pm, Charlie wrote: > > > > you sir are a complete ingrate! > > > You have had endless help from numerous people for 2 weeks on a simple > > > carousel. I don't think you understand the tone of a number of the last > > > posts directed back to you have been trying to give you a clue that > > > everyone is getting really tired of all the frantic posts, condemning > > > someone's code ( on a plugin that 100's of people have used I might add), > > > not reading replies with solutions..and to top it off this post makes > > > it sound like others with busy lives are just sitting around waiting to > > > help you! > > > This post is rude! Wake up! Any reply to MorningZ's post I would have > > > been expecting to see some thanks, rather than being a pompous A**. My > > > bet is you just burned a big bridge to any further assistance with an > > > attitude like the one displayed here > > > I'm betting I speak for many others who are tired of the inbox clutter > > > from your carousel problems > > > expresso wrote:how the hell am I being rude? And second, I am giving > > > information to help you help me. Again I try all sorts of shit before I > > > post stuff. I don't just post on every step of the way. I am showing you > > > what I have tried. So you either get called out for not giving enough > > > information or giving too little. Chill On Jul 9, 11:04 am, > > > MorningZwrote:"so it's only respectful on my part to > > > start a new thread on a different topic that's veering off in the same > > > thread. Not cool. " You've got it backwards it makes more sense and > > > keeps the clutter out if you stay in the same topic. As Liam points > > > out you already asked the index question, AND it was answered by > > > Charlie, in the topic you created just 13 hours > > > agohttp://groups.google.com/group/jquery-en/browse_t
[jQuery] Re: Access by item in the array
Charlie and this is what pisses me off about you, statements like this: "You have had endless help from numerous people for 2 weeks on a simple carousel" so you're saying basically "you're an idiot, this shit is simple". wtf man, and you find me cocky? I hate developers like you who think that they are God's gift to mankind and you come at people with things like "what you can't figure that out, it's simple" kind of cocky attitude like I'm some kind of dumbass. On Jul 9, 2:24 pm, expresso wrote: > >>>Morning, then tell my why the code is putting that in there straight > > from the JCarousel plug-in > > Because previous to that, you were pretty cocky about the way you said > that disabled is not part of a Read the post. > > YOu have to take that response above in context. I was in no way > trying to be cocky, just making a point that hey, it's in there so I > don't get why then. > > On Jul 9, 2:22 pm, expresso wrote: > > > Charlie, I have said thanks in a lot of my posts. > > > Second, I am customizing this control way beyond what most people > > have. And yes, it's pretty frustrating to say the least when you > > create a plugin and then disappear after 2 years. While it's open > > source, still. When you email the creator nicely asking him if he's > > still contributing and you get no response, and then the forums the > > pages for that Carousel are abandoned, one's got to wonder wtf. > > > My tone? Look at the kind of responses I get from people like you. > > Stuff like "Of Course that won't work". Your tone is just as cocky as > > you think mine is. > > > >>>a number of the last posts directed back to you have been trying to give > > >>>you a clue that everyone is getting really tired of all the frantic posts > > > I don't see how they are frantic, just separated out. And I don't see > > all the people here who are getting fed up. > > > I want you and Morning to know that some of the responses are > > definitely passive aggressive on your side to even start with. Do you > > need examples? > > > I'm not here to argue. I'll do my best to consolidate my replies. > > And understand that people are human, sure I'm frustrated with the > > fact that the author is no longer to be found. Don't take someone's > > frustration to the point of saying I'm being negative when I was not > > THAT negative. What a way to blow this entire thing out of the water. > > > On Jul 9, 2:08 pm, Charlie wrote: > > > > you sir are a complete ingrate! > > > You have had endless help from numerous people for 2 weeks on a simple > > > carousel. I don't think you understand the tone of a number of the last > > > posts directed back to you have been trying to give you a clue that > > > everyone is getting really tired of all the frantic posts, condemning > > > someone's code ( on a plugin that 100's of people have used I might add), > > > not reading replies with solutions..and to top it off this post makes > > > it sound like others with busy lives are just sitting around waiting to > > > help you! > > > This post is rude! Wake up! Any reply to MorningZ's post I would have > > > been expecting to see some thanks, rather than being a pompous A**. My > > > bet is you just burned a big bridge to any further assistance with an > > > attitude like the one displayed here > > > I'm betting I speak for many others who are tired of the inbox clutter > > > from your carousel problems > > > expresso wrote:how the hell am I being rude? And second, I am giving > > > information to help you help me. Again I try all sorts of shit before I > > > post stuff. I don't just post on every step of the way. I am showing you > > > what I have tried. So you either get called out for not giving enough > > > information or giving too little. Chill On Jul 9, 11:04 am, > > > MorningZwrote:"so it's only respectful on my part to > > > start a new thread on a different topic that's veering off in the same > > > thread. Not cool. " You've got it backwards it makes more sense and > > > keeps the clutter out if you stay in the same topic. As Liam points > > > out you already asked the index question, AND it was answered by > > > Charlie, in the topic you created just 13 hours > > > agohttp://groups.google.com/group/jquery-en/browse_thread/thread/8
[jQuery] Re: Access by item in the array
>>>and you blow up at my wondering why the author of that plugin put it on there... how the @#$% am i supposed to know? if that's "blowing up" then you need to relax when you read replies. That in no way was "blowing up". On Jul 9, 2:24 pm, expresso wrote: > >>>Morning, then tell my why the code is putting that in there straight > > from the JCarousel plug-in > > Because previous to that, you were pretty cocky about the way you said > that disabled is not part of a Read the post. > > YOu have to take that response above in context. I was in no way > trying to be cocky, just making a point that hey, it's in there so I > don't get why then. > > On Jul 9, 2:22 pm, expresso wrote: > > > Charlie, I have said thanks in a lot of my posts. > > > Second, I am customizing this control way beyond what most people > > have. And yes, it's pretty frustrating to say the least when you > > create a plugin and then disappear after 2 years. While it's open > > source, still. When you email the creator nicely asking him if he's > > still contributing and you get no response, and then the forums the > > pages for that Carousel are abandoned, one's got to wonder wtf. > > > My tone? Look at the kind of responses I get from people like you. > > Stuff like "Of Course that won't work". Your tone is just as cocky as > > you think mine is. > > > >>>a number of the last posts directed back to you have been trying to give > > >>>you a clue that everyone is getting really tired of all the frantic posts > > > I don't see how they are frantic, just separated out. And I don't see > > all the people here who are getting fed up. > > > I want you and Morning to know that some of the responses are > > definitely passive aggressive on your side to even start with. Do you > > need examples? > > > I'm not here to argue. I'll do my best to consolidate my replies. > > And understand that people are human, sure I'm frustrated with the > > fact that the author is no longer to be found. Don't take someone's > > frustration to the point of saying I'm being negative when I was not > > THAT negative. What a way to blow this entire thing out of the water. > > > On Jul 9, 2:08 pm, Charlie wrote: > > > > you sir are a complete ingrate! > > > You have had endless help from numerous people for 2 weeks on a simple > > > carousel. I don't think you understand the tone of a number of the last > > > posts directed back to you have been trying to give you a clue that > > > everyone is getting really tired of all the frantic posts, condemning > > > someone's code ( on a plugin that 100's of people have used I might add), > > > not reading replies with solutions..and to top it off this post makes > > > it sound like others with busy lives are just sitting around waiting to > > > help you! > > > This post is rude! Wake up! Any reply to MorningZ's post I would have > > > been expecting to see some thanks, rather than being a pompous A**. My > > > bet is you just burned a big bridge to any further assistance with an > > > attitude like the one displayed here > > > I'm betting I speak for many others who are tired of the inbox clutter > > > from your carousel problems > > > expresso wrote:how the hell am I being rude? And second, I am giving > > > information to help you help me. Again I try all sorts of shit before I > > > post stuff. I don't just post on every step of the way. I am showing you > > > what I have tried. So you either get called out for not giving enough > > > information or giving too little. Chill On Jul 9, 11:04 am, > > > MorningZwrote:"so it's only respectful on my part to > > > start a new thread on a different topic that's veering off in the same > > > thread. Not cool. " You've got it backwards it makes more sense and > > > keeps the clutter out if you stay in the same topic. As Liam points > > > out you already asked the index question, AND it was answered by > > > Charlie, in the topic you created just 13 hours > > > agohttp://groups.google.com/group/jquery-en/browse_thread/thread/8832916... > > > and yet, here's an identical topic asking the identical question with 2 > > > min apart two sentence ramblings on them all Realize what this list > > > for what it is: a mailing list where lots of us provide free he
[jQuery] Re: Access by item in the array
>>>Morning, then tell my why the code is putting that in there straight from the JCarousel plug-in Because previous to that, you were pretty cocky about the way you said that disabled is not part of a Read the post. YOu have to take that response above in context. I was in no way trying to be cocky, just making a point that hey, it's in there so I don't get why then. On Jul 9, 2:22 pm, expresso wrote: > Charlie, I have said thanks in a lot of my posts. > > Second, I am customizing this control way beyond what most people > have. And yes, it's pretty frustrating to say the least when you > create a plugin and then disappear after 2 years. While it's open > source, still. When you email the creator nicely asking him if he's > still contributing and you get no response, and then the forums the > pages for that Carousel are abandoned, one's got to wonder wtf. > > My tone? Look at the kind of responses I get from people like you. > Stuff like "Of Course that won't work". Your tone is just as cocky as > you think mine is. > > >>>a number of the last posts directed back to you have been trying to give > >>>you a clue that everyone is getting really tired of all the frantic posts > > I don't see how they are frantic, just separated out. And I don't see > all the people here who are getting fed up. > > I want you and Morning to know that some of the responses are > definitely passive aggressive on your side to even start with. Do you > need examples? > > I'm not here to argue. I'll do my best to consolidate my replies. > And understand that people are human, sure I'm frustrated with the > fact that the author is no longer to be found. Don't take someone's > frustration to the point of saying I'm being negative when I was not > THAT negative. What a way to blow this entire thing out of the water. > > On Jul 9, 2:08 pm, Charlie wrote: > > > you sir are a complete ingrate! > > You have had endless help from numerous people for 2 weeks on a simple > > carousel. I don't think you understand the tone of a number of the last > > posts directed back to you have been trying to give you a clue that > > everyone is getting really tired of all the frantic posts, condemning > > someone's code ( on a plugin that 100's of people have used I might add), > > not reading replies with solutions..and to top it off this post makes > > it sound like others with busy lives are just sitting around waiting to > > help you! > > This post is rude! Wake up! Any reply to MorningZ's post I would have been > > expecting to see some thanks, rather than being a pompous A**. My bet is > > you just burned a big bridge to any further assistance with an attitude > > like the one displayed here > > I'm betting I speak for many others who are tired of the inbox clutter from > > your carousel problems > > expresso wrote:how the hell am I being rude? And second, I am giving > > information to help you help me. Again I try all sorts of shit before I > > post stuff. I don't just post on every step of the way. I am showing you > > what I have tried. So you either get called out for not giving enough > > information or giving too little. Chill On Jul 9, 11:04 am, > > MorningZwrote:"so it's only respectful on my part to > > start a new thread on a different topic that's veering off in the same > > thread. Not cool. " You've got it backwards it makes more sense and > > keeps the clutter out if you stay in the same topic. As Liam points > > out you already asked the index question, AND it was answered by > > Charlie, in the topic you created just 13 hours > > agohttp://groups.google.com/group/jquery-en/browse_thread/thread/8832916... > > and yet, here's an identical topic asking the identical question with 2 min > > apart two sentence ramblings on them all Realize what this list for > > what it is: a mailing list where lots of us provide free help out of our > > own time making it difficult to understand what you are asking, being > > rude to people trying to show you the way, rambling on and on with the same > > stuff all that doesn't lend itself very well to make your issues worth > > other peoples time and effort . On Jul 9, 11:12 am, > > expressowrote:Because sometimes I get into other > > topics not related to my original posts in those other thread so it's only > > respectful on my part to start a new thread on a different topic that's > > veering off in the same thread. Not cool.On Jul 9, 9:30 am, Liam > > Potterwrote:how about reading all the replies to > > your other thread about this?$("#mycarousel > > > li:eq(10)").css("margin-right", "5px");expresso wrote:Is it possible to > > target certain in an unordered list by index with jQuery? I thought > > maybe I could use .index but was not able to get the syntax right.I thought > > maybe something like this would work but is has not:$("#mycarousel > > > li").index(i).css("margin-right", "5px");
[jQuery] Re: Access by item in the array
Charlie, I have said thanks in a lot of my posts. Second, I am customizing this control way beyond what most people have. And yes, it's pretty frustrating to say the least when you create a plugin and then disappear after 2 years. While it's open source, still. When you email the creator nicely asking him if he's still contributing and you get no response, and then the forums the pages for that Carousel are abandoned, one's got to wonder wtf. My tone? Look at the kind of responses I get from people like you. Stuff like "Of Course that won't work". Your tone is just as cocky as you think mine is. >>>a number of the last posts directed back to you have been trying to give you >>>a clue that everyone is getting really tired of all the frantic posts I don't see how they are frantic, just separated out. And I don't see all the people here who are getting fed up. I want you and Morning to know that some of the responses are definitely passive aggressive on your side to even start with. Do you need examples? I'm not here to argue. I'll do my best to consolidate my replies. And understand that people are human, sure I'm frustrated with the fact that the author is no longer to be found. Don't take someone's frustration to the point of saying I'm being negative when I was not THAT negative. What a way to blow this entire thing out of the water. On Jul 9, 2:08 pm, Charlie wrote: > you sir are a complete ingrate! > You have had endless help from numerous people for 2 weeks on a simple > carousel. I don't think you understand the tone of a number of the last posts > directed back to you have been trying to give you a clue that everyone is > getting really tired of all the frantic posts, condemning someone's code ( on > a plugin that 100's of people have used I might add), not reading replies > with solutions..and to top it off this post makes it sound like others > with busy lives are just sitting around waiting to help you! > This post is rude! Wake up! Any reply to MorningZ's post I would have been > expecting to see some thanks, rather than being a pompous A**. My bet is you > just burned a big bridge to any further assistance with an attitude like the > one displayed here > I'm betting I speak for many others who are tired of the inbox clutter from > your carousel problems > expresso wrote:how the hell am I being rude? And second, I am giving > information to help you help me. Again I try all sorts of shit before I post > stuff. I don't just post on every step of the way. I am showing you what I > have tried. So you either get called out for not giving enough information or > giving too little. Chill On Jul 9, 11:04 am, > MorningZwrote:"so it's only respectful on my part to > start a new thread on a different topic that's veering off in the same > thread. Not cool. " You've got it backwards it makes more sense and > keeps the clutter out if you stay in the same topic. As Liam points > out you already asked the index question, AND it was answered by Charlie, > in the topic you created just 13 hours > agohttp://groups.google.com/group/jquery-en/browse_thread/thread/8832916... > and yet, here's an identical topic asking the identical question with 2 min > apart two sentence ramblings on them all Realize what this list for what > it is: a mailing list where lots of us provide free help out of our own > time making it difficult to understand what you are asking, being rude to > people trying to show you the way, rambling on and on with the same stuff > all that doesn't lend itself very well to make your issues worth other > peoples time and effort . On Jul 9, 11:12 am, > expressowrote:Because sometimes I get into other topics > not related to my original posts in those other thread so it's only > respectful on my part to start a new thread on a different topic that's > veering off in the same thread. Not cool.On Jul 9, 9:30 am, Liam > Potterwrote:how about reading all the replies to > your other thread about this?$("#mycarousel > li:eq(10)").css("margin-right", > "5px");expresso wrote:Is it possible to target certain in an unordered > list by index with jQuery? I thought maybe I could use .index but was not > able to get the syntax right.I thought maybe something like this would work > but is has not:$("#mycarousel > li").index(i).css("margin-right", "5px");
[jQuery] Re: Access by item in the array
hahah, I double posted. OH boy, bend me over and slap me. On Jul 9, 2:03 pm, expresso wrote: > >>>making it difficult to understand what you are asking > > tell me how it's difficult, I am very thorough in explaining the > situation and things tried. > > On Jul 9, 1:57 pm, expresso wrote: > > > You've got it backwards it makes more sense and keeps the clutter > > out if you stay in the same topic. > > > I did not say not to stay on the same topic. I said if I start > > veering off into anther discussion that's talking about a different > > approach (in this case in that previous thread I started with a > > question about obtaining the LAST ). Then I wondering maybe > > instead I can just iterate through the list of and grab some by > > index. At that point, that's a whole different issue or scope. Yea, > > that time I should have stuck with the thread because I already > > committed to the question on the index. > > > Anyway I get it. But I should not be posting 2 different questions on > > the same thread which is what I try to avoid > > > On Jul 9, 1:54 pm, expresso wrote: > > > > how the hell am I being rude? > > > > And second, I am giving information to help you help me. Again I try > > > all sorts of shit before I post stuff. I don't just post on every > > > step of the way. I am showing you what I have tried. So you either > > > get called out for not giving enough information or giving too > > > little. > > > > Chill > > > > On Jul 9, 11:04 am, MorningZ wrote: > > > > > "so it's only respectful on my part to > > > > start a new thread on a different topic that's veering off in the same > > > > thread. Not cool. " > > > > > You've got it backwards it makes more sense and keeps the clutter > > > > out if you stay in the same topic. > > > > > As Liam points out you already asked the index question, AND it > > > > was answered by Charlie, in the topic you created just 13 hours ago > > > > >http://groups.google.com/group/jquery-en/browse_thread/thread/8832916... > > > > > and yet, here's an identical topic asking the identical question with > > > > 2 min apart two sentence ramblings on them all > > > > > Realize what this list for what it is: a mailing list where lots of > > > > us provide free help out of our own time > > > > > making it difficult to understand what you are asking, being rude to > > > > people trying to show you the way, rambling on and on with the same > > > > stuff all that doesn't lend itself very well to make your issues > > > > worth other peoples time and effort > > > > > . > > > > > On Jul 9, 11:12 am, expresso wrote: > > > > > > Because sometimes I get into other topics not related to my original > > > > > posts in those other thread so it's only respectful on my part to > > > > > start a new thread on a different topic that's veering off in the same > > > > > thread. Not cool. > > > > > > On Jul 9, 9:30 am, Liam Potter wrote: > > > > > > > how about reading all the replies to your other thread about this? > > > > > > > $("#mycarousel > li:eq(10)").css("margin-right", "5px"); > > > > > > > expresso wrote: > > > > > > > Is it possible to target certain in an unordered list by > > > > > > > index > > > > > > > with jQuery? I thought maybe I could use .index but was not able > > > > > > > to > > > > > > > get the syntax right. > > > > > > > > I thought maybe something like this would work but is has not: > > > > > > > > $("#mycarousel > li").index(i).css("margin-right", "5px");
[jQuery] Re: Access by item in the array
>>>making it difficult to understand what you are asking tell me how it's difficult, I am very thorough in explaining the situation and things tried. On Jul 9, 1:57 pm, expresso wrote: > You've got it backwards it makes more sense and keeps the clutter > out if you stay in the same topic. > > I did not say not to stay on the same topic. I said if I start > veering off into anther discussion that's talking about a different > approach (in this case in that previous thread I started with a > question about obtaining the LAST ). Then I wondering maybe > instead I can just iterate through the list of and grab some by > index. At that point, that's a whole different issue or scope. Yea, > that time I should have stuck with the thread because I already > committed to the question on the index. > > Anyway I get it. But I should not be posting 2 different questions on > the same thread which is what I try to avoid > > On Jul 9, 1:54 pm, expresso wrote: > > > how the hell am I being rude? > > > And second, I am giving information to help you help me. Again I try > > all sorts of shit before I post stuff. I don't just post on every > > step of the way. I am showing you what I have tried. So you either > > get called out for not giving enough information or giving too > > little. > > > Chill > > > On Jul 9, 11:04 am, MorningZ wrote: > > > > "so it's only respectful on my part to > > > start a new thread on a different topic that's veering off in the same > > > thread. Not cool. " > > > > You've got it backwards it makes more sense and keeps the clutter > > > out if you stay in the same topic. > > > > As Liam points out you already asked the index question, AND it > > > was answered by Charlie, in the topic you created just 13 hours ago > > > >http://groups.google.com/group/jquery-en/browse_thread/thread/8832916... > > > > and yet, here's an identical topic asking the identical question with > > > 2 min apart two sentence ramblings on them all > > > > Realize what this list for what it is: a mailing list where lots of > > > us provide free help out of our own time > > > > making it difficult to understand what you are asking, being rude to > > > people trying to show you the way, rambling on and on with the same > > > stuff all that doesn't lend itself very well to make your issues > > > worth other peoples time and effort > > > > . > > > > On Jul 9, 11:12 am, expresso wrote: > > > > > Because sometimes I get into other topics not related to my original > > > > posts in those other thread so it's only respectful on my part to > > > > start a new thread on a different topic that's veering off in the same > > > > thread. Not cool. > > > > > On Jul 9, 9:30 am, Liam Potter wrote: > > > > > > how about reading all the replies to your other thread about this? > > > > > > $("#mycarousel > li:eq(10)").css("margin-right", "5px"); > > > > > > expresso wrote: > > > > > > Is it possible to target certain in an unordered list by index > > > > > > with jQuery? I thought maybe I could use .index but was not able to > > > > > > get the syntax right. > > > > > > > I thought maybe something like this would work but is has not: > > > > > > > $("#mycarousel > li").index(i).css("margin-right", "5px");
[jQuery] Re: Access by item in the array
>>>making it difficult to understand what you are asking tell me how it's difficult, I am very thorough in explaining the situation and things tried. On Jul 9, 1:57 pm, expresso wrote: > You've got it backwards it makes more sense and keeps the clutter > out if you stay in the same topic. > > I did not say not to stay on the same topic. I said if I start > veering off into anther discussion that's talking about a different > approach (in this case in that previous thread I started with a > question about obtaining the LAST ). Then I wondering maybe > instead I can just iterate through the list of and grab some by > index. At that point, that's a whole different issue or scope. Yea, > that time I should have stuck with the thread because I already > committed to the question on the index. > > Anyway I get it. But I should not be posting 2 different questions on > the same thread which is what I try to avoid > > On Jul 9, 1:54 pm, expresso wrote: > > > how the hell am I being rude? > > > And second, I am giving information to help you help me. Again I try > > all sorts of shit before I post stuff. I don't just post on every > > step of the way. I am showing you what I have tried. So you either > > get called out for not giving enough information or giving too > > little. > > > Chill > > > On Jul 9, 11:04 am, MorningZ wrote: > > > > "so it's only respectful on my part to > > > start a new thread on a different topic that's veering off in the same > > > thread. Not cool. " > > > > You've got it backwards it makes more sense and keeps the clutter > > > out if you stay in the same topic. > > > > As Liam points out you already asked the index question, AND it > > > was answered by Charlie, in the topic you created just 13 hours ago > > > >http://groups.google.com/group/jquery-en/browse_thread/thread/8832916... > > > > and yet, here's an identical topic asking the identical question with > > > 2 min apart two sentence ramblings on them all > > > > Realize what this list for what it is: a mailing list where lots of > > > us provide free help out of our own time > > > > making it difficult to understand what you are asking, being rude to > > > people trying to show you the way, rambling on and on with the same > > > stuff all that doesn't lend itself very well to make your issues > > > worth other peoples time and effort > > > > . > > > > On Jul 9, 11:12 am, expresso wrote: > > > > > Because sometimes I get into other topics not related to my original > > > > posts in those other thread so it's only respectful on my part to > > > > start a new thread on a different topic that's veering off in the same > > > > thread. Not cool. > > > > > On Jul 9, 9:30 am, Liam Potter wrote: > > > > > > how about reading all the replies to your other thread about this? > > > > > > $("#mycarousel > li:eq(10)").css("margin-right", "5px"); > > > > > > expresso wrote: > > > > > > Is it possible to target certain in an unordered list by index > > > > > > with jQuery? I thought maybe I could use .index but was not able to > > > > > > get the syntax right. > > > > > > > I thought maybe something like this would work but is has not: > > > > > > > $("#mycarousel > li").index(i).css("margin-right", "5px");
[jQuery] Re: Access by item in the array
>>>making it difficult to understand what you are asking tell me how it's difficult, I am very thorough in explaining the situation and things tried. On Jul 9, 1:57 pm, expresso wrote: > You've got it backwards it makes more sense and keeps the clutter > out if you stay in the same topic. > > I did not say not to stay on the same topic. I said if I start > veering off into anther discussion that's talking about a different > approach (in this case in that previous thread I started with a > question about obtaining the LAST ). Then I wondering maybe > instead I can just iterate through the list of and grab some by > index. At that point, that's a whole different issue or scope. Yea, > that time I should have stuck with the thread because I already > committed to the question on the index. > > Anyway I get it. But I should not be posting 2 different questions on > the same thread which is what I try to avoid > > On Jul 9, 1:54 pm, expresso wrote: > > > how the hell am I being rude? > > > And second, I am giving information to help you help me. Again I try > > all sorts of shit before I post stuff. I don't just post on every > > step of the way. I am showing you what I have tried. So you either > > get called out for not giving enough information or giving too > > little. > > > Chill > > > On Jul 9, 11:04 am, MorningZ wrote: > > > > "so it's only respectful on my part to > > > start a new thread on a different topic that's veering off in the same > > > thread. Not cool. " > > > > You've got it backwards it makes more sense and keeps the clutter > > > out if you stay in the same topic. > > > > As Liam points out you already asked the index question, AND it > > > was answered by Charlie, in the topic you created just 13 hours ago > > > >http://groups.google.com/group/jquery-en/browse_thread/thread/8832916... > > > > and yet, here's an identical topic asking the identical question with > > > 2 min apart two sentence ramblings on them all > > > > Realize what this list for what it is: a mailing list where lots of > > > us provide free help out of our own time > > > > making it difficult to understand what you are asking, being rude to > > > people trying to show you the way, rambling on and on with the same > > > stuff all that doesn't lend itself very well to make your issues > > > worth other peoples time and effort > > > > . > > > > On Jul 9, 11:12 am, expresso wrote: > > > > > Because sometimes I get into other topics not related to my original > > > > posts in those other thread so it's only respectful on my part to > > > > start a new thread on a different topic that's veering off in the same > > > > thread. Not cool. > > > > > On Jul 9, 9:30 am, Liam Potter wrote: > > > > > > how about reading all the replies to your other thread about this? > > > > > > $("#mycarousel > li:eq(10)").css("margin-right", "5px"); > > > > > > expresso wrote: > > > > > > Is it possible to target certain in an unordered list by index > > > > > > with jQuery? I thought maybe I could use .index but was not able to > > > > > > get the syntax right. > > > > > > > I thought maybe something like this would work but is has not: > > > > > > > $("#mycarousel > li").index(i).css("margin-right", "5px");
[jQuery] Re: Access by item in the array
You've got it backwards it makes more sense and keeps the clutter out if you stay in the same topic. I did not say not to stay on the same topic. I said if I start veering off into anther discussion that's talking about a different approach (in this case in that previous thread I started with a question about obtaining the LAST ). Then I wondering maybe instead I can just iterate through the list of and grab some by index. At that point, that's a whole different issue or scope. Yea, that time I should have stuck with the thread because I already committed to the question on the index. Anyway I get it. But I should not be posting 2 different questions on the same thread which is what I try to avoid On Jul 9, 1:54 pm, expresso wrote: > how the hell am I being rude? > > And second, I am giving information to help you help me. Again I try > all sorts of shit before I post stuff. I don't just post on every > step of the way. I am showing you what I have tried. So you either > get called out for not giving enough information or giving too > little. > > Chill > > On Jul 9, 11:04 am, MorningZ wrote: > > > "so it's only respectful on my part to > > start a new thread on a different topic that's veering off in the same > > thread. Not cool. " > > > You've got it backwards it makes more sense and keeps the clutter > > out if you stay in the same topic. > > > As Liam points out you already asked the index question, AND it > > was answered by Charlie, in the topic you created just 13 hours ago > > >http://groups.google.com/group/jquery-en/browse_thread/thread/8832916... > > > and yet, here's an identical topic asking the identical question with > > 2 min apart two sentence ramblings on them all > > > Realize what this list for what it is: a mailing list where lots of > > us provide free help out of our own time > > > making it difficult to understand what you are asking, being rude to > > people trying to show you the way, rambling on and on with the same > > stuff all that doesn't lend itself very well to make your issues > > worth other peoples time and effort > > > . > > > On Jul 9, 11:12 am, expresso wrote: > > > > Because sometimes I get into other topics not related to my original > > > posts in those other thread so it's only respectful on my part to > > > start a new thread on a different topic that's veering off in the same > > > thread. Not cool. > > > > On Jul 9, 9:30 am, Liam Potter wrote: > > > > > how about reading all the replies to your other thread about this? > > > > > $("#mycarousel > li:eq(10)").css("margin-right", "5px"); > > > > > expresso wrote: > > > > > Is it possible to target certain in an unordered list by index > > > > > with jQuery? I thought maybe I could use .index but was not able to > > > > > get the syntax right. > > > > > > I thought maybe something like this would work but is has not: > > > > > > $("#mycarousel > li").index(i).css("margin-right", "5px");
[jQuery] Re: Access by item in the array
how the hell am I being rude? And second, I am giving information to help you help me. Again I try all sorts of shit before I post stuff. I don't just post on every step of the way. I am showing you what I have tried. So you either get called out for not giving enough information or giving too little. Chill On Jul 9, 11:04 am, MorningZ wrote: > "so it's only respectful on my part to > start a new thread on a different topic that's veering off in the same > thread. Not cool. " > > You've got it backwards it makes more sense and keeps the clutter > out if you stay in the same topic. > > As Liam points out you already asked the index question, AND it > was answered by Charlie, in the topic you created just 13 hours ago > > http://groups.google.com/group/jquery-en/browse_thread/thread/8832916... > > and yet, here's an identical topic asking the identical question with > 2 min apart two sentence ramblings on them all > > Realize what this list for what it is: a mailing list where lots of > us provide free help out of our own time > > making it difficult to understand what you are asking, being rude to > people trying to show you the way, rambling on and on with the same > stuff all that doesn't lend itself very well to make your issues > worth other peoples time and effort > > . > > On Jul 9, 11:12 am, expresso wrote: > > > Because sometimes I get into other topics not related to my original > > posts in those other thread so it's only respectful on my part to > > start a new thread on a different topic that's veering off in the same > > thread. Not cool. > > > On Jul 9, 9:30 am, Liam Potter wrote: > > > > how about reading all the replies to your other thread about this? > > > > $("#mycarousel > li:eq(10)").css("margin-right", "5px"); > > > > expresso wrote: > > > > Is it possible to target certain in an unordered list by index > > > > with jQuery? I thought maybe I could use .index but was not able to > > > > get the syntax right. > > > > > I thought maybe something like this would work but is has not: > > > > > $("#mycarousel > li").index(i).css("margin-right", "5px");
[jQuery] Re: Remove margin in last in Unordered List
I did not know about eq and I don't have all fing day to figure this out as I am very new to jQuery. I do my dilligence and read the books, try some stuff out and then when I am not sure of another way to do this I post. It's not like I am posting every step of the way although it msut appear that to you. I tried a few things before I posted. On Jul 9, 7:04 am, Charlie wrote: > of course it won't work, is improper use of index(), > replace index() with eq() > Suggestion: > instead of posting each and every thought and failed function you have every > 2 minutes, this example could have been created in a very simple test page to > get the methods and syntax sorted out. Would have saved us watch the > floundering on each and every step of your grief. Other example you tried > $("#mycarousel > li[" + i + "]") is syntax problem with several workarounds > including :eq() > Building simple test pages is one of the best ways to learn jquery IMO. > Keeping a simple template including link to jquery google source, and a > $(document)ready built in you can build a test page in any directory in > almost no time and debug in Firebug > expresso wrote:tried this but doesn't look like you can do this > $("#mycarousel > li").index(i).css("margin-right", "0px").css("padding- > right", "6px"); On Jul 8, 9:48 pm, expressowrote:Like > something like this $("#mycarousel > li[" + i + "]").css("margin-right", > "0px").css ("padding-right", "6px"); On Jul 8, 9:46 pm, > expressowrote:Thanks. I wonder if you can even access > an by index?On Jul 8, 9:35 pm, MorningZwrote:Why > wouldn't you just use:http://docs.jquery.com/Selectors/last$("#mycarousel > > li:last").css("property", "value");On Jul 8, 10:17 pm, > expressowrote:If I have the following: class="jcarousel-clip jcarousel-clip-horizontal" style="width: 459px; height: > 220px;"> class="jcarousel-item jcarousel-item-horizontal jcarousel- item-1 > jcarousel-item-1-horizontal" jcarouselindex="1"> class="jcarousel-item jcarousel-item-horizontal jcarousel- item-2 > jcarousel-item-2-horizontal" jcarouselindex="2"> class="jcarousel-item jcarousel-item-horizontal jcarousel- item-3 > jcarousel-item-3-horizontal" jcarouselindex="3"> > Trying to figure out how I can do a .each on each and then add an > additional style to the last in the list.
[jQuery] Re: Access by item in the array
Because sometimes I get into other topics not related to my original posts in those other thread so it's only respectful on my part to start a new thread on a different topic that's veering off in the same thread. Not cool. On Jul 9, 9:30 am, Liam Potter wrote: > how about reading all the replies to your other thread about this? > > $("#mycarousel > li:eq(10)").css("margin-right", "5px"); > > expresso wrote: > > Is it possible to target certain in an unordered list by index > > with jQuery? I thought maybe I could use .index but was not able to > > get the syntax right. > > > I thought maybe something like this would work but is has not: > > > $("#mycarousel > li").index(i).css("margin-right", "5px");
[jQuery] Re: Access by item in the array
thanks will try that out. On Jul 9, 9:15 am, Michael Lawson wrote: > If i'm reading your code right, you may want to try eq(i) instead of index > (i). index is used to return the index of the match element, its not used > to retrieve that element. > > cheers > > Michael Lawson > Development Lead, Global Solutions, ibm.com > Phone: 1-276-206-8393 > E-mail: mjlaw...@us.ibm.com > > 'Examine my teachings critically, as a gold assayer would test gold. If you > find they make sense, conform to your experience, and don't harm yourself > or others, only then should you accept them.' > > From: expresso > > > To: "jQuery (English)" > > > Date: 07/09/2009 09:55 AM > > > Subject: [jQuery] Access by item in the array > > > Is it possible to target certain in an unordered list by index > with jQuery? I thought maybe I could use .index but was not able to > get the syntax right. > > I thought maybe something like this would work but is has not: > > $("#mycarousel > li").index(i).css("margin-right", "5px"); > > graycol.gif > < 1KViewDownload > > ecblank.gif > < 1KViewDownload
[jQuery] Re: Access by item in the array
thanks will try that out. On Jul 9, 9:15 am, Michael Lawson wrote: > If i'm reading your code right, you may want to try eq(i) instead of index > (i). index is used to return the index of the match element, its not used > to retrieve that element. > > cheers > > Michael Lawson > Development Lead, Global Solutions, ibm.com > Phone: 1-276-206-8393 > E-mail: mjlaw...@us.ibm.com > > 'Examine my teachings critically, as a gold assayer would test gold. If you > find they make sense, conform to your experience, and don't harm yourself > or others, only then should you accept them.' > > From: expresso > > > To: "jQuery (English)" > > > Date: 07/09/2009 09:55 AM > > > Subject: [jQuery] Access by item in the array > > > Is it possible to target certain in an unordered list by index > with jQuery? I thought maybe I could use .index but was not able to > get the syntax right. > > I thought maybe something like this would work but is has not: > > $("#mycarousel > li").index(i).css("margin-right", "5px"); > > graycol.gif > < 1KViewDownload > > ecblank.gif > < 1KViewDownload
[jQuery] Access by item in the array
Is it possible to target certain in an unordered list by index with jQuery? I thought maybe I could use .index but was not able to get the syntax right. I thought maybe something like this would work but is has not: $("#mycarousel > li").index(i).css("margin-right", "5px");
[jQuery] Re: Remove margin in last in Unordered List
tried this but doesn't look like you can do this $("#mycarousel > li").index(i).css("margin-right", "0px").css("padding- right", "6px"); On Jul 8, 9:48 pm, expresso wrote: > Like something like this > > $("#mycarousel > li[" + i + "]").css("margin-right", "0px").css > ("padding-right", "6px"); > > On Jul 8, 9:46 pm, expresso wrote: > > > Thanks. I wonder if you can even access an by index? > > > On Jul 8, 9:35 pm, MorningZ wrote: > > > > Why wouldn't you just use: > > > >http://docs.jquery.com/Selectors/last > > > > $("#mycarousel > li:last").css("property", "value"); > > > > On Jul 8, 10:17 pm, expresso wrote: > > > > > If I have the following: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Trying to figure out how I can do a .each on each and then add an > > > > additional style to the last in the list.
[jQuery] Re: Remove margin in last in Unordered List
Like something like this $("#mycarousel > li[" + i + "]").css("margin-right", "0px").css ("padding-right", "6px"); On Jul 8, 9:46 pm, expresso wrote: > Thanks. I wonder if you can even access an by index? > > On Jul 8, 9:35 pm, MorningZ wrote: > > > Why wouldn't you just use: > > >http://docs.jquery.com/Selectors/last > > > $("#mycarousel > li:last").css("property", "value"); > > > On Jul 8, 10:17 pm, expresso wrote: > > > > If I have the following: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Trying to figure out how I can do a .each on each and then add an > > > additional style to the last in the list.
[jQuery] Re: Remove margin in last in Unordered List
Thanks. I wonder if you can even access an by index? On Jul 8, 9:35 pm, MorningZ wrote: > Why wouldn't you just use: > > http://docs.jquery.com/Selectors/last > > $("#mycarousel > li:last").css("property", "value"); > > On Jul 8, 10:17 pm, expresso wrote: > > > If I have the following: > > > > > > > > > > > > > > > > > > > > > > > > Trying to figure out how I can do a .each on each and then add an > > additional style to the last in the list.
[jQuery] Remove margin in last in Unordered List
If I have the following: Trying to figure out how I can do a .each on each and then add an additional style to the last in the list.
[jQuery] Re: Cannot disable div
finally figured out a way to do this, had to unbind any events to it jQuery(".jcarousel-next").unbind("click"); jQuery(".jcarousel-next").addClass("jcarousel-next jcarousel-next-horizontal jcarousel-next- disabled jcarousel-next- disabled-horizontal"); jQuery(".jcarousel-next").attr("disabled", true); adios and thanks for the help. On Jul 8, 3:15 pm, Michael Lawson wrote: > Thats part of how a form submission works, its not the site. FF will warn > you if you submitted something using a form and are trying to refresh that > same page. > > cheers > > Michael Lawson > Development Lead, Global Solutions, ibm.com > Phone: 1-276-206-8393 > E-mail: mjlaw...@us.ibm.com > > 'Examine my teachings critically, as a gold assayer would test gold. If you > find they make sense, conform to your experience, and don't harm yourself > or others, only then should you accept them.' > > From: expresso > > > To: "jQuery (English)" > > > Date: 07/08/2009 03:56 PM > > > Subject: [jQuery] Re: Cannot disable div > > > Because I refresh the page here and it reposts it. I didn't build > this forum. Mabye someone should fix that. > > On Jul 8, 2:11 pm, Michael Lawson wrote: > > > Maybe a mail rule setup wrong? > > > cheers > > > Michael Lawson > > Development Lead, Global Solutions, ibm.com > > Phone: 1-276-206-8393 > > E-mail: mjlaw...@us.ibm.com > > > 'Examine my teachings critically, as a gold assayer would test gold. If > you > > find they make sense, conform to your experience, and don't harm yourself > > or others, only then should you accept them.' > > > From: MorningZ > > > To: "jQuery (English)" > > > Date: 07/08/2009 03:01 PM > > > Subject: [jQuery] Re: Cannot disable div > > > What is up with the repeated posts? Seems to happen on any topic you > > are involved in > > > graycol.gif > > < 1KViewDownload > > > ecblank.gif > > < 1KViewDownload > > > > graycol.gif > < 1KViewDownload > > ecblank.gif > < 1KViewDownload
[jQuery] Re: Cannot disable div
strange did not get warnings but will be aware next time. Now back to this stupid next button issue. I tried this jQuery(".jcarousel-next").addClass("jcarousel-next jcarousel-next-horizontal jcarousel-next- disabled jcarousel-next- disabled-horizontal"); jQuery(".jcarousel-next").attr("disabled", true); that changed the cssClass so now the page shows this: so when I mouse over the next button sure enough it is this that's highlighted in FireBug so I know this is the mark-up for that next button. While the styles show it greyed out with an alternate image...I can still click next! If anyone can look at the JCarousel source to help me figure out how to explicitly tell this thing to disable completely it will help me save about another day of migranes. I give up as I've spent hours on this on my own before posting here to try to disable this damn button when I want to. http://sorgalla.com/projects/jcarousel/ Where is Jan! On Jul 8, 3:15 pm, Michael Lawson wrote: > Thats part of how a form submission works, its not the site. FF will warn > you if you submitted something using a form and are trying to refresh that > same page. > > cheers > > Michael Lawson > Development Lead, Global Solutions, ibm.com > Phone: 1-276-206-8393 > E-mail: mjlaw...@us.ibm.com > > 'Examine my teachings critically, as a gold assayer would test gold. If you > find they make sense, conform to your experience, and don't harm yourself > or others, only then should you accept them.' > > From: expresso > > > To: "jQuery (English)" > > > Date: 07/08/2009 03:56 PM > > > Subject: [jQuery] Re: Cannot disable div > > > Because I refresh the page here and it reposts it. I didn't build > this forum. Mabye someone should fix that. > > On Jul 8, 2:11 pm, Michael Lawson wrote: > > > Maybe a mail rule setup wrong? > > > cheers > > > Michael Lawson > > Development Lead, Global Solutions, ibm.com > > Phone: 1-276-206-8393 > > E-mail: mjlaw...@us.ibm.com > > > 'Examine my teachings critically, as a gold assayer would test gold. If > you > > find they make sense, conform to your experience, and don't harm yourself > > or others, only then should you accept them.' > > > From: MorningZ > > > To: "jQuery (English)" > > > Date: 07/08/2009 03:01 PM > > > Subject: [jQuery] Re: Cannot disable div > > > What is up with the repeated posts? Seems to happen on any topic you > > are involved in > > > graycol.gif > > < 1KViewDownload > > > ecblank.gif > > < 1KViewDownload > > > > graycol.gif > < 1KViewDownload > > ecblank.gif > < 1KViewDownload
[jQuery] Re: Cannot disable div
Because I refresh the page here and it reposts it. I didn't build this forum. Mabye someone should fix that. On Jul 8, 2:11 pm, Michael Lawson wrote: > Maybe a mail rule setup wrong? > > cheers > > Michael Lawson > Development Lead, Global Solutions, ibm.com > Phone: 1-276-206-8393 > E-mail: mjlaw...@us.ibm.com > > 'Examine my teachings critically, as a gold assayer would test gold. If you > find they make sense, conform to your experience, and don't harm yourself > or others, only then should you accept them.' > > From: MorningZ > > > To: "jQuery (English)" > > > Date: 07/08/2009 03:01 PM > > > Subject: [jQuery] Re: Cannot disable div > > > What is up with the repeated posts? Seems to happen on any topic you > are involved in > > graycol.gif > < 1KViewDownload > > ecblank.gif > < 1KViewDownload
[jQuery] Re: Cannot disable div
Thanks Morning. On Jul 8, 12:51 pm, MorningZ wrote: > "I don't even see how a div can be buttonized in the first place! " > > All these would accomplish the same thing > > Button by Div > Actual Button > Hyperlink > Span > > > the jQuery > > $(".btn").click(function() { > alert("You fired off an event"); > return false; //stops 'button' and 'a' from default action > > }); > > You're using a DOM object to fire an event, it's not more complicated > than that :) > > On Jul 8, 1:41 pm, expresso wrote: > > > I see what you're saying about using properties that are not > > necessarily valid in XHTML. I just cannot understand how this guy is > > even creating the button (yea I see the code but I don't get it..it's > > a div!) or what event is causing it to be enabled or not. > > > On Jul 8, 12:38 pm, MorningZ wrote: > > > > "Morning, then tell my why the code is putting that in there straight > > > from the JCarousel plug-in?" > > > > "and tell me why then do we see it being added in the .js" > > > > You act like I wrote it, i have no idea why the author of that plugin > > > uses that method, or why you are having to take a week to understand > > > it > > > > You can add any property you want via js or even put it in the HTML > > > > Some Text > > > > ***that doesn't mean it's going to do anything out of the box*** (<-- > > > that's the point you seem to be missing here) > > > > With those fake/invalid properties used, they could still server a > > > purpose like: > > > > if ($("div#Next").attr("foo") == null) { alert("Next is enabled"); } > > > else { alert("Next is disabled"); } > > > > So it could still be useful, although not valid markup > > > > On Jul 8, 1:26 pm, expresso wrote: > > > > > >>>Why would you expect that to? As mentioned at the very top, there > > > > >>>is > > > > > no "disabled" property of a > > > > > and tell me why then do we see it being added in the .js and then > > > > while viewing source we see it in the HTML! It boggles my mind > > > > > > > > > > obviously that IS how he's disabling or enabling the next button. But > > > > again based on what decision point? > > > > > On Jul 8, 12:15 pm, expresso wrote: > > > > > > The hardest part about this plug-in has been that after pouring over > > > > > the base code in his .js file I do not see how it's disabling the next > > > > > button. Based on what!?!?! I mean I can stare the code right in the > > > > > eye where it's happening but I cannot make sense of it: > > > > > > var self = this; > > > > > n = true; > > > > > this.buttonNext[n ? 'bind' : 'unbind'] > > > > > (this.options.buttonNextEvent, this.funcNext)[n ? 'removeClass' : > > > > > 'addClass'](this.className('jcarousel-next-disabled')).attr > > > > > ('disabled', n ? false : true); > > > > > this.buttonPrev[p ? 'bind' : 'unbind'] > > > > > (this.options.buttonPrevEvent, this.funcPrev)[p ? 'removeClass' : > > > > > 'addClass'](this.className('jcarousel-prev-disabled')).attr > > > > > ('disabled', p ? false : true); > > > > > > if (this.buttonNext.length > 0 && (this.buttonNext > > > > > [0].jcarouselstate == undefined || this.buttonNext[0].jcarouselstate ! > > > > > = n) && this.options.buttonNextCallback != null) { > > > > > this.buttonNext.each(function() > > > > > { self.options.buttonNextCallback(self, this, n); }); > > > > > this.buttonNext[0].jcarouselstate = true; > > > > > } > > > > > > if (this.buttonPrev.length > 0 && (this.buttonPrev > > > > > [0].jcarouselstate == undefined || this.buttonPrev[0].jcarouselstate ! > > > > > = p) && this.options.buttonPrevCallback != null) { > > > > > this.buttonPrev.each(function() > > > > > { self.options.buttonPrevCallback(self, this, p)
[jQuery] Re: Cannot disable div
Thanks Morning. On Jul 8, 12:51 pm, MorningZ wrote: > "I don't even see how a div can be buttonized in the first place! " > > All these would accomplish the same thing > > Button by Div > Actual Button > Hyperlink > Span > > > the jQuery > > $(".btn").click(function() { > alert("You fired off an event"); > return false; //stops 'button' and 'a' from default action > > }); > > You're using a DOM object to fire an event, it's not more complicated > than that :) > > On Jul 8, 1:41 pm, expresso wrote: > > > I see what you're saying about using properties that are not > > necessarily valid in XHTML. I just cannot understand how this guy is > > even creating the button (yea I see the code but I don't get it..it's > > a div!) or what event is causing it to be enabled or not. > > > On Jul 8, 12:38 pm, MorningZ wrote: > > > > "Morning, then tell my why the code is putting that in there straight > > > from the JCarousel plug-in?" > > > > "and tell me why then do we see it being added in the .js" > > > > You act like I wrote it, i have no idea why the author of that plugin > > > uses that method, or why you are having to take a week to understand > > > it > > > > You can add any property you want via js or even put it in the HTML > > > > Some Text > > > > ***that doesn't mean it's going to do anything out of the box*** (<-- > > > that's the point you seem to be missing here) > > > > With those fake/invalid properties used, they could still server a > > > purpose like: > > > > if ($("div#Next").attr("foo") == null) { alert("Next is enabled"); } > > > else { alert("Next is disabled"); } > > > > So it could still be useful, although not valid markup > > > > On Jul 8, 1:26 pm, expresso wrote: > > > > > >>>Why would you expect that to? As mentioned at the very top, there > > > > >>>is > > > > > no "disabled" property of a > > > > > and tell me why then do we see it being added in the .js and then > > > > while viewing source we see it in the HTML! It boggles my mind > > > > > > > > > > obviously that IS how he's disabling or enabling the next button. But > > > > again based on what decision point? > > > > > On Jul 8, 12:15 pm, expresso wrote: > > > > > > The hardest part about this plug-in has been that after pouring over > > > > > the base code in his .js file I do not see how it's disabling the next > > > > > button. Based on what!?!?! I mean I can stare the code right in the > > > > > eye where it's happening but I cannot make sense of it: > > > > > > var self = this; > > > > > n = true; > > > > > this.buttonNext[n ? 'bind' : 'unbind'] > > > > > (this.options.buttonNextEvent, this.funcNext)[n ? 'removeClass' : > > > > > 'addClass'](this.className('jcarousel-next-disabled')).attr > > > > > ('disabled', n ? false : true); > > > > > this.buttonPrev[p ? 'bind' : 'unbind'] > > > > > (this.options.buttonPrevEvent, this.funcPrev)[p ? 'removeClass' : > > > > > 'addClass'](this.className('jcarousel-prev-disabled')).attr > > > > > ('disabled', p ? false : true); > > > > > > if (this.buttonNext.length > 0 && (this.buttonNext > > > > > [0].jcarouselstate == undefined || this.buttonNext[0].jcarouselstate ! > > > > > = n) && this.options.buttonNextCallback != null) { > > > > > this.buttonNext.each(function() > > > > > { self.options.buttonNextCallback(self, this, n); }); > > > > > this.buttonNext[0].jcarouselstate = true; > > > > > } > > > > > > if (this.buttonPrev.length > 0 && (this.buttonPrev > > > > > [0].jcarouselstate == undefined || this.buttonPrev[0].jcarouselstate ! > > > > > = p) && this.options.buttonPrevCallback != null) { > > > > > this.buttonPrev.each(function() > > > > > { self.options.buttonPrevCallback(self, this, p)
[jQuery] Re: Cannot disable div
Thanks Morning. On Jul 8, 12:51 pm, MorningZ wrote: > "I don't even see how a div can be buttonized in the first place! " > > All these would accomplish the same thing > > Button by Div > Actual Button > Hyperlink > Span > > > the jQuery > > $(".btn").click(function() { > alert("You fired off an event"); > return false; //stops 'button' and 'a' from default action > > }); > > You're using a DOM object to fire an event, it's not more complicated > than that :) > > On Jul 8, 1:41 pm, expresso wrote: > > > I see what you're saying about using properties that are not > > necessarily valid in XHTML. I just cannot understand how this guy is > > even creating the button (yea I see the code but I don't get it..it's > > a div!) or what event is causing it to be enabled or not. > > > On Jul 8, 12:38 pm, MorningZ wrote: > > > > "Morning, then tell my why the code is putting that in there straight > > > from the JCarousel plug-in?" > > > > "and tell me why then do we see it being added in the .js" > > > > You act like I wrote it, i have no idea why the author of that plugin > > > uses that method, or why you are having to take a week to understand > > > it > > > > You can add any property you want via js or even put it in the HTML > > > > Some Text > > > > ***that doesn't mean it's going to do anything out of the box*** (<-- > > > that's the point you seem to be missing here) > > > > With those fake/invalid properties used, they could still server a > > > purpose like: > > > > if ($("div#Next").attr("foo") == null) { alert("Next is enabled"); } > > > else { alert("Next is disabled"); } > > > > So it could still be useful, although not valid markup > > > > On Jul 8, 1:26 pm, expresso wrote: > > > > > >>>Why would you expect that to? As mentioned at the very top, there > > > > >>>is > > > > > no "disabled" property of a > > > > > and tell me why then do we see it being added in the .js and then > > > > while viewing source we see it in the HTML! It boggles my mind > > > > > > > > > > obviously that IS how he's disabling or enabling the next button. But > > > > again based on what decision point? > > > > > On Jul 8, 12:15 pm, expresso wrote: > > > > > > The hardest part about this plug-in has been that after pouring over > > > > > the base code in his .js file I do not see how it's disabling the next > > > > > button. Based on what!?!?! I mean I can stare the code right in the > > > > > eye where it's happening but I cannot make sense of it: > > > > > > var self = this; > > > > > n = true; > > > > > this.buttonNext[n ? 'bind' : 'unbind'] > > > > > (this.options.buttonNextEvent, this.funcNext)[n ? 'removeClass' : > > > > > 'addClass'](this.className('jcarousel-next-disabled')).attr > > > > > ('disabled', n ? false : true); > > > > > this.buttonPrev[p ? 'bind' : 'unbind'] > > > > > (this.options.buttonPrevEvent, this.funcPrev)[p ? 'removeClass' : > > > > > 'addClass'](this.className('jcarousel-prev-disabled')).attr > > > > > ('disabled', p ? false : true); > > > > > > if (this.buttonNext.length > 0 && (this.buttonNext > > > > > [0].jcarouselstate == undefined || this.buttonNext[0].jcarouselstate ! > > > > > = n) && this.options.buttonNextCallback != null) { > > > > > this.buttonNext.each(function() > > > > > { self.options.buttonNextCallback(self, this, n); }); > > > > > this.buttonNext[0].jcarouselstate = true; > > > > > } > > > > > > if (this.buttonPrev.length > 0 && (this.buttonPrev > > > > > [0].jcarouselstate == undefined || this.buttonPrev[0].jcarouselstate ! > > > > > = p) && this.options.buttonPrevCallback != null) { > > > > > this.buttonPrev.each(function() > > > > > { self.options.buttonPrevCallback(self, this, p)
[jQuery] Re: Cannot disable div
I think ultimately what I may have to do is just change out the css= so change it from class="jcarousel-next jcarousel-next-horizontal" to class="jcarousel-next jcarousel-next-horizontal jcarousel-next- disabled jcarousel-next-disabled-horizontal" even if that works, I still do not undestand how he's basically taking that and essentially disabling the functionality in his code. On Jul 8, 12:41 pm, expresso wrote: > I see what you're saying about using properties that are not > necessarily valid in XHTML. I just cannot understand how this guy is > even creating the button (yea I see the code but I don't get it..it's > a div!) or what event is causing it to be enabled or not. > > On Jul 8, 12:38 pm, MorningZ wrote: > > > "Morning, then tell my why the code is putting that in there straight > > from the JCarousel plug-in?" > > > "and tell me why then do we see it being added in the .js" > > > You act like I wrote it, i have no idea why the author of that plugin > > uses that method, or why you are having to take a week to understand > > it > > > You can add any property you want via js or even put it in the HTML > > > Some Text > > > ***that doesn't mean it's going to do anything out of the box*** (<-- > > that's the point you seem to be missing here) > > > With those fake/invalid properties used, they could still server a > > purpose like: > > > if ($("div#Next").attr("foo") == null) { alert("Next is enabled"); } > > else { alert("Next is disabled"); } > > > So it could still be useful, although not valid markup > > > On Jul 8, 1:26 pm, expresso wrote: > > > > >>>Why would you expect that to? As mentioned at the very top, there is > > > > no "disabled" property of a > > > > and tell me why then do we see it being added in the .js and then > > > while viewing source we see it in the HTML! It boggles my mind > > > > > > > > obviously that IS how he's disabling or enabling the next button. But > > > again based on what decision point? > > > > On Jul 8, 12:15 pm, expresso wrote: > > > > > The hardest part about this plug-in has been that after pouring over > > > > the base code in his .js file I do not see how it's disabling the next > > > > button. Based on what!?!?! I mean I can stare the code right in the > > > > eye where it's happening but I cannot make sense of it: > > > > > var self = this; > > > > n = true; > > > > this.buttonNext[n ? 'bind' : 'unbind'] > > > > (this.options.buttonNextEvent, this.funcNext)[n ? 'removeClass' : > > > > 'addClass'](this.className('jcarousel-next-disabled')).attr > > > > ('disabled', n ? false : true); > > > > this.buttonPrev[p ? 'bind' : 'unbind'] > > > > (this.options.buttonPrevEvent, this.funcPrev)[p ? 'removeClass' : > > > > 'addClass'](this.className('jcarousel-prev-disabled')).attr > > > > ('disabled', p ? false : true); > > > > > if (this.buttonNext.length > 0 && (this.buttonNext > > > > [0].jcarouselstate == undefined || this.buttonNext[0].jcarouselstate ! > > > > = n) && this.options.buttonNextCallback != null) { > > > > this.buttonNext.each(function() > > > > { self.options.buttonNextCallback(self, this, n); }); > > > > this.buttonNext[0].jcarouselstate = true; > > > > } > > > > > if (this.buttonPrev.length > 0 && (this.buttonPrev > > > > [0].jcarouselstate == undefined || this.buttonPrev[0].jcarouselstate ! > > > > = p) && this.options.buttonPrevCallback != null) { > > > > this.buttonPrev.each(function() > > > > { self.options.buttonPrevCallback(self, this, p); }); > > > > this.buttonPrev[0].jcarouselstate = p; > > > > } > > > > > On Jul 8, 12:06 pm, expresso wrote: > > > > > > We couldn't just set the size like they did either. Because we don't > > > > > want to set a size greater than the # of elements we're showing. So I > > > > > wanted to set # of items to show and on click of next it dynamically > > > >
[jQuery] Re: Cannot disable div
I see what you're saying about using properties that are not necessarily valid in XHTML. I just cannot understand how this guy is even creating the button (yea I see the code but I don't get it..it's a div!) or what event is causing it to be enabled or not. On Jul 8, 12:38 pm, MorningZ wrote: > "Morning, then tell my why the code is putting that in there straight > from the JCarousel plug-in?" > > "and tell me why then do we see it being added in the .js" > > You act like I wrote it, i have no idea why the author of that plugin > uses that method, or why you are having to take a week to understand > it > > You can add any property you want via js or even put it in the HTML > > Some Text > > ***that doesn't mean it's going to do anything out of the box*** (<-- > that's the point you seem to be missing here) > > With those fake/invalid properties used, they could still server a > purpose like: > > if ($("div#Next").attr("foo") == null) { alert("Next is enabled"); } > else { alert("Next is disabled"); } > > So it could still be useful, although not valid markup > > On Jul 8, 1:26 pm, expresso wrote: > > > >>>Why would you expect that to? As mentioned at the very top, there is > > > no "disabled" property of a > > > and tell me why then do we see it being added in the .js and then > > while viewing source we see it in the HTML! It boggles my mind > > > > > > obviously that IS how he's disabling or enabling the next button. But > > again based on what decision point? > > > On Jul 8, 12:15 pm, expresso wrote: > > > > The hardest part about this plug-in has been that after pouring over > > > the base code in his .js file I do not see how it's disabling the next > > > button. Based on what!?!?! I mean I can stare the code right in the > > > eye where it's happening but I cannot make sense of it: > > > > var self = this; > > > n = true; > > > this.buttonNext[n ? 'bind' : 'unbind'] > > > (this.options.buttonNextEvent, this.funcNext)[n ? 'removeClass' : > > > 'addClass'](this.className('jcarousel-next-disabled')).attr > > > ('disabled', n ? false : true); > > > this.buttonPrev[p ? 'bind' : 'unbind'] > > > (this.options.buttonPrevEvent, this.funcPrev)[p ? 'removeClass' : > > > 'addClass'](this.className('jcarousel-prev-disabled')).attr > > > ('disabled', p ? false : true); > > > > if (this.buttonNext.length > 0 && (this.buttonNext > > > [0].jcarouselstate == undefined || this.buttonNext[0].jcarouselstate ! > > > = n) && this.options.buttonNextCallback != null) { > > > this.buttonNext.each(function() > > > { self.options.buttonNextCallback(self, this, n); }); > > > this.buttonNext[0].jcarouselstate = true; > > > } > > > > if (this.buttonPrev.length > 0 && (this.buttonPrev > > > [0].jcarouselstate == undefined || this.buttonPrev[0].jcarouselstate ! > > > = p) && this.options.buttonPrevCallback != null) { > > > this.buttonPrev.each(function() > > > { self.options.buttonPrevCallback(self, this, p); }); > > > this.buttonPrev[0].jcarouselstate = p; > > > } > > > > On Jul 8, 12:06 pm, expresso wrote: > > > > > We couldn't just set the size like they did either. Because we don't > > > > want to set a size greater than the # of elements we're showing. So I > > > > wanted to set # of items to show and on click of next it dynamically > > > > figures out how many more elements to show. So if I specify 4, I even > > > > have some JavaScript that manipulates the DOM and expands the control > > > > to fit 4 but also, if the array of IDs doesn't have an even number, > > > > the last scroll will only scroll x more to show the rest. > > > > > It's similar but doesn't quite fullfill our needs, the examples he > > > > has. > > > > > On Jul 8, 12:02 pm, expresso wrote: > > > > > > Charlie, you also don't understand that we are using deferred > > > > > loading. And I'm reading an array of IDs from a JS variable. based > > > > > on those IDs I send
[jQuery] Re: Cannot disable div
I see what you're saying about using properties that are not necessarily valid in XHTML. I just cannot understand how this guy is even creating the button (yea I see the code but I don't get it..it's a div!) or what event is causing it to be enabled or not. On Jul 8, 12:38 pm, MorningZ wrote: > "Morning, then tell my why the code is putting that in there straight > from the JCarousel plug-in?" > > "and tell me why then do we see it being added in the .js" > > You act like I wrote it, i have no idea why the author of that plugin > uses that method, or why you are having to take a week to understand > it > > You can add any property you want via js or even put it in the HTML > > Some Text > > ***that doesn't mean it's going to do anything out of the box*** (<-- > that's the point you seem to be missing here) > > With those fake/invalid properties used, they could still server a > purpose like: > > if ($("div#Next").attr("foo") == null) { alert("Next is enabled"); } > else { alert("Next is disabled"); } > > So it could still be useful, although not valid markup > > On Jul 8, 1:26 pm, expresso wrote: > > > >>>Why would you expect that to? As mentioned at the very top, there is > > > no "disabled" property of a > > > and tell me why then do we see it being added in the .js and then > > while viewing source we see it in the HTML! It boggles my mind > > > > > > obviously that IS how he's disabling or enabling the next button. But > > again based on what decision point? > > > On Jul 8, 12:15 pm, expresso wrote: > > > > The hardest part about this plug-in has been that after pouring over > > > the base code in his .js file I do not see how it's disabling the next > > > button. Based on what!?!?! I mean I can stare the code right in the > > > eye where it's happening but I cannot make sense of it: > > > > var self = this; > > > n = true; > > > this.buttonNext[n ? 'bind' : 'unbind'] > > > (this.options.buttonNextEvent, this.funcNext)[n ? 'removeClass' : > > > 'addClass'](this.className('jcarousel-next-disabled')).attr > > > ('disabled', n ? false : true); > > > this.buttonPrev[p ? 'bind' : 'unbind'] > > > (this.options.buttonPrevEvent, this.funcPrev)[p ? 'removeClass' : > > > 'addClass'](this.className('jcarousel-prev-disabled')).attr > > > ('disabled', p ? false : true); > > > > if (this.buttonNext.length > 0 && (this.buttonNext > > > [0].jcarouselstate == undefined || this.buttonNext[0].jcarouselstate ! > > > = n) && this.options.buttonNextCallback != null) { > > > this.buttonNext.each(function() > > > { self.options.buttonNextCallback(self, this, n); }); > > > this.buttonNext[0].jcarouselstate = true; > > > } > > > > if (this.buttonPrev.length > 0 && (this.buttonPrev > > > [0].jcarouselstate == undefined || this.buttonPrev[0].jcarouselstate ! > > > = p) && this.options.buttonPrevCallback != null) { > > > this.buttonPrev.each(function() > > > { self.options.buttonPrevCallback(self, this, p); }); > > > this.buttonPrev[0].jcarouselstate = p; > > > } > > > > On Jul 8, 12:06 pm, expresso wrote: > > > > > We couldn't just set the size like they did either. Because we don't > > > > want to set a size greater than the # of elements we're showing. So I > > > > wanted to set # of items to show and on click of next it dynamically > > > > figures out how many more elements to show. So if I specify 4, I even > > > > have some JavaScript that manipulates the DOM and expands the control > > > > to fit 4 but also, if the array of IDs doesn't have an even number, > > > > the last scroll will only scroll x more to show the rest. > > > > > It's similar but doesn't quite fullfill our needs, the examples he > > > > has. > > > > > On Jul 8, 12:02 pm, expresso wrote: > > > > > > Charlie, you also don't understand that we are using deferred > > > > > loading. And I'm reading an array of IDs from a JS variable. based > > > > > on those IDs I send
[jQuery] Re: Cannot disable div
I don't even see how a div can be buttonized in the first place! On Jul 8, 12:38 pm, MorningZ wrote: > "Morning, then tell my why the code is putting that in there straight > from the JCarousel plug-in?" > > "and tell me why then do we see it being added in the .js" > > You act like I wrote it, i have no idea why the author of that plugin > uses that method, or why you are having to take a week to understand > it > > You can add any property you want via js or even put it in the HTML > > Some Text > > ***that doesn't mean it's going to do anything out of the box*** (<-- > that's the point you seem to be missing here) > > With those fake/invalid properties used, they could still server a > purpose like: > > if ($("div#Next").attr("foo") == null) { alert("Next is enabled"); } > else { alert("Next is disabled"); } > > So it could still be useful, although not valid markup > > On Jul 8, 1:26 pm, expresso wrote: > > > >>>Why would you expect that to? As mentioned at the very top, there is > > > no "disabled" property of a > > > and tell me why then do we see it being added in the .js and then > > while viewing source we see it in the HTML! It boggles my mind > > > > > > obviously that IS how he's disabling or enabling the next button. But > > again based on what decision point? > > > On Jul 8, 12:15 pm, expresso wrote: > > > > The hardest part about this plug-in has been that after pouring over > > > the base code in his .js file I do not see how it's disabling the next > > > button. Based on what!?!?! I mean I can stare the code right in the > > > eye where it's happening but I cannot make sense of it: > > > > var self = this; > > > n = true; > > > this.buttonNext[n ? 'bind' : 'unbind'] > > > (this.options.buttonNextEvent, this.funcNext)[n ? 'removeClass' : > > > 'addClass'](this.className('jcarousel-next-disabled')).attr > > > ('disabled', n ? false : true); > > > this.buttonPrev[p ? 'bind' : 'unbind'] > > > (this.options.buttonPrevEvent, this.funcPrev)[p ? 'removeClass' : > > > 'addClass'](this.className('jcarousel-prev-disabled')).attr > > > ('disabled', p ? false : true); > > > > if (this.buttonNext.length > 0 && (this.buttonNext > > > [0].jcarouselstate == undefined || this.buttonNext[0].jcarouselstate ! > > > = n) && this.options.buttonNextCallback != null) { > > > this.buttonNext.each(function() > > > { self.options.buttonNextCallback(self, this, n); }); > > > this.buttonNext[0].jcarouselstate = true; > > > } > > > > if (this.buttonPrev.length > 0 && (this.buttonPrev > > > [0].jcarouselstate == undefined || this.buttonPrev[0].jcarouselstate ! > > > = p) && this.options.buttonPrevCallback != null) { > > > this.buttonPrev.each(function() > > > { self.options.buttonPrevCallback(self, this, p); }); > > > this.buttonPrev[0].jcarouselstate = p; > > > } > > > > On Jul 8, 12:06 pm, expresso wrote: > > > > > We couldn't just set the size like they did either. Because we don't > > > > want to set a size greater than the # of elements we're showing. So I > > > > wanted to set # of items to show and on click of next it dynamically > > > > figures out how many more elements to show. So if I specify 4, I even > > > > have some JavaScript that manipulates the DOM and expands the control > > > > to fit 4 but also, if the array of IDs doesn't have an even number, > > > > the last scroll will only scroll x more to show the rest. > > > > > It's similar but doesn't quite fullfill our needs, the examples he > > > > has. > > > > > On Jul 8, 12:02 pm, expresso wrote: > > > > > > Charlie, you also don't understand that we are using deferred > > > > > loading. And I'm reading an array of IDs from a JS variable. based > > > > > on those IDs I send a JSON request / response and then I get that > > > > > back. I'm making this control much more dynamic than their out of box > > > > > example here: > > > > > ht
[jQuery] Re: Cannot disable div
>>>Why would you expect that to? As mentioned at the very top, there is no "disabled" property of a and tell me why then do we see it being added in the .js and then while viewing source we see it in the HTML! It boggles my mind obviously that IS how he's disabling or enabling the next button. But again based on what decision point? On Jul 8, 12:15 pm, expresso wrote: > The hardest part about this plug-in has been that after pouring over > the base code in his .js file I do not see how it's disabling the next > button. Based on what!?!?! I mean I can stare the code right in the > eye where it's happening but I cannot make sense of it: > > var self = this; > n = true; > this.buttonNext[n ? 'bind' : 'unbind'] > (this.options.buttonNextEvent, this.funcNext)[n ? 'removeClass' : > 'addClass'](this.className('jcarousel-next-disabled')).attr > ('disabled', n ? false : true); > this.buttonPrev[p ? 'bind' : 'unbind'] > (this.options.buttonPrevEvent, this.funcPrev)[p ? 'removeClass' : > 'addClass'](this.className('jcarousel-prev-disabled')).attr > ('disabled', p ? false : true); > > if (this.buttonNext.length > 0 && (this.buttonNext > [0].jcarouselstate == undefined || this.buttonNext[0].jcarouselstate ! > = n) && this.options.buttonNextCallback != null) { > this.buttonNext.each(function() > { self.options.buttonNextCallback(self, this, n); }); > this.buttonNext[0].jcarouselstate = true; > } > > if (this.buttonPrev.length > 0 && (this.buttonPrev > [0].jcarouselstate == undefined || this.buttonPrev[0].jcarouselstate ! > = p) && this.options.buttonPrevCallback != null) { > this.buttonPrev.each(function() > { self.options.buttonPrevCallback(self, this, p); }); > this.buttonPrev[0].jcarouselstate = p; > } > > On Jul 8, 12:06 pm, expresso wrote: > > > We couldn't just set the size like they did either. Because we don't > > want to set a size greater than the # of elements we're showing. So I > > wanted to set # of items to show and on click of next it dynamically > > figures out how many more elements to show. So if I specify 4, I even > > have some JavaScript that manipulates the DOM and expands the control > > to fit 4 but also, if the array of IDs doesn't have an even number, > > the last scroll will only scroll x more to show the rest. > > > It's similar but doesn't quite fullfill our needs, the examples he > > has. > > > On Jul 8, 12:02 pm, expresso wrote: > > > > Charlie, you also don't understand that we are using deferred > > > loading. And I'm reading an array of IDs from a JS variable. based > > > on those IDs I send a JSON request / response and then I get that > > > back. I'm making this control much more dynamic than their out of box > > > example here: > > > http://sorgalla.com/projects/jcarousel/examples/dynamic_flickr_api.html > > > > that logic can't be reused..it's custom to the Flickr API. We're not > > > loading ours like this. So I couldnt' just reuse the way they were > > > doing that there. > > > > On Jul 8, 11:57 am, expresso wrote: > > > > > jQuery(".jcarousel-skin-ie7 .jcarousel-next.jcarousel-next- > > > > horizontal").attr("disabled","true"); did not work. > > > > > On Jul 8, 11:06 am, amuhlou wrote: > > > > > > It doesn't look like what you're trying to select exists. the > > > > > "jcarousel-next" and "jcarousel-next-horizontal" classes are being > > > > > applied to the same div, so there shouldn't be a space between them in > > > > > your selector. > > > > > > Additionally, it appears your syntax for the attribute selector is > > > > > incorrect > > > > > > Have you tried jQuery(".jcarousel-skin-ie7 .jcarousel-next- > > > > > horizontal").attr("disabled","true"); > > > > > or > > > > > jQuery(".jcarousel-skin-ie7 .jcarousel-next.jcarousel-next- > > > > > horizontal").attr("disabled","true"); > > > > > > On Jul 8, 11:40 am, BaBna wrote: > > > > > > > Because it sucks? > > > > > > It might create probl
[jQuery] Re: Cannot disable div
I've had it with this plug-in I guess. After spending a week to accomplish our goal, it's been a huge frustration especially when the author seizes to exist. On Jul 8, 12:15 pm, expresso wrote: > The hardest part about this plug-in has been that after pouring over > the base code in his .js file I do not see how it's disabling the next > button. Based on what!?!?! I mean I can stare the code right in the > eye where it's happening but I cannot make sense of it: > > var self = this; > n = true; > this.buttonNext[n ? 'bind' : 'unbind'] > (this.options.buttonNextEvent, this.funcNext)[n ? 'removeClass' : > 'addClass'](this.className('jcarousel-next-disabled')).attr > ('disabled', n ? false : true); > this.buttonPrev[p ? 'bind' : 'unbind'] > (this.options.buttonPrevEvent, this.funcPrev)[p ? 'removeClass' : > 'addClass'](this.className('jcarousel-prev-disabled')).attr > ('disabled', p ? false : true); > > if (this.buttonNext.length > 0 && (this.buttonNext > [0].jcarouselstate == undefined || this.buttonNext[0].jcarouselstate ! > = n) && this.options.buttonNextCallback != null) { > this.buttonNext.each(function() > { self.options.buttonNextCallback(self, this, n); }); > this.buttonNext[0].jcarouselstate = true; > } > > if (this.buttonPrev.length > 0 && (this.buttonPrev > [0].jcarouselstate == undefined || this.buttonPrev[0].jcarouselstate ! > = p) && this.options.buttonPrevCallback != null) { > this.buttonPrev.each(function() > { self.options.buttonPrevCallback(self, this, p); }); > this.buttonPrev[0].jcarouselstate = p; > } > > On Jul 8, 12:06 pm, expresso wrote: > > > We couldn't just set the size like they did either. Because we don't > > want to set a size greater than the # of elements we're showing. So I > > wanted to set # of items to show and on click of next it dynamically > > figures out how many more elements to show. So if I specify 4, I even > > have some JavaScript that manipulates the DOM and expands the control > > to fit 4 but also, if the array of IDs doesn't have an even number, > > the last scroll will only scroll x more to show the rest. > > > It's similar but doesn't quite fullfill our needs, the examples he > > has. > > > On Jul 8, 12:02 pm, expresso wrote: > > > > Charlie, you also don't understand that we are using deferred > > > loading. And I'm reading an array of IDs from a JS variable. based > > > on those IDs I send a JSON request / response and then I get that > > > back. I'm making this control much more dynamic than their out of box > > > example here: > > > http://sorgalla.com/projects/jcarousel/examples/dynamic_flickr_api.html > > > > that logic can't be reused..it's custom to the Flickr API. We're not > > > loading ours like this. So I couldnt' just reuse the way they were > > > doing that there. > > > > On Jul 8, 11:57 am, expresso wrote: > > > > > jQuery(".jcarousel-skin-ie7 .jcarousel-next.jcarousel-next- > > > > horizontal").attr("disabled","true"); did not work. > > > > > On Jul 8, 11:06 am, amuhlou wrote: > > > > > > It doesn't look like what you're trying to select exists. the > > > > > "jcarousel-next" and "jcarousel-next-horizontal" classes are being > > > > > applied to the same div, so there shouldn't be a space between them in > > > > > your selector. > > > > > > Additionally, it appears your syntax for the attribute selector is > > > > > incorrect > > > > > > Have you tried jQuery(".jcarousel-skin-ie7 .jcarousel-next- > > > > > horizontal").attr("disabled","true"); > > > > > or > > > > > jQuery(".jcarousel-skin-ie7 .jcarousel-next.jcarousel-next- > > > > > horizontal").attr("disabled","true"); > > > > > > On Jul 8, 11:40 am, BaBna 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. > > >
[jQuery] Re: Cannot disable div
Morning, then tell my why the code is putting that in there straight from the JCarousel plug-in? this.buttonNext[n ? 'bind' : 'unbind'] (this.options.buttonNextEvent, this.funcNext)[n ? 'removeClass' : 'addClass'](this.className('jcarousel-next-disabled')).attr ('disabled', n ? false : true); If anyone can figure out how the hell the next button is being enabled...besides that you can clearly see that it's adding a disabled attribute to that div, I'm all ears cause I have not understood how that is enabled. Look at the JCarousel.js I have for about a week trying to figure out how the fing next button works. On Jul 8, 12:11 pm, MorningZ wrote: > jQuery(".jcarousel-skin-ie7 .jcarousel-next.jcarousel-next- > horizontal").attr("disabled","true"); did not work. > > Why would you expect that to? As mentioned at the very top, there is > no "disabled" property of a > > On Jul 8, 1:06 pm, expresso wrote: > > > We couldn't just set the size like they did either. Because we don't > > want to set a size greater than the # of elements we're showing. So I > > wanted to set # of items to show and on click of next it dynamically > > figures out how many more elements to show. So if I specify 4, I even > > have some JavaScript that manipulates the DOM and expands the control > > to fit 4 but also, if the array of IDs doesn't have an even number, > > the last scroll will only scroll x more to show the rest. > > > It's similar but doesn't quite fullfill our needs, the examples he > > has. > > > On Jul 8, 12:02 pm, expresso wrote: > > > > Charlie, you also don't understand that we are using deferred > > > loading. And I'm reading an array of IDs from a JS variable. based > > > on those IDs I send a JSON request / response and then I get that > > > back. I'm making this control much more dynamic than their out of box > > > example here: > > > http://sorgalla.com/projects/jcarousel/examples/dynamic_flickr_api.html > > > > that logic can't be reused..it's custom to the Flickr API. We're not > > > loading ours like this. So I couldnt' just reuse the way they were > > > doing that there. > > > > On Jul 8, 11:57 am, expresso wrote: > > > > > jQuery(".jcarousel-skin-ie7 .jcarousel-next.jcarousel-next- > > > > horizontal").attr("disabled","true"); did not work. > > > > > On Jul 8, 11:06 am, amuhlou wrote: > > > > > > It doesn't look like what you're trying to select exists. the > > > > > "jcarousel-next" and "jcarousel-next-horizontal" classes are being > > > > > applied to the same div, so there shouldn't be a space between them in > > > > > your selector. > > > > > > Additionally, it appears your syntax for the attribute selector is > > > > > incorrect > > > > > > Have you tried jQuery(".jcarousel-skin-ie7 .jcarousel-next- > > > > > horizontal").attr("disabled","true"); > > > > > or > > > > > jQuery(".jcarousel-skin-ie7 .jcarousel-next.jcarousel-next- > > > > > horizontal").attr("disabled","true"); > > > > > > On Jul 8, 11:40 am, BaBna 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" wrote: > > > > > > > > How come is that you want to disable a div?? > > > > > > > > Do you mean, block the content inside div? > > > > > > > > - Original Message - > > > > > > > From: "BaBna" > > > > > > > To: "jQuery (English)" > > > > > > > Sent: Wednesday, July 08, 2009 9:28 AM > > > > > > > Subject: [jQuery] Re: Cannot disable div > > > > > > > > Maybe because there is no disabled property for DIV? > > > > > > > >http://www.w3schools.com/tags/tag_DIV.asp > > > > > > > > On Jul 8, 4:25 pm, expresso wrote: > > > > > > > > > > > > > > > > > > > > > > > style="display: block; height: 220px; width: 592px;"> > > > > > > > > > > > > > > > style="display: > > > > > > > > block;" disabled="false"/> > > > > > > > > > > > > > > > style="display: > > > > > > > > block;" disabled="false"/> > > > > > > > > > > > > > > > style="width: > > > > > > > > 600px; height: 220px;"> > > > > > > > > > > > > > > > style="height: 220px; width: 3315px; left: -2028px;"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 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
Morning, then tell my why the code is putting that in there straight from the JCarousel plug-in? this.buttonNext[n ? 'bind' : 'unbind'] (this.options.buttonNextEvent, this.funcNext)[n ? 'removeClass' : 'addClass'](this.className('jcarousel-next-disabled')).attr ('disabled', n ? false : true); If anyone can figure out how the hell the next button is being enabled...besides that you can clearly see that it's adding a disabled attribute to that div, I'm all ears cause I have not understood how that is enabled. Look at the JCarousel.js I have for about a week trying to figure out how the fing next button works. On Jul 8, 12:11 pm, MorningZ wrote: > jQuery(".jcarousel-skin-ie7 .jcarousel-next.jcarousel-next- > horizontal").attr("disabled","true"); did not work. > > Why would you expect that to? As mentioned at the very top, there is > no "disabled" property of a > > On Jul 8, 1:06 pm, expresso wrote: > > > We couldn't just set the size like they did either. Because we don't > > want to set a size greater than the # of elements we're showing. So I > > wanted to set # of items to show and on click of next it dynamically > > figures out how many more elements to show. So if I specify 4, I even > > have some JavaScript that manipulates the DOM and expands the control > > to fit 4 but also, if the array of IDs doesn't have an even number, > > the last scroll will only scroll x more to show the rest. > > > It's similar but doesn't quite fullfill our needs, the examples he > > has. > > > On Jul 8, 12:02 pm, expresso wrote: > > > > Charlie, you also don't understand that we are using deferred > > > loading. And I'm reading an array of IDs from a JS variable. based > > > on those IDs I send a JSON request / response and then I get that > > > back. I'm making this control much more dynamic than their out of box > > > example here: > > > http://sorgalla.com/projects/jcarousel/examples/dynamic_flickr_api.html > > > > that logic can't be reused..it's custom to the Flickr API. We're not > > > loading ours like this. So I couldnt' just reuse the way they were > > > doing that there. > > > > On Jul 8, 11:57 am, expresso wrote: > > > > > jQuery(".jcarousel-skin-ie7 .jcarousel-next.jcarousel-next- > > > > horizontal").attr("disabled","true"); did not work. > > > > > On Jul 8, 11:06 am, amuhlou wrote: > > > > > > It doesn't look like what you're trying to select exists. the > > > > > "jcarousel-next" and "jcarousel-next-horizontal" classes are being > > > > > applied to the same div, so there shouldn't be a space between them in > > > > > your selector. > > > > > > Additionally, it appears your syntax for the attribute selector is > > > > > incorrect > > > > > > Have you tried jQuery(".jcarousel-skin-ie7 .jcarousel-next- > > > > > horizontal").attr("disabled","true"); > > > > > or > > > > > jQuery(".jcarousel-skin-ie7 .jcarousel-next.jcarousel-next- > > > > > horizontal").attr("disabled","true"); > > > > > > On Jul 8, 11:40 am, BaBna 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" wrote: > > > > > > > > How come is that you want to disable a div?? > > > > > > > > Do you mean, block the content inside div? > > > > > > > > - Original Message - > > > > > > > From: "BaBna" > > > > > > > To: "jQuery (English)" > > > > > > > Sent: Wednesday, July 08, 2009 9:28 AM > > > > > > > Subject: [jQuery] Re: Cannot disable div > > > > > > > > Maybe because there is no disabled property for DIV? > > > > > > > >http://www.w3schools.com/tags/tag_DIV.asp > > > > > > > > On Jul 8, 4:25 pm, expresso wrote: > > > > > > > > > > > > > > > > > > > > > > > style="display: block; height: 220px; width: 592px;"> > > > > > > > > > > > > > > > style="display: > > > > > > > > block;" disabled="false"/> > > > > > > > > > > > > > > > style="display: > > > > > > > > block;" disabled="false"/> > > > > > > > > > > > > > > > style="width: > > > > > > > > 600px; height: 220px;"> > > > > > > > > > > > > > > > style="height: 220px; width: 3315px; left: -2028px;"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 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
The hardest part about this plug-in has been that after pouring over the base code in his .js file I do not see how it's disabling the next button. Based on what!?!?! I mean I can stare the code right in the eye where it's happening but I cannot make sense of it: var self = this; n = true; this.buttonNext[n ? 'bind' : 'unbind'] (this.options.buttonNextEvent, this.funcNext)[n ? 'removeClass' : 'addClass'](this.className('jcarousel-next-disabled')).attr ('disabled', n ? false : true); this.buttonPrev[p ? 'bind' : 'unbind'] (this.options.buttonPrevEvent, this.funcPrev)[p ? 'removeClass' : 'addClass'](this.className('jcarousel-prev-disabled')).attr ('disabled', p ? false : true); if (this.buttonNext.length > 0 && (this.buttonNext [0].jcarouselstate == undefined || this.buttonNext[0].jcarouselstate ! = n) && this.options.buttonNextCallback != null) { this.buttonNext.each(function() { self.options.buttonNextCallback(self, this, n); }); this.buttonNext[0].jcarouselstate = true; } if (this.buttonPrev.length > 0 && (this.buttonPrev [0].jcarouselstate == undefined || this.buttonPrev[0].jcarouselstate ! = p) && this.options.buttonPrevCallback != null) { this.buttonPrev.each(function() { self.options.buttonPrevCallback(self, this, p); }); this.buttonPrev[0].jcarouselstate = p; } On Jul 8, 12:06 pm, expresso wrote: > We couldn't just set the size like they did either. Because we don't > want to set a size greater than the # of elements we're showing. So I > wanted to set # of items to show and on click of next it dynamically > figures out how many more elements to show. So if I specify 4, I even > have some JavaScript that manipulates the DOM and expands the control > to fit 4 but also, if the array of IDs doesn't have an even number, > the last scroll will only scroll x more to show the rest. > > It's similar but doesn't quite fullfill our needs, the examples he > has. > > On Jul 8, 12:02 pm, expresso wrote: > > > Charlie, you also don't understand that we are using deferred > > loading. And I'm reading an array of IDs from a JS variable. based > > on those IDs I send a JSON request / response and then I get that > > back. I'm making this control much more dynamic than their out of box > > example here: > > http://sorgalla.com/projects/jcarousel/examples/dynamic_flickr_api.html > > > that logic can't be reused..it's custom to the Flickr API. We're not > > loading ours like this. So I couldnt' just reuse the way they were > > doing that there. > > > On Jul 8, 11:57 am, expresso wrote: > > > > jQuery(".jcarousel-skin-ie7 .jcarousel-next.jcarousel-next- > > > horizontal").attr("disabled","true"); did not work. > > > > On Jul 8, 11:06 am, amuhlou wrote: > > > > > It doesn't look like what you're trying to select exists. the > > > > "jcarousel-next" and "jcarousel-next-horizontal" classes are being > > > > applied to the same div, so there shouldn't be a space between them in > > > > your selector. > > > > > Additionally, it appears your syntax for the attribute selector is > > > > incorrect > > > > > Have you tried jQuery(".jcarousel-skin-ie7 .jcarousel-next- > > > > horizontal").attr("disabled","true"); > > > > or > > > > jQuery(".jcarousel-skin-ie7 .jcarousel-next.jcarousel-next- > > > > horizontal").attr("disabled","true"); > > > > > On Jul 8, 11:40 am, BaBna 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" wrote: > > > > > > > How come is that you want to disable a div?? > > > > > > > Do you mean, block the content inside div? > > > > > > > - Original Message - > > > > > > From: "BaBna" > > > > > > To: "jQuery (English)" > > > > > > Sent: Wednesday, July 08, 2009 9:28 AM > > > > > > Subject: [jQuery] Re: Cann
[jQuery] Re: Cannot disable div
The hardest part about this plug-in has been that after pouring over the base code in his .js file I do not see how it's disabling the next button. Based on what!?!?! I mean I can stare the code right in the eye where it's happening but I cannot make sense of it: var self = this; n = true; this.buttonNext[n ? 'bind' : 'unbind'] (this.options.buttonNextEvent, this.funcNext)[n ? 'removeClass' : 'addClass'](this.className('jcarousel-next-disabled')).attr ('disabled', n ? false : true); this.buttonPrev[p ? 'bind' : 'unbind'] (this.options.buttonPrevEvent, this.funcPrev)[p ? 'removeClass' : 'addClass'](this.className('jcarousel-prev-disabled')).attr ('disabled', p ? false : true); if (this.buttonNext.length > 0 && (this.buttonNext [0].jcarouselstate == undefined || this.buttonNext[0].jcarouselstate ! = n) && this.options.buttonNextCallback != null) { this.buttonNext.each(function() { self.options.buttonNextCallback(self, this, n); }); this.buttonNext[0].jcarouselstate = true; } if (this.buttonPrev.length > 0 && (this.buttonPrev [0].jcarouselstate == undefined || this.buttonPrev[0].jcarouselstate ! = p) && this.options.buttonPrevCallback != null) { this.buttonPrev.each(function() { self.options.buttonPrevCallback(self, this, p); }); this.buttonPrev[0].jcarouselstate = p; } On Jul 8, 12:06 pm, expresso wrote: > We couldn't just set the size like they did either. Because we don't > want to set a size greater than the # of elements we're showing. So I > wanted to set # of items to show and on click of next it dynamically > figures out how many more elements to show. So if I specify 4, I even > have some JavaScript that manipulates the DOM and expands the control > to fit 4 but also, if the array of IDs doesn't have an even number, > the last scroll will only scroll x more to show the rest. > > It's similar but doesn't quite fullfill our needs, the examples he > has. > > On Jul 8, 12:02 pm, expresso wrote: > > > Charlie, you also don't understand that we are using deferred > > loading. And I'm reading an array of IDs from a JS variable. based > > on those IDs I send a JSON request / response and then I get that > > back. I'm making this control much more dynamic than their out of box > > example here: > > http://sorgalla.com/projects/jcarousel/examples/dynamic_flickr_api.html > > > that logic can't be reused..it's custom to the Flickr API. We're not > > loading ours like this. So I couldnt' just reuse the way they were > > doing that there. > > > On Jul 8, 11:57 am, expresso wrote: > > > > jQuery(".jcarousel-skin-ie7 .jcarousel-next.jcarousel-next- > > > horizontal").attr("disabled","true"); did not work. > > > > On Jul 8, 11:06 am, amuhlou wrote: > > > > > It doesn't look like what you're trying to select exists. the > > > > "jcarousel-next" and "jcarousel-next-horizontal" classes are being > > > > applied to the same div, so there shouldn't be a space between them in > > > > your selector. > > > > > Additionally, it appears your syntax for the attribute selector is > > > > incorrect > > > > > Have you tried jQuery(".jcarousel-skin-ie7 .jcarousel-next- > > > > horizontal").attr("disabled","true"); > > > > or > > > > jQuery(".jcarousel-skin-ie7 .jcarousel-next.jcarousel-next- > > > > horizontal").attr("disabled","true"); > > > > > On Jul 8, 11:40 am, BaBna 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" wrote: > > > > > > > How come is that you want to disable a div?? > > > > > > > Do you mean, block the content inside div? > > > > > > > - Original Message - > > > > > > From: "BaBna" > > > > > > To: "jQuery (English)" > > > > > > Sent: Wednesday, July 08, 2009 9:28 AM > > > > > > Subject: [jQuery] Re: Cann
[jQuery] Re: Cannot disable div
>>>seems like making the custom code fit the functionality of the plugin ( >>>which works) obviously but I poured through all examples and none of them would do what we want. We are going beyond what this thing does in terms of how it does the deferred loading. On Jul 8, 12:06 pm, expresso wrote: > We couldn't just set the size like they did either. Because we don't > want to set a size greater than the # of elements we're showing. So I > wanted to set # of items to show and on click of next it dynamically > figures out how many more elements to show. So if I specify 4, I even > have some JavaScript that manipulates the DOM and expands the control > to fit 4 but also, if the array of IDs doesn't have an even number, > the last scroll will only scroll x more to show the rest. > > It's similar but doesn't quite fullfill our needs, the examples he > has. > > On Jul 8, 12:02 pm, expresso wrote: > > > Charlie, you also don't understand that we are using deferred > > loading. And I'm reading an array of IDs from a JS variable. based > > on those IDs I send a JSON request / response and then I get that > > back. I'm making this control much more dynamic than their out of box > > example here: > > http://sorgalla.com/projects/jcarousel/examples/dynamic_flickr_api.html > > > that logic can't be reused..it's custom to the Flickr API. We're not > > loading ours like this. So I couldnt' just reuse the way they were > > doing that there. > > > On Jul 8, 11:57 am, expresso wrote: > > > > jQuery(".jcarousel-skin-ie7 .jcarousel-next.jcarousel-next- > > > horizontal").attr("disabled","true"); did not work. > > > > On Jul 8, 11:06 am, amuhlou wrote: > > > > > It doesn't look like what you're trying to select exists. the > > > > "jcarousel-next" and "jcarousel-next-horizontal" classes are being > > > > applied to the same div, so there shouldn't be a space between them in > > > > your selector. > > > > > Additionally, it appears your syntax for the attribute selector is > > > > incorrect > > > > > Have you tried jQuery(".jcarousel-skin-ie7 .jcarousel-next- > > > > horizontal").attr("disabled","true"); > > > > or > > > > jQuery(".jcarousel-skin-ie7 .jcarousel-next.jcarousel-next- > > > > horizontal").attr("disabled","true"); > > > > > On Jul 8, 11:40 am, BaBna 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" wrote: > > > > > > > How come is that you want to disable a div?? > > > > > > > Do you mean, block the content inside div? > > > > > > > - Original Message - > > > > > > From: "BaBna" > > > > > > To: "jQuery (English)" > > > > > > Sent: Wednesday, July 08, 2009 9:28 AM > > > > > > Subject: [jQuery] Re: Cannot disable div > > > > > > > Maybe because there is no disabled property for DIV? > > > > > > >http://www.w3schools.com/tags/tag_DIV.asp > > > > > > > On Jul 8, 4:25 pm, expresso wrote: > > > > > > > > > > > > > > > > > > > > style="display: block; height: 220px; width: 592px;"> > > > > > > > > > > > > > style="display: > > > > > > > block;" disabled="false"/> > > > > > > > > > > > > > style="display: > > > > > > > block;" disabled="false"/> > > > > > > > > > > > > > style="width: > > > > > > > 600px; height: 220px;"> > > > > > > > > > > > > > style="height: 220px; width: 3315px; left: -2028px;"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 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
We couldn't just set the size like they did either. Because we don't want to set a size greater than the # of elements we're showing. So I wanted to set # of items to show and on click of next it dynamically figures out how many more elements to show. So if I specify 4, I even have some JavaScript that manipulates the DOM and expands the control to fit 4 but also, if the array of IDs doesn't have an even number, the last scroll will only scroll x more to show the rest. It's similar but doesn't quite fullfill our needs, the examples he has. On Jul 8, 12:02 pm, expresso wrote: > Charlie, you also don't understand that we are using deferred > loading. And I'm reading an array of IDs from a JS variable. based > on those IDs I send a JSON request / response and then I get that > back. I'm making this control much more dynamic than their out of box > example here: > http://sorgalla.com/projects/jcarousel/examples/dynamic_flickr_api.html > > that logic can't be reused..it's custom to the Flickr API. We're not > loading ours like this. So I couldnt' just reuse the way they were > doing that there. > > On Jul 8, 11:57 am, expresso wrote: > > > jQuery(".jcarousel-skin-ie7 .jcarousel-next.jcarousel-next- > > horizontal").attr("disabled","true"); did not work. > > > On Jul 8, 11:06 am, amuhlou wrote: > > > > It doesn't look like what you're trying to select exists. the > > > "jcarousel-next" and "jcarousel-next-horizontal" classes are being > > > applied to the same div, so there shouldn't be a space between them in > > > your selector. > > > > Additionally, it appears your syntax for the attribute selector is > > > incorrect > > > > Have you tried jQuery(".jcarousel-skin-ie7 .jcarousel-next- > > > horizontal").attr("disabled","true"); > > > or > > > jQuery(".jcarousel-skin-ie7 .jcarousel-next.jcarousel-next- > > > horizontal").attr("disabled","true"); > > > > On Jul 8, 11:40 am, BaBna 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" wrote: > > > > > > How come is that you want to disable a div?? > > > > > > Do you mean, block the content inside div? > > > > > > - Original Message - > > > > > From: "BaBna" > > > > > To: "jQuery (English)" > > > > > Sent: Wednesday, July 08, 2009 9:28 AM > > > > > Subject: [jQuery] Re: Cannot disable div > > > > > > Maybe because there is no disabled property for DIV? > > > > > >http://www.w3schools.com/tags/tag_DIV.asp > > > > > > On Jul 8, 4:25 pm, expresso wrote: > > > > > > > > > > > > > > > > > style="display: block; height: 220px; width: 592px;"> > > > > > > > > > > > style="display: > > > > > > block;" disabled="false"/> > > > > > > > > > > > style="display: > > > > > > block;" disabled="false"/> > > > > > > > > > > > > > > > > > style="height: 220px; width: 3315px; left: -2028px;"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 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
Charlie, you also don't understand that we are using deferred loading. And I'm reading an array of IDs from a JS variable. based on those IDs I send a JSON request / response and then I get that back. I'm making this control much more dynamic than their out of box example here: http://sorgalla.com/projects/jcarousel/examples/dynamic_flickr_api.html that logic can't be reused..it's custom to the Flickr API. We're not loading ours like this. So I couldnt' just reuse the way they were doing that there. On Jul 8, 11:57 am, expresso wrote: > jQuery(".jcarousel-skin-ie7 .jcarousel-next.jcarousel-next- > horizontal").attr("disabled","true"); did not work. > > On Jul 8, 11:06 am, amuhlou wrote: > > > It doesn't look like what you're trying to select exists. the > > "jcarousel-next" and "jcarousel-next-horizontal" classes are being > > applied to the same div, so there shouldn't be a space between them in > > your selector. > > > Additionally, it appears your syntax for the attribute selector is > > incorrect > > > Have you tried jQuery(".jcarousel-skin-ie7 .jcarousel-next- > > horizontal").attr("disabled","true"); > > or > > jQuery(".jcarousel-skin-ie7 .jcarousel-next.jcarousel-next- > > horizontal").attr("disabled","true"); > > > On Jul 8, 11:40 am, BaBna 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" wrote: > > > > > How come is that you want to disable a div?? > > > > > Do you mean, block the content inside div? > > > > > - Original Message - > > > > From: "BaBna" > > > > To: "jQuery (English)" > > > > Sent: Wednesday, July 08, 2009 9:28 AM > > > > Subject: [jQuery] Re: Cannot disable div > > > > > Maybe because there is no disabled property for DIV? > > > > >http://www.w3schools.com/tags/tag_DIV.asp > > > > > On Jul 8, 4:25 pm, expresso wrote: > > > > > > > > > > > > > > style="display: block; height: 220px; width: 592px;"> > > > > > > > > > > > > > > > > > > > > > > > > style="height: 220px; width: 3315px; left: -2028px;"> > > > > > > > > > > > > > > > > > > > > > > > > > > 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
Charlie, you also don't understand that we are using deferred loading. And I'm reading an array of IDs from a JS variable. based on those IDs I send a JSON request / response and then I get that back. I'm making this control much more dynamic than their out of box example here: http://sorgalla.com/projects/jcarousel/examples/dynamic_flickr_api.html that logic can't be reused..it's custom to the Flickr API. We're not loading ours like this. So I couldnt' just reuse the way they were doing that there. On Jul 8, 11:57 am, expresso wrote: > jQuery(".jcarousel-skin-ie7 .jcarousel-next.jcarousel-next- > horizontal").attr("disabled","true"); did not work. > > On Jul 8, 11:06 am, amuhlou wrote: > > > It doesn't look like what you're trying to select exists. the > > "jcarousel-next" and "jcarousel-next-horizontal" classes are being > > applied to the same div, so there shouldn't be a space between them in > > your selector. > > > Additionally, it appears your syntax for the attribute selector is > > incorrect > > > Have you tried jQuery(".jcarousel-skin-ie7 .jcarousel-next- > > horizontal").attr("disabled","true"); > > or > > jQuery(".jcarousel-skin-ie7 .jcarousel-next.jcarousel-next- > > horizontal").attr("disabled","true"); > > > On Jul 8, 11:40 am, BaBna 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" wrote: > > > > > How come is that you want to disable a div?? > > > > > Do you mean, block the content inside div? > > > > > - Original Message - > > > > From: "BaBna" > > > > To: "jQuery (English)" > > > > Sent: Wednesday, July 08, 2009 9:28 AM > > > > Subject: [jQuery] Re: Cannot disable div > > > > > Maybe because there is no disabled property for DIV? > > > > >http://www.w3schools.com/tags/tag_DIV.asp > > > > > On Jul 8, 4:25 pm, expresso wrote: > > > > > > > > > > > > > > style="display: block; height: 220px; width: 592px;"> > > > > > > > > > > > > > > > > > > > > > > > > style="height: 220px; width: 3315px; left: -2028px;"> > > > > > > > > > > > > > > > > > > > > > > > > > > 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
Charlie, we have. But we are doing something completely past what this control does. For example I have it expanding and contracting based on # of items you want to show. Getting that logic in there required some extensive thought on my side and something that this control does not do. Because of that, we can't just stick to what the thing does...it doesn't fit our needs. On Jul 8, 11:22 am, Charlie wrote: > 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 > athttp://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: On Jul > 8, 10:40 am, BaBnawrote: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"wrote:How come is > that you want to disable a div??Do you mean, block the content inside > div?- Original Message - From: "BaBna"To: > "jQuery (English)"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, expressowrote: > style="display: block; height: 220px; width: 592px;"> class="jcarousel-prev jcarousel-prev-horizontal" style="display: block;" > disabled="false"/> style="display: block;" disabled="false"/> id="mycarousel" class="jcarousel-list jcarousel-list-horizontal" > style="height: 220px; width: 3315px; left: -2028px;"> > 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
jQuery(".jcarousel-skin-ie7 .jcarousel-next.jcarousel-next- horizontal").attr("disabled","true"); did not work. On Jul 8, 11:06 am, amuhlou wrote: > It doesn't look like what you're trying to select exists. the > "jcarousel-next" and "jcarousel-next-horizontal" classes are being > applied to the same div, so there shouldn't be a space between them in > your selector. > > Additionally, it appears your syntax for the attribute selector is > incorrect > > Have you tried jQuery(".jcarousel-skin-ie7 .jcarousel-next- > horizontal").attr("disabled","true"); > or > jQuery(".jcarousel-skin-ie7 .jcarousel-next.jcarousel-next- > horizontal").attr("disabled","true"); > > On Jul 8, 11:40 am, BaBna 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" wrote: > > > > How come is that you want to disable a div?? > > > > Do you mean, block the content inside div? > > > > - Original Message - > > > From: "BaBna" > > > To: "jQuery (English)" > > > Sent: Wednesday, July 08, 2009 9:28 AM > > > Subject: [jQuery] Re: Cannot disable div > > > > Maybe because there is no disabled property for DIV? > > > >http://www.w3schools.com/tags/tag_DIV.asp > > > > On Jul 8, 4:25 pm, expresso wrote: > > > > > > > > > > > style="display: block; height: 220px; width: 592px;"> > > > > > > > > > > > > > > > > > > > style="height: 220px; width: 3315px; left: -2028px;"> > > > > > > > > > > > > > > > > > > > > > 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
jQuery(".jcarousel-skin-ie7 .jcarousel-next.jcarousel-next- horizontal").attr("disabled","true"); did not work. On Jul 8, 11:06 am, amuhlou wrote: > It doesn't look like what you're trying to select exists. the > "jcarousel-next" and "jcarousel-next-horizontal" classes are being > applied to the same div, so there shouldn't be a space between them in > your selector. > > Additionally, it appears your syntax for the attribute selector is > incorrect > > Have you tried jQuery(".jcarousel-skin-ie7 .jcarousel-next- > horizontal").attr("disabled","true"); > or > jQuery(".jcarousel-skin-ie7 .jcarousel-next.jcarousel-next- > horizontal").attr("disabled","true"); > > On Jul 8, 11:40 am, BaBna 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" wrote: > > > > How come is that you want to disable a div?? > > > > Do you mean, block the content inside div? > > > > - Original Message - > > > From: "BaBna" > > > To: "jQuery (English)" > > > Sent: Wednesday, July 08, 2009 9:28 AM > > > Subject: [jQuery] Re: Cannot disable div > > > > Maybe because there is no disabled property for DIV? > > > >http://www.w3schools.com/tags/tag_DIV.asp > > > > On Jul 8, 4:25 pm, expresso wrote: > > > > > > > > > > > style="display: block; height: 220px; width: 592px;"> > > > > > > > > > > > > > > > > > > > style="height: 220px; width: 3315px; left: -2028px;"> > > > > > > > > > > > > > > > > > > > > > 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
amuhlou, I get a syntax error when I change .attr(disabled: "true") to using commas such as you have it. I get "invalid object initializer" jQuery(".jcarousel-skin-ie7 .jcarousel-next-horizontal").attr ({ "disabled", "true" }); On Jul 8, 11:06 am, amuhlou wrote: > It doesn't look like what you're trying to select exists. the > "jcarousel-next" and "jcarousel-next-horizontal" classes are being > applied to the same div, so there shouldn't be a space between them in > your selector. > > Additionally, it appears your syntax for the attribute selector is > incorrect > > Have you tried jQuery(".jcarousel-skin-ie7 .jcarousel-next- > horizontal").attr("disabled","true"); > or > jQuery(".jcarousel-skin-ie7 .jcarousel-next.jcarousel-next- > horizontal").attr("disabled","true"); > > On Jul 8, 11:40 am, BaBna 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" wrote: > > > > How come is that you want to disable a div?? > > > > Do you mean, block the content inside div? > > > > - Original Message - > > > From: "BaBna" > > > To: "jQuery (English)" > > > Sent: Wednesday, July 08, 2009 9:28 AM > > > Subject: [jQuery] Re: Cannot disable div > > > > Maybe because there is no disabled property for DIV? > > > >http://www.w3schools.com/tags/tag_DIV.asp > > > > On Jul 8, 4:25 pm, expresso wrote: > > > > > > > > > > > style="display: block; height: 220px; width: 592px;"> > > > > > > > > > > > > > > > > > > > style="height: 220px; width: 3315px; left: -2028px;"> > > > > > > > > > > > > > > > > > > > > > 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
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: On Jul 8, 10:40 am, BaBna 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" wrote: > > > How come is that you want to disable a div?? > > > Do you mean, block the content inside div? > > > - Original Message - > > From: "BaBna" > > To: "jQuery (English)" > > Sent: Wednesday, July 08, 2009 9:28 AM > > Subject: [jQuery] Re: Cannot disable div > > > Maybe because there is no disabled property for DIV? > > >http://www.w3schools.com/tags/tag_DIV.asp > > > On Jul 8, 4:25 pm, expresso wrote: > > > > > > > > style="display: block; height: 220px; width: 592px;"> > > > > > > > > > > > > > > style="height: 220px; width: 3315px; left: -2028px;"> > > > > > > > > > > > > > > > > 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
Now you tell me how the f* I'm supposed to understand how to manipulate this crap. So I figured I can just disable it with CSS straight up. On Jul 8, 11:05 am, expresso wrote: > buttons: function(n, p) { > if (n == undefined || n == null) { > var n = !this.locked && this.options.size !== 0 && > ((this.options.wrap && this.options.wrap != 'first') || > this.options.size == null); > //if (!this.locked && (!this.options.wrap || > this.options.wrap == 'first') && this.options.size != null && > this.last >= this.options.size) > // n = this.tail != null && !this.inTail; > } > > if (p == undefined || p == null) { > var p = !this.locked && this.options.size !== 0 && > ((this.options.wrap && this.options.wrap != 'last') || this.first > > 1); > if (!this.locked && (!this.options.wrap || > this.options.wrap == 'last') && this.options.size != null && > this.first == 1) > p = this.tail != null && this.inTail; > } > > var self = this; > n = true; > this.buttonNext[n ? 'bind' : 'unbind'] > (this.options.buttonNextEvent, this.funcNext)[n ? 'removeClass' : > 'addClass'](this.className('jcarousel-next-disabled')).attr > ('disabled', n ? false : true); > this.buttonPrev[p ? 'bind' : 'unbind'] > (this.options.buttonPrevEvent, this.funcPrev)[p ? 'removeClass' : > 'addClass'](this.className('jcarousel-prev-disabled')).attr > ('disabled', p ? false : true); > > if (this.buttonNext.length > 0 && (this.buttonNext > [0].jcarouselstate == undefined || this.buttonNext[0].jcarouselstate ! > = n) && this.options.buttonNextCallback != null) { > this.buttonNext.each(function() > { self.options.buttonNextCallback(self, this, n); }); > this.buttonNext[0].jcarouselstate = true; > } > > if (this.buttonPrev.length > 0 && (this.buttonPrev > [0].jcarouselstate == undefined || this.buttonPrev[0].jcarouselstate ! > = p) && this.options.buttonPrevCallback != null) { > this.buttonPrev.each(function() > { self.options.buttonPrevCallback(self, this, p); }); > this.buttonPrev[0].jcarouselstate = p; > } > }, > > On Jul 8, 11:03 am, expresso wrote: > > > If you look at the JCarousel .js, here's the logic > > > buttonNextHTML: '', > > > > this.buttonNext = $('.jcarousel-next', this.container); > > > if (this.buttonNext.size() == 0 && > > this.options.buttonNextHTML != null) > > this.buttonNext = this.clip.before > > (this.options.buttonNextHTML).prev(); > > > On Jul 8, 10:40 am, BaBna 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" wrote: > > > > > How come is that you want to disable a div?? > > > > > Do you mean, block the content inside div? > > > > > - Original Message - > > > > From: "BaBna" > > > > To: "jQuery (English)" > > > > Sent: Wednesday, July 08, 2009 9:28 AM > > > > Subject: [jQuery] Re: Cannot disable div > > > > > Maybe because there is no disabled property for DIV? > > > > >http://www.w3schools.com/tags/tag_DIV.asp > > > > > On Jul 8, 4:25 pm, expresso wrote: > > > > > > > > > > > > > > style="display: block; height: 220px; width: 592px;"> > > > > > > > > > > > > > > > > > > > > > > > > style="height: 220px; width: 3315px; left: -2028px;"> > > > > > > > > > > > > > > > > > > > > > > > > > > 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
buttons: function(n, p) { if (n == undefined || n == null) { var n = !this.locked && this.options.size !== 0 && ((this.options.wrap && this.options.wrap != 'first') || this.options.size == null); //if (!this.locked && (!this.options.wrap || this.options.wrap == 'first') && this.options.size != null && this.last >= this.options.size) //n = this.tail != null && !this.inTail; } if (p == undefined || p == null) { var p = !this.locked && this.options.size !== 0 && ((this.options.wrap && this.options.wrap != 'last') || this.first > 1); if (!this.locked && (!this.options.wrap || this.options.wrap == 'last') && this.options.size != null && this.first == 1) p = this.tail != null && this.inTail; } var self = this; n = true; this.buttonNext[n ? 'bind' : 'unbind'] (this.options.buttonNextEvent, this.funcNext)[n ? 'removeClass' : 'addClass'](this.className('jcarousel-next-disabled')).attr ('disabled', n ? false : true); this.buttonPrev[p ? 'bind' : 'unbind'] (this.options.buttonPrevEvent, this.funcPrev)[p ? 'removeClass' : 'addClass'](this.className('jcarousel-prev-disabled')).attr ('disabled', p ? false : true); if (this.buttonNext.length > 0 && (this.buttonNext [0].jcarouselstate == undefined || this.buttonNext[0].jcarouselstate ! = n) && this.options.buttonNextCallback != null) { this.buttonNext.each(function() { self.options.buttonNextCallback(self, this, n); }); this.buttonNext[0].jcarouselstate = true; } if (this.buttonPrev.length > 0 && (this.buttonPrev [0].jcarouselstate == undefined || this.buttonPrev[0].jcarouselstate ! = p) && this.options.buttonPrevCallback != null) { this.buttonPrev.each(function() { self.options.buttonPrevCallback(self, this, p); }); this.buttonPrev[0].jcarouselstate = p; } }, On Jul 8, 11:03 am, expresso wrote: > If you look at the JCarousel .js, here's the logic > > buttonNextHTML: '', > > this.buttonNext = $('.jcarousel-next', this.container); > > if (this.buttonNext.size() == 0 && > this.options.buttonNextHTML != null) > this.buttonNext = this.clip.before > (this.options.buttonNextHTML).prev(); > > On Jul 8, 10:40 am, BaBna 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" wrote: > > > > How come is that you want to disable a div?? > > > > Do you mean, block the content inside div? > > > > - Original Message - > > > From: "BaBna" > > > To: "jQuery (English)" > > > Sent: Wednesday, July 08, 2009 9:28 AM > > > Subject: [jQuery] Re: Cannot disable div > > > > Maybe because there is no disabled property for DIV? > > > >http://www.w3schools.com/tags/tag_DIV.asp > > > > On Jul 8, 4:25 pm, expresso wrote: > > > > > > > > > > > style="display: block; height: 220px; width: 592px;"> > > > > > > > > > > > > > > > > > > > style="height: 220px; width: 3315px; left: -2028px;"> > > > > > > > > > > > > > > > > > > > > > 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
this.container.css('display', 'block'); this.buttonNext.css('display', 'block'); this.buttonPrev.css('display', 'block'); this.funcNext = function() { self.next(); }; this.funcPrev = function() { self.prev(); }; this.funcResize = function() { self.reload(); }; On Jul 8, 11:03 am, expresso wrote: > If you look at the JCarousel .js, here's the logic > > buttonNextHTML: '', > > this.buttonNext = $('.jcarousel-next', this.container); > > if (this.buttonNext.size() == 0 && > this.options.buttonNextHTML != null) > this.buttonNext = this.clip.before > (this.options.buttonNextHTML).prev(); > > On Jul 8, 10:40 am, BaBna 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" wrote: > > > > How come is that you want to disable a div?? > > > > Do you mean, block the content inside div? > > > > - Original Message - > > > From: "BaBna" > > > To: "jQuery (English)" > > > Sent: Wednesday, July 08, 2009 9:28 AM > > > Subject: [jQuery] Re: Cannot disable div > > > > Maybe because there is no disabled property for DIV? > > > >http://www.w3schools.com/tags/tag_DIV.asp > > > > On Jul 8, 4:25 pm, expresso wrote: > > > > > > > > > > > style="display: block; height: 220px; width: 592px;"> > > > > > > > > > > > > > > > > > > > style="height: 220px; width: 3315px; left: -2028px;"> > > > > > > > > > > > > > > > > > > > > > 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
If you look at the JCarousel .js, here's the logic buttonNextHTML: '', this.buttonNext = $('.jcarousel-next', this.container); if (this.buttonNext.size() == 0 && this.options.buttonNextHTML != null) this.buttonNext = this.clip.before (this.options.buttonNextHTML).prev(); On Jul 8, 10:40 am, BaBna 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" wrote: > > > How come is that you want to disable a div?? > > > Do you mean, block the content inside div? > > > - Original Message - > > From: "BaBna" > > To: "jQuery (English)" > > Sent: Wednesday, July 08, 2009 9:28 AM > > Subject: [jQuery] Re: Cannot disable div > > > Maybe because there is no disabled property for DIV? > > >http://www.w3schools.com/tags/tag_DIV.asp > > > On Jul 8, 4:25 pm, expresso wrote: > > > > > > > > style="display: block; height: 220px; width: 592px;"> > > > > > > > > > > > > > > style="height: 220px; width: 3315px; left: -2028px;"> > > > > > > > > > > > > > > > > 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
>>Do you mean, block the content inside div? I think but the reason I can't tell is because in FireBug, looking at the source, there is no content inside that div. On Jul 8, 10:40 am, BaBna 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" wrote: > > > How come is that you want to disable a div?? > > > Do you mean, block the content inside div? > > > - Original Message - > > From: "BaBna" > > To: "jQuery (English)" > > Sent: Wednesday, July 08, 2009 9:28 AM > > Subject: [jQuery] Re: Cannot disable div > > > Maybe because there is no disabled property for DIV? > > >http://www.w3schools.com/tags/tag_DIV.asp > > > On Jul 8, 4:25 pm, expresso wrote: > > > > > > > > style="display: block; height: 220px; width: 592px;"> > > > > > > > > > > > > > > style="height: 220px; width: 3315px; left: -2028px;"> > > > > > > > > > > > > > > > > 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
Because I want to disable the next button in this plug-in explicitely. On Jul 8, 10:30 am, "Cesar Sanz" wrote: > How come is that you want to disable a div?? > > Do you mean, block the content inside div? > > - Original Message - > From: "BaBna" > To: "jQuery (English)" > Sent: Wednesday, July 08, 2009 9:28 AM > Subject: [jQuery] Re: Cannot disable div > > Maybe because there is no disabled property for DIV? > > http://www.w3schools.com/tags/tag_DIV.asp > > On Jul 8, 4:25 pm, expresso wrote: > > > > > style="display: block; height: 220px; width: 592px;"> > > > > > > > > > style="height: 220px; width: 3315px; left: -2028px;"> > > > > > > > > > > > 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
Because I want to disable the next button in this plug-in explicitely. On Jul 8, 10:30 am, "Cesar Sanz" wrote: > How come is that you want to disable a div?? > > Do you mean, block the content inside div? > > - Original Message - > From: "BaBna" > To: "jQuery (English)" > Sent: Wednesday, July 08, 2009 9:28 AM > Subject: [jQuery] Re: Cannot disable div > > Maybe because there is no disabled property for DIV? > > http://www.w3schools.com/tags/tag_DIV.asp > > On Jul 8, 4:25 pm, expresso wrote: > > > > > style="display: block; height: 220px; width: 592px;"> > > > > > > > > > style="height: 220px; width: 3315px; left: -2028px;"> > > > > > > > > > > > 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
then why the heck does JCarousel put one in it? On Jul 8, 10:28 am, BaBna wrote: > Maybe because there is no disabled property for DIV? > > http://www.w3schools.com/tags/tag_DIV.asp > > On Jul 8, 4:25 pm, expresso wrote: > > > > > > style="display: block; height: 220px; width: 592px;"> > > > > > > > > > style="height: 220px; width: 3315px; left: -2028px;"> > > > > > > > > > > > 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] Cannot disable 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: Remove an
weird, I went to the selectors page but don't see nextAll On Jul 6, 5:47 am, Ricardo wrote: > $(this).nextAll('.jcarousel-item-placeholder').remove(); > > http://docs.jquery.com/Selectors > > On Jul 6, 1:05 am, expresso wrote: > > > I want to remove the following and any after that which have the > > class jcarousel-item-placeholder in them > > > > > > I'm not sure how to go about this.
[jQuery] Re: Remove an
thanks I have not seen nextAll yet. On Jul 6, 5:47 am, Ricardo wrote: > $(this).nextAll('.jcarousel-item-placeholder').remove(); > > http://docs.jquery.com/Selectors > > On Jul 6, 1:05 am, expresso wrote: > > > I want to remove the following and any after that which have the > > class jcarousel-item-placeholder in them > > > > > > I'm not sure how to go about this.
[jQuery] Re: IE (any version) is not parsing returned JSON via getJSON or $.ajax calls
fixed it, removed: context.Response.Charset = Encoding.UTF8.ToString(); changed: context.Response.ContentType = "application/ json;charset=utf-8"; On Jul 6, 2:38 pm, expresso wrote: > I am trying out $.ajax instead of getJSON for debugging purposes. > Because getJSON did not report an error in IE (6,7 or 8) and I am > trying to figure out why a jQuery plug-in is not painting my returned > images to the screen in IE but is in other browsers. > > So I tried this. Interestingly enough, it hits the error event in IE > but not firefox, safari and the rest and I don't know why (this code > works great and renders my data just fine in FireFox and the rest). I > know my returned json is valid: > > $.ajax({ > type: "GET", > url: "http://localhost:59396/sss/sssHandler.ashx? > action=getproducts&ids=" + ids, > data: "{}", > contentType: "application/json; charset=utf-8", > dataType: "json", > success: function(data) { > alert(data.length); > carousel.size(allProductIDs.length); > > if (numberOfImagesLeftToShow < numberOfImagesToDisplay) { > first += (numberOfImagesToDisplay - > numberOfImagesLeftToShow); > } > > var d = 0; > for (var i = first; i <= last; i++) { > > if (d != undefined) { > // add data using index of the array returned by JSON > (which starts at 0) > carousel.add(i, decode(data[d].ImageTag)); > } > > // set to last ProductID showing in Carousel > if (i == last) { lastProductID = parseFloat(data > [d].ProductID); } > > d++; > } > }, > > error: function() { > alert("An error has occurred. Please try again."); > } > > }); > > I don't know what else to do to troubleshoot why IE is having so much > trouble with the returned JSON or just executing the function(data) > using either getJSON OR this. I have set the headers not the cache > also in the response. That is not the problem. The problem is for > whatever reason, IE refuses to enter my function(data) on the > response. > > Here's the returned JSON which shows valid (even checked it > withhttp://www.jsonlint.com/): > > [ > { > "ImageTag": "\u003cdiv class=\"CarouselItem > \"\u003e<p><img src="http://www.xxx.com/image/ > 2568.jpg" alt=""></p>\u003cp\u003e\u003ca > href= > \"Bear-10.prod\"\u003eTeddy Bear\u003c/a\u003e\u003c/p\u003e\u003cp > \u003e$20.95\u003c/p\u003e\u003cdiv\u003e", > "ProductID": "540" > }, > { > "ImageTag": "\u003cdiv class=\"CarouselItem > \"\u003e<p><img src="http://www.xxx.com/image/ > 50.jpg" alt=""></p>\u003cp\u003e\u003ca href= > \"Pendant362.prod\"\u003eBirthday\u003csup\u003e©\u003c/sup > \u003Necklace\u003c/a\u003e\u003c/p\u003e\u003cp\u003e$36.95\u003c/p > \u003e\u003cdiv\u003e", > "ProductID": "83" > } > ] > > in my .ashx I simply have the following main code to product the > response > > context.Response.ContentType = "application/json"; > context.Response.Charset = Encoding.UTF8.ToString(); > context.Response.Cache.SetNoStore(); > context.Response.Cache.SetExpires(DateTime.MinValue); > context.Response.Cache.SetCacheability > (HttpCacheability.NoCache); > context.Response.Cache.SetValidUntilExpires(false); > > context.Response.Expires = -1; > context.Response.ExpiresAbsolute = DateTime.MinValue; > context.Response.AddHeader("Cache-Control", "no-cache"); > context.Response.AddHeader("Cache-Control", "post-check=0, pre- > check=0"); > context.Response.AddHeader("Pragma", "no-cache"); > > ... > > string jsonString = imageList.ToJSON(); <-- uses the .NET 3.5 > JavaScriptSerializer > context.Response.Write(jsonString); > > also, it doesn't seem to matter if you specify the > response.ContentType as "application/json" or "text/plain" because at > least I'm getting valid data in FireFox returned and parsed. > > I tried even sending a simple hard coded string over to make sure the > JSON was not corrupt or something else: > > [ > { > "ImageTag": "imagePath", > "ProductID": "540" > }, > { > "ImageTag": "imagePath", > "ProductID": "83" > } > ] > > Same result. Firefox and the rest had no issue. IE still exited the > $.ajax and my error method kicked in. No rhyme or reason whatsoever > and I tried the IE Dev tools... nothing. About the only thing I get > is this: > > Line: 163 Error: System error: -1072896658. Line 163 > > which is simply the line: function() { alert("An error has occurred. > Please try again."); > > This has got to be the most f*d up situation I've been in and I need > to get this working! I just cannot understand why IE can't parse a > getJSON or $.ajax response, that is impossible or else there would be > a huge meltdown with jQuery.
[jQuery] IE (any version) is not parsing returned JSON via getJSON or $.ajax calls
I am trying out $.ajax instead of getJSON for debugging purposes. Because getJSON did not report an error in IE (6,7 or 8) and I am trying to figure out why a jQuery plug-in is not painting my returned images to the screen in IE but is in other browsers. So I tried this. Interestingly enough, it hits the error event in IE but not firefox, safari and the rest and I don't know why (this code works great and renders my data just fine in FireFox and the rest). I know my returned json is valid: $.ajax({ type: "GET", url: "http://localhost:59396/sss/sssHandler.ashx? action=getproducts&ids=" + ids, data: "{}", contentType: "application/json; charset=utf-8", dataType: "json", success: function(data) { alert(data.length); carousel.size(allProductIDs.length); if (numberOfImagesLeftToShow < numberOfImagesToDisplay) { first += (numberOfImagesToDisplay - numberOfImagesLeftToShow); } var d = 0; for (var i = first; i <= last; i++) { if (d != undefined) { // add data using index of the array returned by JSON (which starts at 0) carousel.add(i, decode(data[d].ImageTag)); } // set to last ProductID showing in Carousel if (i == last) { lastProductID = parseFloat(data [d].ProductID); } d++; } }, error: function() { alert("An error has occurred. Please try again."); } }); I don't know what else to do to troubleshoot why IE is having so much trouble with the returned JSON or just executing the function(data) using either getJSON OR this. I have set the headers not the cache also in the response. That is not the problem. The problem is for whatever reason, IE refuses to enter my function(data) on the response. Here's the returned JSON which shows valid (even checked it with http://www.jsonlint.com/): [ { "ImageTag": "\u003cdiv class=\"CarouselItem \"\u003e\u003cp\u003e\u003ca href= \"Bear-10.prod\"\u003eTeddy Bear\u003c/a\u003e\u003c/p\u003e\u003cp \u003e$20.95\u003c/p\u003e\u003cdiv\u003e", "ProductID": "540" }, { "ImageTag": "\u003cdiv class=\"CarouselItem \"\u003e\u003cp\u003e\u003ca href= \"Pendant362.prod\"\u003eBirthday\u003csup\u003e©\u003c/sup \u003Necklace\u003c/a\u003e\u003c/p\u003e\u003cp\u003e$36.95\u003c/p \u003e\u003cdiv\u003e", "ProductID": "83" } ] in my .ashx I simply have the following main code to product the response context.Response.ContentType = "application/json"; context.Response.Charset = Encoding.UTF8.ToString(); context.Response.Cache.SetNoStore(); context.Response.Cache.SetExpires(DateTime.MinValue); context.Response.Cache.SetCacheability (HttpCacheability.NoCache); context.Response.Cache.SetValidUntilExpires(false); context.Response.Expires = -1; context.Response.ExpiresAbsolute = DateTime.MinValue; context.Response.AddHeader("Cache-Control", "no-cache"); context.Response.AddHeader("Cache-Control", "post-check=0, pre- check=0"); context.Response.AddHeader("Pragma", "no-cache"); ... string jsonString = imageList.ToJSON(); <-- uses the .NET 3.5 JavaScriptSerializer context.Response.Write(jsonString); also, it doesn't seem to matter if you specify the response.ContentType as "application/json" or "text/plain" because at least I'm getting valid data in FireFox returned and parsed. I tried even sending a simple hard coded string over to make sure the JSON was not corrupt or something else: [ { "ImageTag": "imagePath", "ProductID": "540" }, { "ImageTag": "imagePath", "ProductID": "83" } ] Same result. Firefox and the rest had no issue. IE still exited the $.ajax and my error method kicked in. No rhyme or reason whatsoever and I tried the IE Dev tools... nothing. About the only thing I get is this: Line: 163 Error: System error: -1072896658. Line 163 which is simply the line: function() { alert("An error has occurred. Please try again."); This has got to be the most f*d up situation I've been in and I need to get this working! I just cannot understand why IE can't parse a getJSON or $.ajax response, that is impossible or else there would be a huge meltdown with jQuery.
[jQuery] Re: getJSON callback? does not work with querystring param
Ok, so their sending back a json response wrapped with method foo. So then how would you specify foo in my example as the method to call on the getJSON script I've created? I think my example is fine as it is. We're not going cross server for now but wanted to understand how to form this and how this worked a little more. MK explained the response coming back, a huge part of this! The jQuery docs need to explain this, it's pretty inferred to some who have done this before, but not that obvious to others that this is how it works...that you are essentially wrapping what you are sending back in the method that you want to call in your callback. On Jul 6, 10:56 am, Bill Ramirez wrote: > If you pass a param to the json call, it gets passed into the > querystring: > > $.getJSON("jsdata/customerhandler.ashx", { show: Math.random(), > departmentId: dptId}, customerLoaded); > > would be rendered as: > > jsdata/customerhandler.ashx?show=0.23231553&departmentId=123 > > the second parameter to the getJson function is the query string > parameters.
[jQuery] Re: getJSON callback? does not work with querystring param
Thanks. I'm not following you though per my example. I have specified function(data) as the method On Jul 6, 10:56 am, Bill Ramirez wrote: > If you pass a param to the json call, it gets passed into the > querystring: > > $.getJSON("jsdata/customerhandler.ashx", { show: Math.random(), > departmentId: dptId}, customerLoaded); > > would be rendered as: > > jsdata/customerhandler.ashx?show=0.23231553&departmentId=123 > > the second parameter to the getJson function is the query string > parameters.
[jQuery] Re: JCarousel not rendering added data in IE 6, 7, or 8!!!!!!!!!!!!! Works in all other browsers
Here is the Json returned [ { "ImageTag": "\u003cdiv class=\"CarouselItem \"\u003e<p><img src="http://www.xxx.com/image/ 2568.jpg" alt=""></p>\u003cp\u003e\u003ca href= \"Bear-10.prod\"\u003eTeddy Bear\u003c/a\u003e\u003c/p\u003e\u003cp \u003e$20.95\u003c/p\u003e\u003cdiv\u003e", "ProductID": "540" }, { "ImageTag": "\u003cdiv class=\"CarouselItem \"\u003e<p><img src="http://www.xxx.com/image/ 50.jpg" alt=""></p>\u003cp\u003e\u003ca href= \"Pendant362.prod\"\u003eBirthday\u003csup\u003e©\u003c/sup \u003Necklace\u003c/a\u003e\u003c/p\u003e\u003cp\u003e$36.95\u003c/p \u003e\u003cdiv\u003e", "ProductID": "83" } ] On Jul 6, 11:49 am, expresso wrote: > Tried this instead. Got no errors and the data painted fine in > FireFox. But in IE, it hit my error handler. Again, no idea why in > IE it's complaining. I checked that the json returned is definitely > valued (obviously it has to be because this data is rendering in > FireFox and other browsers) by using the json checker > here:http://www.jsonlint.com/ > > $.ajax({ > type: "POST", > url: "http://localhost:59396/xxx/CarouselHandler.ashx? > action=getproducts&ids=" + ids, > data: "{}", > contentType: "application/json; charset=utf-8", > dataType: "json", > success: function(data) { > alert(data.length); > carousel.size(allProductIDs.length); > > if (numberOfImagesLeftToShow < > numberOfImagesToDisplay) { > first += (numberOfImagesToDisplay - > numberOfImagesLeftToShow); > } > > var d = 0; > for (var i = first; i <= last; i++) { > > if (d != undefined) { > // add data using index of the array returned > by JSON (which starts at 0) > carousel.add(i, decode(data[d].ImageTag)); > } > > // set to last ProductID showing in Carousel > if (i == last) { lastProductID = parseFloat(data > [d].ProductID); } > > d++; > } > }, > > error: function() { > alert("An error has occurred. Please try again."); > } > }); > > so I don't know why IE is complaining and throwing an error when it's > working fine in FireFox, Safari, etc.! > > On Jul 6, 11:18 am, expresso wrote: > > > I just tested this out with adding an alert(data.length); In FireFox, > > the alert comes right up. But in IE 6,7,8, it never hits the alert: > > > $.getJSON("http://localhost:59396/xxx/CarouselHandler.ashx? > > action=getproducts&ids=" + ids, > > function(data) { > > alert(data.length); > > carousel.size(allProductIDs.length); > > > if (numberOfImagesLeftToShow < > > numberOfImagesToDisplay) { > > first += (numberOfImagesToDisplay - > > numberOfImagesLeftToShow); > > } > > > var d = 0; > > for (var i = first; i <= last; i++) { > > > if (d != undefined) { > > // add data using index of the array > > returned by JSON (which starts at 0) > > carousel.add(i, decode(data[d].ImageTag)); > > } > > > // set to last ProductID showing in Carousel > > if (i == last) { lastProductID = parseFloat > > (data[d].ProductID); } > > > d++; > > } > > } > > ); > > > is this a jQuery bug?!?!?!?!?!!? > > > On Jul 6, 10:29 am, expresso wrote: > > > > I have not been able to get my JCarousel implementation to show the > > > added data in IE 6,7, or 8. It works fine in all other > > > browsers..which is just weird especially when the creator's demos all > > > run fine in IE (http://sorgalla.com/projects/jcarousel/). > > > > I simply added some simple Javascript logic to my own ItemLoadCallback > > > functions and the carousel doesn't load images in IE8/IE7 or even I
[jQuery] Re: JCarousel not rendering added data in IE 6, 7, or 8!!!!!!!!!!!!! Works in all other browsers
Tried this instead. Got no errors and the data painted fine in FireFox. But in IE, it hit my error handler. Again, no idea why in IE it's complaining. I checked that the json returned is definitely valued (obviously it has to be because this data is rendering in FireFox and other browsers) by using the json checker here: http://www.jsonlint.com/ $.ajax({ type: "POST", url: "http://localhost:59396/xxx/CarouselHandler.ashx? action=getproducts&ids=" + ids, data: "{}", contentType: "application/json; charset=utf-8", dataType: "json", success: function(data) { alert(data.length); carousel.size(allProductIDs.length); if (numberOfImagesLeftToShow < numberOfImagesToDisplay) { first += (numberOfImagesToDisplay - numberOfImagesLeftToShow); } var d = 0; for (var i = first; i <= last; i++) { if (d != undefined) { // add data using index of the array returned by JSON (which starts at 0) carousel.add(i, decode(data[d].ImageTag)); } // set to last ProductID showing in Carousel if (i == last) { lastProductID = parseFloat(data [d].ProductID); } d++; } }, error: function() { alert("An error has occurred. Please try again."); } }); so I don't know why IE is complaining and throwing an error when it's working fine in FireFox, Safari, etc.! On Jul 6, 11:18 am, expresso wrote: > I just tested this out with adding an alert(data.length); In FireFox, > the alert comes right up. But in IE 6,7,8, it never hits the alert: > > $.getJSON("http://localhost:59396/xxx/CarouselHandler.ashx? > action=getproducts&ids=" + ids, > function(data) { > alert(data.length); > carousel.size(allProductIDs.length); > > if (numberOfImagesLeftToShow < > numberOfImagesToDisplay) { > first += (numberOfImagesToDisplay - > numberOfImagesLeftToShow); > } > > var d = 0; > for (var i = first; i <= last; i++) { > > if (d != undefined) { > // add data using index of the array > returned by JSON (which starts at 0) > carousel.add(i, decode(data[d].ImageTag)); > } > > // set to last ProductID showing in Carousel > if (i == last) { lastProductID = parseFloat > (data[d].ProductID); } > > d++; > } > } > ); > > is this a jQuery bug?!?!?!?!?!!? > > On Jul 6, 10:29 am, expresso wrote: > > > I have not been able to get my JCarousel implementation to show the > > added data in IE 6,7, or 8. It works fine in all other > > browsers..which is just weird especially when the creator's demos all > > run fine in IE (http://sorgalla.com/projects/jcarousel/). > > > I simply added some simple Javascript logic to my own ItemLoadCallback > > functions and the carousel doesn't load images in IE8/IE7 or even IE6 > > at all when it's fine in all other browsers. > > > I have valid JSON coming back and it's working fine in FireFox, etc. > > otherwise I know I'd have a data parse issue. > > > Below is part of my itemLoadCallback method that gets the data and > > adds it to the Carousel... which again I say my code here works fine > > in all other browsers except IE. I even took a look at the s > > produced using firebug and it's definitely valid HTML that I'm seeing > > it render in FireFox. > > > #mycarousel .jcarousel-item-placeholder { > > background: transparent url(../images/carousel/ajax-loader.gif) > > 50% 50% no-repeat; > > > } > > > The gif above shows before the data is added (just like his example > > here:http://sorgalla.com/projects/jcarousel/examples/dynamic_flickr_api.html) > > but is never replaced by the data I add in my itemLoadCallback in > > IE! > > > If I have not changed how your carousel.js works, why would I have any > > trouble with IE whatsoever if the examples on your site are running > > fine in IE? > > > function mycarousel_itemAddCallback(carousel, first, last) { > >
[jQuery] Re: JCarousel not rendering added data in IE 6, 7, or 8!!!!!!!!!!!!! Works in all other browsers
I just tested this out with adding an alert(data.length); In FireFox, the alert comes right up. But in IE 6,7,8, it never hits the alert: $.getJSON("http://localhost:59396/xxx/CarouselHandler.ashx? action=getproducts&ids=" + ids, function(data) { alert(data.length); carousel.size(allProductIDs.length); if (numberOfImagesLeftToShow < numberOfImagesToDisplay) { first += (numberOfImagesToDisplay - numberOfImagesLeftToShow); } var d = 0; for (var i = first; i <= last; i++) { if (d != undefined) { // add data using index of the array returned by JSON (which starts at 0) carousel.add(i, decode(data[d].ImageTag)); } // set to last ProductID showing in Carousel if (i == last) { lastProductID = parseFloat (data[d].ProductID); } d++; } } ); is this a jQuery bug?!?!?!?!?!!? On Jul 6, 10:29 am, expresso wrote: > I have not been able to get my JCarousel implementation to show the > added data in IE 6,7, or 8. It works fine in all other > browsers..which is just weird especially when the creator's demos all > run fine in IE (http://sorgalla.com/projects/jcarousel/). > > I simply added some simple Javascript logic to my own ItemLoadCallback > functions and the carousel doesn't load images in IE8/IE7 or even IE6 > at all when it's fine in all other browsers. > > I have valid JSON coming back and it's working fine in FireFox, etc. > otherwise I know I'd have a data parse issue. > > Below is part of my itemLoadCallback method that gets the data and > adds it to the Carousel... which again I say my code here works fine > in all other browsers except IE. I even took a look at the s > produced using firebug and it's definitely valid HTML that I'm seeing > it render in FireFox. > > #mycarousel .jcarousel-item-placeholder { > background: transparent url(../images/carousel/ajax-loader.gif) > 50% 50% no-repeat; > > } > > The gif above shows before the data is added (just like his example > here:http://sorgalla.com/projects/jcarousel/examples/dynamic_flickr_api.html) > but is never replaced by the data I add in my itemLoadCallback in > IE! > > If I have not changed how your carousel.js works, why would I have any > trouble with IE whatsoever if the examples on your site are running > fine in IE? > > function mycarousel_itemAddCallback(carousel, first, last) { > // grab product information > if (ids != 0) { > $.getJSON("http://xxx/xxx/CarouselHandler.ashx? > action=getproducts&ids=" + ids, > function(data) { > > carousel.size(allProductIDs.length); > > if (numberOfImagesLeftToShow < > numberOfImagesToDisplay) { > first += (numberOfImagesToDisplay - > numberOfImagesLeftToShow); > } > > var d = 0; > for (var i = first; i <= last; i++) { > > if (d != undefined) { > // add data using index of the array > returned by JSON (which starts at 0) > carousel.add(i, decode(data[d].ImageTag)); > } > > // set to last ProductID showing in Carousel > if (i == last) { lastProductID = parseFloat > (data[d].ProductID); } > > d++; > } > } > ); > } > }; > > I don't have a live server to show you this, I'm in dev right now > testing this out before we try to roll it live. Obviously I'm stumped > here on the IE issue pertaining to my implementation and I don't see > myself doing anything strange that would cause this not to run in IE! > > I'm desperate for some help on this. I cannot get a hold of Jan, the > creator.
[jQuery] Re: getJSON callback? does not work with querystring param
Adding a "&jsoncallback=?" or "&callback=?" got rid of the Access to restricted URI denied" code: "1012 but I get no data showing in my plug-in when adding either of those querystring params to my url. So I don't get it. I thought that it's supposed to automatically replace ? with function(data) in my case?? Do I need to send something back in the response or something?? I ask because certain APIs such as yahoo require an _ in front. But so does this mean I also need to supply something in my json response? I thought all you need to do is just add the callback param in your request. On Jul 6, 9:44 am, expresso wrote: > This works fine: > > $.getJSON("http://localhost:59396/xxxWeb/ > CarouselHandler.ashx?action=getproducts&ids=" + ids, > function(data) { > > carousel.size(allProductIDs.length); > > if (numberOfImagesLeftToShow < > numberOfImagesToDisplay) { > first += (numberOfImagesToDisplay - > numberOfImagesLeftToShow); > } > > var d = 0; > for (var i = first; i <= last; i++) { > > if (d != undefined) { > // add data using index of the array > returned by JSON (which starts at 0) > carousel.add(i, decode(data[d].ImageTag)); > } > > // set to last ProductID showing in Carousel > if (i == last) { lastProductID = parseFloat > (data[d].ProductID); } > > d++; > } > } > ); > > This does not work, I get no pictures rendered after trying to add the > &format=json&jsoncallback=? : > > $.getJSON("http://localhost:59396/xxxWeb/ > CarouselHandler.ashx?action=getproducts&ids=" + ids + > "&format=json&jsoncallback=?", > function(data) { > > carousel.size(allProductIDs.length); > > if (numberOfImagesLeftToShow < > numberOfImagesToDisplay) { > first += (numberOfImagesToDisplay - > numberOfImagesLeftToShow); > } > > var d = 0; > for (var i = first; i <= last; i++) { > > if (d != undefined) { > // add data using index of the array > returned by JSON (which starts at 0) > carousel.add(i, decode(data[d].ImageTag)); > } > > // set to last ProductID showing in Carousel > if (i == last) { lastProductID = parseFloat > (data[d].ProductID); } > > d++; > } > } > ); > > Same for here, calling to our dev server. > > $.getJSON("http://xxxdev/xxx/CarouselHandler.ashx? > action=getproducts&ids=" + ids + "&format=json&jsoncallback=?", > function(data) { > > No idea why. No errors, nothing.
[jQuery] JCarousel not rendering added data in IE 6, 7, or 8!!!!!!!!!!!!! Works in all other browsers
I have not been able to get my JCarousel implementation to show the added data in IE 6,7, or 8. It works fine in all other browsers..which is just weird especially when the creator's demos all run fine in IE (http://sorgalla.com/projects/jcarousel/). I simply added some simple Javascript logic to my own ItemLoadCallback functions and the carousel doesn't load images in IE8/IE7 or even IE6 at all when it's fine in all other browsers. I have valid JSON coming back and it's working fine in FireFox, etc. otherwise I know I'd have a data parse issue. Below is part of my itemLoadCallback method that gets the data and adds it to the Carousel... which again I say my code here works fine in all other browsers except IE. I even took a look at the s produced using firebug and it's definitely valid HTML that I'm seeing it render in FireFox. #mycarousel .jcarousel-item-placeholder { background: transparent url(../images/carousel/ajax-loader.gif) 50% 50% no-repeat; } The gif above shows before the data is added (just like his example here: http://sorgalla.com/projects/jcarousel/examples/dynamic_flickr_api.html) but is never replaced by the data I add in my itemLoadCallback in IE! If I have not changed how your carousel.js works, why would I have any trouble with IE whatsoever if the examples on your site are running fine in IE? function mycarousel_itemAddCallback(carousel, first, last) { // grab product information if (ids != 0) { $.getJSON("http://xxx/xxx/CarouselHandler.ashx? action=getproducts&ids=" + ids, function(data) { carousel.size(allProductIDs.length); if (numberOfImagesLeftToShow < numberOfImagesToDisplay) { first += (numberOfImagesToDisplay - numberOfImagesLeftToShow); } var d = 0; for (var i = first; i <= last; i++) { if (d != undefined) { // add data using index of the array returned by JSON (which starts at 0) carousel.add(i, decode(data[d].ImageTag)); } // set to last ProductID showing in Carousel if (i == last) { lastProductID = parseFloat (data[d].ProductID); } d++; } } ); } }; I don't have a live server to show you this, I'm in dev right now testing this out before we try to roll it live. Obviously I'm stumped here on the IE issue pertaining to my implementation and I don't see myself doing anything strange that would cause this not to run in IE! I'm desperate for some help on this. I cannot get a hold of Jan, the creator.
[jQuery] Re: getJSON callback? does not work with querystring param
Adding a "&jsoncallback=?" or "&callback=?" got rid of the Access to restricted URI denied" code: "1012 but I get no data showing in my plug-in when adding either of those querystring params to my url. So I don't get it. I thought that it's supposed to automatically replace ? with function(data) in my case?? Do I need to send something back in the response or something?? I ask because certain APIs such as yahoo require an _ in front. But so does this mean I also need to supply something in my json response? I thought all you need to do is just add the callback param in your request. On Jul 6, 9:44 am, expresso wrote: > This works fine: > > $.getJSON("http://localhost:59396/xxxWeb/ > CarouselHandler.ashx?action=getproducts&ids=" + ids, > function(data) { > > carousel.size(allProductIDs.length); > > if (numberOfImagesLeftToShow < > numberOfImagesToDisplay) { > first += (numberOfImagesToDisplay - > numberOfImagesLeftToShow); > } > > var d = 0; > for (var i = first; i <= last; i++) { > > if (d != undefined) { > // add data using index of the array > returned by JSON (which starts at 0) > carousel.add(i, decode(data[d].ImageTag)); > } > > // set to last ProductID showing in Carousel > if (i == last) { lastProductID = parseFloat > (data[d].ProductID); } > > d++; > } > } > ); > > This does not work, I get no pictures rendered after trying to add the > &format=json&jsoncallback=? : > > $.getJSON("http://localhost:59396/xxxWeb/ > CarouselHandler.ashx?action=getproducts&ids=" + ids + > "&format=json&jsoncallback=?", > function(data) { > > carousel.size(allProductIDs.length); > > if (numberOfImagesLeftToShow < > numberOfImagesToDisplay) { > first += (numberOfImagesToDisplay - > numberOfImagesLeftToShow); > } > > var d = 0; > for (var i = first; i <= last; i++) { > > if (d != undefined) { > // add data using index of the array > returned by JSON (which starts at 0) > carousel.add(i, decode(data[d].ImageTag)); > } > > // set to last ProductID showing in Carousel > if (i == last) { lastProductID = parseFloat > (data[d].ProductID); } > > d++; > } > } > ); > > Same for here, calling to our dev server. > > $.getJSON("http://xxxdev/xxx/CarouselHandler.ashx? > action=getproducts&ids=" + ids + "&format=json&jsoncallback=?", > function(data) { > > No idea why. No errors, nothing.
[jQuery] getJSON callback? does not work with querystring param
This works fine: $.getJSON("http://localhost:59396/xxxWeb/ CarouselHandler.ashx?action=getproducts&ids=" + ids, function(data) { carousel.size(allProductIDs.length); if (numberOfImagesLeftToShow < numberOfImagesToDisplay) { first += (numberOfImagesToDisplay - numberOfImagesLeftToShow); } var d = 0; for (var i = first; i <= last; i++) { if (d != undefined) { // add data using index of the array returned by JSON (which starts at 0) carousel.add(i, decode(data[d].ImageTag)); } // set to last ProductID showing in Carousel if (i == last) { lastProductID = parseFloat (data[d].ProductID); } d++; } } ); This does not work, I get no pictures rendered after trying to add the &format=json&jsoncallback=? : $.getJSON("http://localhost:59396/xxxWeb/ CarouselHandler.ashx?action=getproducts&ids=" + ids + "&format=json&jsoncallback=?", function(data) { carousel.size(allProductIDs.length); if (numberOfImagesLeftToShow < numberOfImagesToDisplay) { first += (numberOfImagesToDisplay - numberOfImagesLeftToShow); } var d = 0; for (var i = first; i <= last; i++) { if (d != undefined) { // add data using index of the array returned by JSON (which starts at 0) carousel.add(i, decode(data[d].ImageTag)); } // set to last ProductID showing in Carousel if (i == last) { lastProductID = parseFloat (data[d].ProductID); } d++; } } ); Same for here, calling to our dev server. $.getJSON("http://xxxdev/xxx/CarouselHandler.ashx? action=getproducts&ids=" + ids + "&format=json&jsoncallback=?", function(data) { No idea why. No errors, nothing.
[jQuery] Re: JCarousel not rendering images in IE
The examples seem to work fine on http://sorgalla.com/projects/jcarousel/ but for some reason my implementation shows the placeholders but no images are rendered. I looked at the mark-up and the html is fine. It works in FireFox, Safari, and Chrome just fine and so it's weird that my implementation would be any different in rendering in IE 8 especially when I haven't even touched the source nor the .css except for making the carousel wider which has nothing to do with this problem. Even when I take out the style sheet changes I made (Which are only 2) and use the same base style sheet they are using that has worked in IE 8 with their examples, mine still does not render the images. here's example source. But I don't think the source is the issue, it might be something in the carousel .js. I don't get it. http://www.xxx.com/image/256.jpg"/> $20.95 On Jul 2, 12:12 am, expresso wrote: > Has anyone had a problem where JCarousel does not render images in IE > 8 but works fine in FF?
[jQuery] Remove an
I want to remove the following and any after that which have the class jcarousel-item-placeholder in them I'm not sure how to go about this.
[jQuery] Re: Replace div with another div
Richard, I have a reason for wanting to do this other than the default behavior. Anyhow, I got this working without having to do any of this in the end! On Jul 2, 7:59 pm, Ricardo wrote: > Are you sure you need to do that? The button is disabled when you get > to the first/last item, if you add new items following the documented > ways it is completely > unnecessary:http://sorgalla.com/projects/jcarousel/#Dynamic-Content-Loading > > -- ricardo > > On Jul 2, 11:45 am, expresso wrote: > > > I want to replace it with which is what the carousel code replaces it > > with anyway when the button IS enabled..I just viewed the source to > > see that. > > > On Jul 2, 9:42 am, expresso wrote: > > > > Charlie, I just plan on using an ID or class that's already in that > > > div to reference it. For example: > > > > > disabled="true"/> > > > > why couldn't I do something like $(".jcarousel-prev jcarousel-prev- > > > horizontal jcarousel-prev- > > > disabled jcarousel-prev-disabled-horizontal").replaceWith(' > > class="jcarousel-prev jcarousel-prev-horizontal" style="display: > > > block;" disabled="false"/>'); > > > > On Jul 2, 9:04 am, Charlie wrote: > > > > > one problem you'll likely run into completely replacing that div > > > > even though the html and classes will fit in with the carousel you > > > > could have problems due to no events attached to new div from document > > > > ready > > > > Giovanni Battista Lenoci wrote: > > > > expresso ha scritto:I'm trying to figure out how I'd explicitely change > > > > out a div. > > > > Lets say this div is in the page. I guess first I'd have to verify if > > > > it's in the page: > > > > > > > disabled="true"/> > > > > And if it is, I want to remove it and add this in the same place: > > > > > > > > I have not a clue how to do this. > > > > If give a unique id to the div (or you have a rule to get it, for > > > > example $('#mycontainer > div')); > > > > You can do: > > > > $('#id').replaceWith('my newmarkup!'); > > > > If the selector doesn't return nothing then nothing will be replaced. > > > > Bye
[jQuery] Re: Changed attributes on . Now I get no event
one more time: jQuery(document).ready(function() { $('#mycarousel').jcarousel({ itemLoadCallback: mycarousel_itemLoadCallback, buttonNextCallback: mycarousel_nextItemCallback }); }); On Jul 2, 3:23 pm, expresso wrote: > for the JCarousel (http://sorgalla.com/projects/jcarousel/), I > attempted to keep my next button enabled. Currently, it only becomes > enabled if you have more items (images) added to the carousel than > it's currently showing (visible when you look at the carousel). > > For us, we want to be be abe to control this because I don't want to > have to add an extra item(s) just to get the button to be clickable so > that we can load the next set of images. > > So I tried this: > > jQuery(document).ready(function() > { > $('#mycarousel').jcarousel({ > itemLoadCallback: mycarousel_itemLoadCallback > }); > }); > > function mycarousel_nextItemCallback() > { > jQuery(".jcarousel-next").attr({ disabled: "false" }); > jQuery(".jcarousel-next").removeClass("jcarousel-next- > disabled"); > jQuery(".jcarousel-next").removeClass("jcarousel-next-disabled- > horizontal"); > > jQuery('#jcarousel-next').bind('click', function() { > carousel.next(); > return false; > }); > }; > > everything seems to work out fine. Except when I click on the next > button that appears enabled on first load (even if I did not specify a > size > than what is showing), nothing happens. It's like it doesn't > know that div or something exists.
[jQuery] Re: Changed attributes on . Now I get no event
posting error, should be itemLoadCallback: mycarousel_nextItemLoadCallback which is what I have currently. On Jul 2, 3:23 pm, expresso wrote: > for the JCarousel (http://sorgalla.com/projects/jcarousel/), I > attempted to keep my next button enabled. Currently, it only becomes > enabled if you have more items (images) added to the carousel than > it's currently showing (visible when you look at the carousel). > > For us, we want to be be abe to control this because I don't want to > have to add an extra item(s) just to get the button to be clickable so > that we can load the next set of images. > > So I tried this: > > jQuery(document).ready(function() > { > $('#mycarousel').jcarousel({ > itemLoadCallback: mycarousel_itemLoadCallback > }); > }); > > function mycarousel_nextItemCallback() > { > jQuery(".jcarousel-next").attr({ disabled: "false" }); > jQuery(".jcarousel-next").removeClass("jcarousel-next- > disabled"); > jQuery(".jcarousel-next").removeClass("jcarousel-next-disabled- > horizontal"); > > jQuery('#jcarousel-next').bind('click', function() { > carousel.next(); > return false; > }); > }; > > everything seems to work out fine. Except when I click on the next > button that appears enabled on first load (even if I did not specify a > size > than what is showing), nothing happens. It's like it doesn't > know that div or something exists.
[jQuery] Changed attributes on . Now I get no event
for the JCarousel (http://sorgalla.com/projects/jcarousel/), I attempted to keep my next button enabled. Currently, it only becomes enabled if you have more items (images) added to the carousel than it's currently showing (visible when you look at the carousel). For us, we want to be be abe to control this because I don't want to have to add an extra item(s) just to get the button to be clickable so that we can load the next set of images. So I tried this: jQuery(document).ready(function() { $('#mycarousel').jcarousel({ itemLoadCallback: mycarousel_itemLoadCallback }); }); function mycarousel_nextItemCallback() { jQuery(".jcarousel-next").attr({ disabled: "false" }); jQuery(".jcarousel-next").removeClass("jcarousel-next- disabled"); jQuery(".jcarousel-next").removeClass("jcarousel-next-disabled- horizontal"); jQuery('#jcarousel-next').bind('click', function() { carousel.next(); return false; }); }; everything seems to work out fine. Except when I click on the next button that appears enabled on first load (even if I did not specify a size > than what is showing), nothing happens. It's like it doesn't know that div or something exists.
[jQuery] Re: var $varname
Ah! makes sense. Because a lot of times I can't distinguish between something in plain JavaScript and something that is a jQuery object. Good to know. I'll make sure I do the same once I start really getting on board with the jQuery syntax. It's a VERY good practice on variables and so I wonder is there a "Best Practices For jQuery" on the jquery site that I'm missing? that would be awesome if there was. If not, how about someone start one and have it be either moderated or have the best practices come straight from the jQuery team. Accept request to put in a new standard and have the team approve/disapprove. this kind of stuff would help people like me tremendously to help me ramp up quicker for newbies like me who wonder wtf is going on when things like this are in place such as the example question I just proposed. On Jul 2, 1:57 pm, James wrote: > Yep, as MorningZ said, it's a good practice to use it to differentiate > those that are storing a jQuery object. > > $myDiv = $("#div_1"); > $myDiv.hide(); > > It's easier to tell that you're working with a jQuery object. > Otherwise, it's just a regular variable. > > On Jul 2, 8:51 am, MorningZ wrote: > > > "obviously I think 2nd is a jQuery variable? If that's the case why > > should I care and where is the docs on that? " > > > It just seems to be common practice by a lot of jQuery people smarter > > than us to signify it's a jQuery object stored in that variable, it > > has zero to do with jQuery itself per se > > > On Jul 2, 2:29 pm, Michael Lawson wrote: > > > > Just to addon to what Waseem here has said: > > > > When you are using the default jQuery library, the variable $ is set to > > > the > > > value of jQuery, which creates a shortcut for you so that you don't have > > > to > > > keep typing jQuery everytime you want to access it, you can just type $. > > > > cheers > > > > Michael Lawson > > > Development Lead, Global Solutions, ibm.com > > > Phone: 1-276-206-8393 > > > E-mail: mjlaw...@us.ibm.com > > > > 'Examine my teachings critically, as a gold assayer would test gold. If > > > you > > > find they make sense, conform to your experience, and don't harm yourself > > > or others, only then should you accept them.' > > > > From: waseem sabjee > > > > > > > To: jquery-en@googlegroups.com > > > > > > > Date: 07/02/2009 02:26 PM > > > > > > > Subject: [jQuery] Re: var $varname > > > > > > > its not really a jquery variable > > > > in standard js you can say > > > var $myvar = "hello"; > > > and > > > var myvar = "hello"; > > > > both will work the same > > > > you can access jquery using either the $ or JQuery > > > like > > > > $("#myid").hide(); > > > JQuery("#myid").hide(); > > > > in a line of the JQuery library code you would see something like > > > > JQuery = window.JQuery = window.$ ... > > > > your could say its like short hand code > > > > instead of saying JQuery("") al the time you can just say $("") > > > > On Thu, Jul 2, 2009 at 8:18 PM, expresso wrote: > > > > what's the difference between: > > > > var varname > > > > var $varname > > > > obviously I think 2nd is a jQuery variable? If that's the case why > > > should I care and where is the docs on that? > > > > graycol.gif > > > < 1KViewDownload > > > > ecblank.gif > > > < 1KViewDownload
[jQuery] Re: var $varname
I understand the shortcut. But in this example, it appears to just be a variable here. So why did they even bother putting a $ in front of it! ?? On Jul 2, 1:57 pm, James wrote: > Yep, as MorningZ said, it's a good practice to use it to differentiate > those that are storing a jQuery object. > > $myDiv = $("#div_1"); > $myDiv.hide(); > > It's easier to tell that you're working with a jQuery object. > Otherwise, it's just a regular variable. > > On Jul 2, 8:51 am, MorningZ wrote: > > > "obviously I think 2nd is a jQuery variable? If that's the case why > > should I care and where is the docs on that? " > > > It just seems to be common practice by a lot of jQuery people smarter > > than us to signify it's a jQuery object stored in that variable, it > > has zero to do with jQuery itself per se > > > On Jul 2, 2:29 pm, Michael Lawson wrote: > > > > Just to addon to what Waseem here has said: > > > > When you are using the default jQuery library, the variable $ is set to > > > the > > > value of jQuery, which creates a shortcut for you so that you don't have > > > to > > > keep typing jQuery everytime you want to access it, you can just type $. > > > > cheers > > > > Michael Lawson > > > Development Lead, Global Solutions, ibm.com > > > Phone: 1-276-206-8393 > > > E-mail: mjlaw...@us.ibm.com > > > > 'Examine my teachings critically, as a gold assayer would test gold. If > > > you > > > find they make sense, conform to your experience, and don't harm yourself > > > or others, only then should you accept them.' > > > > From: waseem sabjee > > > > > > > To: jquery-en@googlegroups.com > > > > > > > Date: 07/02/2009 02:26 PM > > > > > > > Subject: [jQuery] Re: var $varname > > > > > > > its not really a jquery variable > > > > in standard js you can say > > > var $myvar = "hello"; > > > and > > > var myvar = "hello"; > > > > both will work the same > > > > you can access jquery using either the $ or JQuery > > > like > > > > $("#myid").hide(); > > > JQuery("#myid").hide(); > > > > in a line of the JQuery library code you would see something like > > > > JQuery = window.JQuery = window.$ ... > > > > your could say its like short hand code > > > > instead of saying JQuery("") al the time you can just say $("") > > > > On Thu, Jul 2, 2009 at 8:18 PM, expresso wrote: > > > > what's the difference between: > > > > var varname > > > > var $varname > > > > obviously I think 2nd is a jQuery variable? If that's the case why > > > should I care and where is the docs on that? > > > > graycol.gif > > > < 1KViewDownload > > > > ecblank.gif > > > < 1KViewDownload
[jQuery] var $varname
what's the difference between: var varname var $varname obviously I think 2nd is a jQuery variable? If that's the case why should I care and where is the docs on that?
[jQuery] Re: Question on : syntax
what is meant by a namespace. I view namespace as like in .NET classes, is this the same concept? On Jul 2, 1:10 pm, expresso wrote: > Thanks a lot. The second response really helped me as I'm not so > versed in hard core JavaScript. Obviously not being that well versed > in it is hindering my ability to understand plug-in code, ability to > distinguish between standard JavaScript notation/features vs. jQuery > in the same file, and ability to understand jQuery a bit also. > > migrane every day until I get this stuff down, not as simply as > everyone says. Yea jQuery is simple once you are a master at > JavaScript and master of the jQuery language! I love that claim. > > On Jul 2, 1:00 pm, waseem sabjee wrote: > > > lets go back to basic JavaScript. > > take this example > > > var display = function() { // create namespace display > > > return { > > > hide : function(o) { // add function hide to namepsace > > var obj = document.getElementById(o); > > if(obj.style.display != 'none') { > > obj.style.display = 'none' > > > } > > }, > > > show : function(o) { // add function show to namespace > > var obj = document.getElementById(o); > > if(obj.style.display = 'none') { > > obj.style.display = 'block' > > > } > > } > > }; > > }(); > > > function init() { > > display.hide("mydiv"); > > setTimeout("display.show('mydiv'), 1000);} > > > window.onload = init; > > > it is a more object orientated way of scripting > > > as you can see i created my own namespace called display > > then i assigned two function to it > > display.hide > > and > > display.show > > > so you can say your are creating your own namespae with it's own set of > > functions. > > the cool thing is if i create a namespace that controls sideshow behavior i > > can reuse my display namespace for the hide show transitions. > > > On Thu, Jul 2, 2009 at 7:08 PM, expresso wrote: > > > > I have yet another syntax question. > > > > I know that : can be used for specifying things like filters, but what > > > does it do in this case: > > > > $jc.fn.extend({ > > > > setup: function() { > > > this.first = null; > > > this.last = null; > > > this.prevFirst = null; > > > this.prevLast = null; > > > this.animating = false; > > > this.timer = null; > > > this.tail = null; > > > this.inTail = false; > > > > if (this.locked) > > > return; > > > > this.list.css(this.lt, this.pos(this.options.offset) + > > > 'px'); > > > ...rest of code here > > > }, > > > > so what is the syntax setup: an attribute?
[jQuery] Re: Question on : syntax
Thanks a lot. The second response really helped me as I'm not so versed in hard core JavaScript. Obviously not being that well versed in it is hindering my ability to understand plug-in code, ability to distinguish between standard JavaScript notation/features vs. jQuery in the same file, and ability to understand jQuery a bit also. migrane every day until I get this stuff down, not as simply as everyone says. Yea jQuery is simple once you are a master at JavaScript and master of the jQuery language! I love that claim. On Jul 2, 1:00 pm, waseem sabjee wrote: > lets go back to basic JavaScript. > take this example > > var display = function() { // create namespace display > > return { > > hide : function(o) { // add function hide to namepsace > var obj = document.getElementById(o); > if(obj.style.display != 'none') { > obj.style.display = 'none' > > } > }, > > show : function(o) { // add function show to namespace > var obj = document.getElementById(o); > if(obj.style.display = 'none') { > obj.style.display = 'block' > > } > } > }; > }(); > > function init() { > display.hide("mydiv"); > setTimeout("display.show('mydiv'), 1000);} > > window.onload = init; > > it is a more object orientated way of scripting > > as you can see i created my own namespace called display > then i assigned two function to it > display.hide > and > display.show > > so you can say your are creating your own namespae with it's own set of > functions. > the cool thing is if i create a namespace that controls sideshow behavior i > can reuse my display namespace for the hide show transitions. > > On Thu, Jul 2, 2009 at 7:08 PM, expresso wrote: > > > I have yet another syntax question. > > > I know that : can be used for specifying things like filters, but what > > does it do in this case: > > > $jc.fn.extend({ > > > setup: function() { > > this.first = null; > > this.last = null; > > this.prevFirst = null; > > this.prevLast = null; > > this.animating = false; > > this.timer = null; > > this.tail = null; > > this.inTail = false; > > > if (this.locked) > > return; > > > this.list.css(this.lt, this.pos(this.options.offset) + > > 'px'); > > ...rest of code here > > }, > > > so what is the syntax setup: an attribute?
[jQuery] Question on : syntax
I have yet another syntax question. I know that : can be used for specifying things like filters, but what does it do in this case: $jc.fn.extend({ setup: function() { this.first = null; this.last = null; this.prevFirst = null; this.prevLast = null; this.animating = false; this.timer = null; this.tail = null; this.inTail= false; if (this.locked) return; this.list.css(this.lt, this.pos(this.options.offset) + 'px'); ...rest of code here }, so what is the syntax setup:an attribute?
[jQuery] 2 different ways of doing the same thing?
Would this not be 2 different ways to do the same thing? $('input:not(:checkbox)); vs. $('input').not(:checkbox);
[jQuery] Re: Syntax Explanation
Thanks. so $jc.fn = $jc.prototype $jc is just the entire object and .fn is just a variable/field that was created somewhere else in the code? On Jul 2, 9:44 am, Michael Lawson wrote: > this notation $.jcarousel means you want to access that field, whether it > be to set it to something else, or read the contents. > this notation in javascript jcarousel: '0.2.3' is setting a key > value pair where jcaraousel is the key and 0.2.3 is the value > > does that make sense? > > cheers > > Michael Lawson > Development Lead, Global Solutions, ibm.com > Phone: 1-276-206-8393 > E-mail: mjlaw...@us.ibm.com > > 'Examine my teachings critically, as a gold assayer would test gold. If you > find they make sense, conform to your experience, and don't harm yourself > or others, only then should you accept them.' > > From: expresso > > > To: "jQuery (English)" > > > Date: 07/02/2009 10:23 AM > > > Subject: [jQuery] Syntax Explanation > > > jQuery right now is still like a foreign language to me. I have > books, etc. but can someone tell me what's going on here: > > // Create shortcut for internal use > var $jc = $.jcarousel; > > $jc.fn = $jc.prototype = { > jcarousel: '0.2.3' > }; > > what is prototype, and what is jcarousel: '0.2.3', is that just > setting some other variable's value? > > graycol.gif > < 1KViewDownload > > ecblank.gif > < 1KViewDownload