[jQuery] unsubscribe

2009-07-02 Thread Johan
unsubscribe

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

2009-12-24 Thread johan
od is also 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&

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

2009-12-25 Thread johan
-requests-using-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 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

[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] 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: live event with instant execution

2009-12-25 Thread Johan Borestad
itialiseElement( nodes[i] , false) } Hope this will help you somewhere :) / Johan On 25 Dec, 12:57, "speedpac...@gmail.com" wrote: > Basically execute additional javascript code based on a classname > adding functionality to these elements... > I tried the following, but

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

2009-12-25 Thread Johan Borestad
y.com/project/Listen / Johan On 25 Dec, 02:28, Šime Vidas 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

[jQuery] Re: css editor with jquery

2010-01-02 Thread Johan Borestad
ates the page. 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" wrote: > Very interesting work, Alfredo! > > Rick > > -Original Message-

[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
om/Effects/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 wrote: > er, jeez I'm sorry - i don't

[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, Jor

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

2010-01-05 Thread Johan Borestad
any other solutions. / Johan On Jan 5, 7:50 pm, Paul Collins wrote: > Sorry, the test page:http://paulcollinslondon.com/test/test.html > > 2010/1/5 Paul Collins > > > 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" 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 wrote: > Is there a jQuery way of doing this Prototype bind? > > var func = myFunction; > setTimeout

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

2010-01-06 Thread Johan Borestad
uot;div.tv", so that you don't have to make search 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 wrote: > Thanks for the insight Johan! When I implemented that though, it just > added the hover

[jQuery] Higlight a div on mouseover/mouseout

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

[jQuery] Fix for broken nextUntil

2009-03-25 Thread johan . borestad
t if (! include ) { match.push( i ); } } }); 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
so solves a bug where IE6 doesn't bubble 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=sv&q=event+delegation+javascript&btnG=Google-s%C3%B6kning&meta=&aq

[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 inside your tags and make them block elements instead to achieve the same effect. / Johan On 2

[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 inst

[jQuery] Re: Images shrinking?!?!

2009-03-30 Thread johan . borestad
on the footer 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 sit

[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 wrote: > I am having a problem counting the number of divs inside a container, > >         var cellCount = $("#cellCont").children().length; > > cellCount is coming

[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] Re: code review for short snippet

2009-04-04 Thread johan . borestad
'show' : 'hide' ]( arg ); }; $(document).ready(function(){ $('#edit-profile-country').each(function(){ var value = $(this).val(); $('#state').showIf( value == 'US' ); $('#province').showIf( value == 'CA' )

[jQuery] ajax TreeView recursive open

2008-09-13 Thread Johan Cwiklinski
, but I think that first asked node is not yet loaded when it tries to load the second. I do not know how to wait for the node is properly loaded to load the next one. Maybe is there a better way to do this, I do not know... Any help or hint would be appreciated :) Regards, Johan

[jQuery] Problem with namespacing plugins

2008-02-15 Thread johan . borestad
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

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

2008-02-18 Thread johan . borestad
in the middle of the page, 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 >

[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] Re: :first relative to clicked element

2009-08-21 Thread Carl-Johan Lindqvist
#x27;).click(function() { >                 $(this).nextAll('blockquote:first') >                 .slideToggle('slow') >                 .end() >                 .nextAll('h6:first').slideToggle('slow'); >             }); > > On Aug 21, 3:08 am, Car