div.stop().fadeTo(1000, 0);
> } else {
> div.fadeOut(1000);
> }
> });
> $("div.tvbutton").hover(function () {
> $("div.tv").trigger('hover');
>
>
I'm not that good at Prototype at all, but wouldn't this be
equivalent?
setTimeout(function(){
myFunction.apply(this)
} , 1000)
/ Johan
On Jan 5, 3:43 pm, Bruce wrote:
> Is there a jQuery way of doing this Prototype bind?
>
> var func = myFunction;
> setTimeout(func.bind(this), 1000);
>
> T
Hi!
This is a known Internet Explorer bug (and a very annoying one
aswell).
Just adding a background color or image to the container element will
fix this.
/ Johan
On Jan 5, 9:43 am, "Md. Ali Ahsan Rana" wrote:
> I am trying to do it:
>
> $(this).animate({opacity:1},700);
>
> it looks fine in fir
Hi Paul!
This is a case where you really don't even should use Javascript,
unless you're trying to do some fancy animations. Rely entirely on CSS
with a simple css-rule
#thumbs li.selected {
filter:alpha(opacity=50);
opacity:0.50;
}
This will also be much much faster than any other solution
Hi!
There are a number of nice implementations you could use for this.
Example the jQuery trigger. http://docs.jquery.com/Events/trigger
But for now, the simpliest solution is just to add another selector
like this
$('div.example, div.tv').hover( .
/ Johan
On Jan 5, 8:33 pm, Jordan wrote:
>
Hi!
This is due to that the fadeOut function is asynchronous (and that's a
good thing, otherwise the entire browser would freeze while
animating). To solve your problem you could use a callback. That's a
second parameter to the fadeOut method as a anonymous function
http://docs.jquery.com/Effects/f
How do you internally represent your edited data? I didn't read the
entire fonte.js script, but this should probably be solved by a
representing each editable areas as separate objects with different
id's. Then serialize everything to a JSON-object and post it to your
backend where you could save i
I would really recommend the listen plugin for jQuery by Aaron
Flesler. It's an excellent plugin that also fixes the focus/blur bug
in IE6. Have been using it for over two years now (before live() was
implemented), and it also have good support for the dblclick event:
http://plugins.jquery.com/proj
Hi!
I'm not really sure of what you're trying to do, but the main problem
is that you're not passing all selectors to your
flexinInitialiseElement method.
Maybe somethingl like this will help you. It's iterationg through all
dom nodes and passing them to flexinInitialiseElement.
$("*").each(functi
Good abstraction Ricardo. But I wouldn't use trigger like that. It
feels a bit overkill plus that it might hurt performance on the
client.
My approach would be something like this, doing exactly the same +
better performance:
$.fn.showIf = function( show, arg ) {
return this[ show ? 'show' :
Yes!
jQuery support this aswell. It adds every onload/domready event in a
queue.
$(window).load(function(){
// do stuff onload
})
$(window).load(function(){
// do other stuff onload
})
But you should really look into some pattern instead. A relly simple
and good pattern is the "Module Pattern"
Does your entire page validate? No mysterious unclosed divs somewhere?
Johan
On 29 Mar, 18:16, lardlad wrote:
> I am having a problem counting the number of divs inside a container,
>
> var cellCount = $("#cellCont").children().length;
>
> cellCount is coming up undefined in IE6. Any i
1) Your site doesn't validate correct
2) You're using very large images, around 450kb on frontpage =>
causing slowdowns, especially in IE
3) Set an correct hardcoded height/width on the images, either in the
tag directly or width CSS.
4) You seems to be using some kind of filter on the footer imag
I can only guess that you've set the loop-delay too soon, and don't
control if the image have been loaded. That would explain why it looks
better the next time you arrive, since the image will be in the
browsercache.
There's a couple of ways to go around this:
1) Load the cycle plugin onload inst
Something like this maybe
$('div.multiple_options li').each(function(){
var text = $(this).html()
$(this).html( text.replace(/\d+\s+/,'') )
})
But please remove that ugly inside your tags and make them
block elements instead to achieve the same effect.
/ Johan
On 25 Mar, 14:03, 262Rui
Typo error above, "a lot of selectors" should be "a lot of events"
Hi!
If you have a lot of selectors, you should probably use Event
Delegation and wait for the event to bubble instead.
A good example is if you have a huge table and events on every row.
Instead of using $('table a').bind('click', function(){ alert('do
stuff!!') }) , you just bind ONE event on the
t
if (! include ) {
match.push( i );
}
}
});
return this.pushStack( match, arguments );
}
Best regards
Johan Borestad
var loader = $('div.ajaxloader').fadeIn(500)
$('#ajax-placeholder').load('/content_to_load.php', function(){
// This is a callback function
loader.fadeOut(500)
})
Something like that.
The div.ajaxloader is for you to style correctly with css to make it
appear in the middle of the page, or where
Hi, I have a a problem that I don't really know how to take care of.
I want to do something like this
$.fn.myNamespace = {
myVar : 'test'
};
$.fn.myNamespace.myFunction = function(options) {
return this.each(function(){
console.log(this)
});
};
$('div').myNamespace.myFunction()
But
20 matches
Mail list logo