[jQuery] Re: Add a second trigger in this function

2010-01-06 Thread Johan Borestad
for the div every time (unless you're using ajax ofcourse), but this should work now at last :-) / Johan On Jan 6, 9:42 pm, Jordan jscottphil...@gmail.com wrote: Thanks for the insight Johan! When I implemented that though, it just added the hover cross fade to the other div as well. I am looking

[jQuery] Re: removeClass() fires before anything else in a series of functions when I need it to fire last.

2010-01-05 Thread Johan Borestad
/fadeOut $(#notice).fadeOut(800, function(){ $(#notice-tab).removeClass('active-notice'); }); The method will now remove the active-notice class afterwards. / Johan On Jan 5, 11:25 pm, Kinsbane kinsb...@gmail.com wrote: er, jeez I'm sorry - i don't know how to format code on Google Groups

[jQuery] Re: Add a second trigger in this function

2010-01-05 Thread Johan Borestad
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

[jQuery] Re: Change opacity of item with class of selected

2010-01-05 Thread Johan Borestad
solutions. / Johan On Jan 5, 7:50 pm, Paul Collins pauldcoll...@gmail.com wrote: Sorry, the test page:http://paulcollinslondon.com/test/test.html 2010/1/5 Paul Collins pauldcoll...@gmail.com Thanks very much for your help Brian. That works, but I think the problem may go deeper than I thought

[jQuery] Re: Jquery color animation problem

2010-01-05 Thread Johan Borestad
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 ranacser...@gmail.com wrote: I am trying to do it: $(this).animate({opacity:1},700

[jQuery] Re: jQuery Equivalent of Prototype Function.bind

2010-01-05 Thread Johan Borestad
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 brucejin...@gmail.com wrote: Is there a jQuery way of doing this Prototype bind? var func = myFunction; setTimeout(func.bind

[jQuery] Re: css editor with jquery

2010-01-02 Thread Johan Borestad
. This could be solved in a number of ways, but start with reading some posts about json and you'll be on your way. / Johan On Jan 2, 6:28 pm, Rick Faircloth r...@whitestonemedia.com wrote: Very interesting work, Alfredo! Rick -Original Message- From: jquery-en@googlegroups.com

[jQuery] Re: Read/Get Data From Other URL

2009-12-25 Thread johan
-mod_proxy-and-iframes/ You can also use jQuery to fetch JSON from other domains by ajax, but that's another story. / Johan On 25 Dec, 03:46, Pram acep.sudra...@gmail.com wrote: I try use the jquery, but I have a problem. 1. I save jquery.js in the root (examplewww.mysite.com) and in the bottom

[jQuery] Re: live event with instant execution

2009-12-25 Thread Johan Borestad
this will help you somewhere :) / Johan On 25 Dec, 12:57, speedpac...@gmail.com speedpac...@gmail.com wrote: Basically execute additional javascript code based on a classname adding functionality to these elements... I tried the following, but it doesn't seem to be working... jQuery('*').load

[jQuery] Re: Attaching an event to a non-existing element?

2009-12-25 Thread Johan Borestad
/project/Listen / Johan On 25 Dec, 02:28, Šime Vidas sime.vi...@gmail.com wrote: 3. I have set this response as the content of an empty div. That select element appears well, but maybe it doesn't appear as a DOM member, so that's why I can't attach an event handler to it. If you place HTML

[jQuery] Re: how to access elements with index in for-loop

2009-12-24 Thread johan
preferred in this case and can also be written as .css({color : red}) $(#tb tr).not(:first).css(color, red); }) A more semantic way would also be this $(#tb tr).not(:first).addClass(hilighted) and to add the .hilighted class into your css-framework. / Johan On 24 Dec, 04:01, Rick

[jQuery] Re: :first relative to clicked element

2009-08-21 Thread Carl-Johan Lindqvist
('blockquote:first')                 .slideToggle('slow')                 .end()                 .nextAll('h6:first').slideToggle('slow');             }); On Aug 21, 3:08 am, Carl-Johan Lindqvist cj.lindqv...@gmail.com wrote: Hi I'm just learning jQuery and have some troubles

[jQuery] :first relative to clicked element

2009-08-20 Thread Carl-Johan Lindqvist
Hi I'm just learning jQuery and have some troubles with the selectors. I'm using this (found in the basic training file) to show and hide a Blockquote paragraph. $('#content').find('blockquote').hide().end().find('h5').click(function () { $(this).next().next().slideToggle('slow');

[jQuery] unsubscribe

2009-07-02 Thread Johan
unsubscribe

[jQuery] upload file from jquery dialog modal form

2009-06-16 Thread Johan Gunnarson
Does anyone know if it is possible to upload a file from a jquery modal form (http://jqueryui.com/demos/dialog/#modal-form) ? I just need some help with the ajax call. The back-end will be asp with AspUpload that will handle the file upload.

[jQuery] Re: ie6 and ie7 don't load image well when using Cycle plugin

2009-03-30 Thread johan . borestad
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

[jQuery] Re: Images shrinking?!?!

2009-03-30 Thread johan . borestad
images. I found http://www.bonsaibranding.com/riverstone/blank.gif; as a background. Is this some kind of copyprotection you're using. That could also potentially be a problem. Johan Jen skrev: Hi there, I have a couple of image slideshows on my site and in IE occasionally the images appear

[jQuery] Re: Counting Divs (IE6)

2009-03-30 Thread johan . borestad
Does your entire page validate? No mysterious unclosed divs somewhere? Johan On 29 Mar, 18:16, lardlad chris.mloa...@gmail.com wrote: I am having a problem counting the number of divs inside a container,         var cellCount = $(#cellCont).children().length; cellCount is coming up

[jQuery] Re: ie6 and ie7 don't load image well when using Cycle plugin

2009-03-30 Thread johan . borestad
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

[jQuery] Fix for broken nextUntil

2009-03-25 Thread johan . borestad
); } } }); return this.pushStack( match, arguments ); } Best regards Johan Borestad

