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
s 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
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
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
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
>
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.
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.getElementB
sics 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:
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
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
t; 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 wa
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
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
>>>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
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(){
>
&
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
ablesorter 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
> .
>
ible 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.
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 d
hat 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:
> >
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,
>>>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:
ing 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 pret
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'
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
>>>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 y
>>>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 y
>>>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 y
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
>
tand 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:
&
;) 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
> alm
ading 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 us
or others, only then should you accept them.'
>
> From: expresso
>
>
> To: "jQuery (English)"
>
or others, only then should you accept them.'
>
> From: expresso
>
>
> To: "jQuery (English)"
>
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");
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 &
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
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
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.
r 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:
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: &quo
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:
t; $(".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
t; $(".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
t; $(".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
ill 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
&
ou 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
ou 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
xt 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 i
ing 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
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
gt; 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 th
gt; 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 th
is.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
is.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
>>>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,
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
le 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:
>
le 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:
>
ke
> 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 disab
> > > 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)"
> > >
> > > 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)"
> > >
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 -
&
inal 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?
>
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) {
>
ttonNextCallback != 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
ction() { 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', t
quot;
> > 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 p
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
uot;
> 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, expr
uot;
> 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, expr
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="displ
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" });
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 f
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 a
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
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
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 ho
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(),
> depart
quot;></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, expre
},
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:
!?
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/pro
o 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) {
>
>
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 t
o 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) {
>
>
This works fine:
$.getJSON("http://localhost:59396/xxxWeb/
CarouselHandler.ashx?action=getproducts&ids=" + ids,
function(data) {
carousel.size(allProductIDs.length);
if (numberOfImagesLeftToShow <
numberOfImagesToDisplay) {
mage/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?
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.
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 rep
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 JC
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
> enabl
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 c
> > > var $myvar = "hello";
> > > and
> > > var myvar = "hello";
>
> > > both will work the same
>
> > > you can access jquery using either the $ or JQuery
> > > like
>
> > > $("#myid").hide();
&g
> > >
>
> > > its not really a jquery variable
>
> > > in standard js you can say
> > > var $myvar = "hello";
> > > and
> > > var myvar = "hello";
>
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?
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 i
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 transiti
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;
Would this not be 2 different ways to do the same thing?
$('input:not(:checkbox));
vs.
$('input').not(:checkbox);
, 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
> o
1 - 100 of 195 matches
Mail list logo