[jQuery] Re: window unload event too slow - delay when navigate away from the page

2009-03-25 Thread johan . borestad
focus/blur events on some elements is jquery.listen http://plugins.jquery.com/project/Listen Read more about Event delegation from here :) http://www.google.se/search?hl=svq=event+delegation+javascriptbtnG=Google-s%C3%B6kningmeta=aq=0oq= / Johan On 25 Mar, 05:42, Khoa nvkho...@gmail.com wrote: One

[jQuery] Re: window unload event too slow - delay when navigate away from the page

2009-03-25 Thread johan . borestad
Typo error above, a lot of selectors should be a lot of events

[jQuery] Re: HowTo Select first two characters of an li and hide them

2009-03-25 Thread johan . borestad
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 br inside your li tags and make them block elements instead to achieve the same effect. / Johan On 25 Mar, 14:03

[jQuery] Playstation 3

2009-03-23 Thread Johan
jQuery fails on the Playstation 3 browser. Yeah I know the PS3's NetFront browser really sucks at JS but it would be good if the plugin ran so even basic effects would work.

[jQuery] Higlight a div on mouseover/mouseout

2008-11-22 Thread Johan Fredriksson
, small or big is very much appreciated! Cheers Johan

[jQuery] ajax TreeView recursive open

2008-09-13 Thread Johan Cwiklinski
this, I do not know... Any help or hint would be appreciated :) Regards, Johan

[jQuery] Re: Request for a simple basic Ajax call with loading gif

2008-02-18 Thread johan . borestad
, or wherever you wan't it. Just a basic example / Johan On 18 Feb, 09:18, gh0st [EMAIL PROTECTED] wrote: One of the things that is frustrating me in learning jQuery is that there isn't enough examples, case-studies or tutorials on how to use the .ajax call; most web pages I've seen seem