[jQuery] Re: Show and Hide DIV

2007-04-26 Thread Sean Catchpole
On 4/26/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: No need to store anything in a variable. That gets murky. Just hide them all via a selection on class and then show the one you want after that. Then you need not remember anything about state. That takes more processing time, and for

[jQuery] Re: Ajax application history

2007-04-26 Thread Sean Catchpole
Nathan, A long time ago I made a simple proof of concept script on this: http://www.sunsean.com/Jistory/ ~Sean

[jQuery] Re: plugins page!!!!

2007-04-25 Thread Sean Catchpole
The new plugin page looks good. This would be an ideal time to put in a rating or digg system. Having the top 5/10 plugins is always helpful. ~Sean

[jQuery] Re: Obsolete xml data islands

2007-04-25 Thread Sean Catchpole
I'm sorry, what was the question? ~Sean

[jQuery] Re: How to make a methode in jQuery

2007-04-24 Thread Sean Catchpole
Try: $.fn.cropImage = function() { ... } Although this may be old syntax. ~Sean

[jQuery] Re: Can it be done? (Modifying plugin parameters at runtime)

2007-04-23 Thread Sean Catchpole
Hello Simon, Yes, your onResize function can change the values of maxWidth. Here is an example: $('#resizeMe').Resizable( { minWidth: 50, minHeight: 50, maxWidth: 400, maxHeight: 400, // etc. etc.

[jQuery] Re: automatic scroll like google calendar

2007-04-23 Thread Sean Catchpole
Javascript has a built in scrollTo(x,y) function. One would only need to get the .offsetTop of the element and viola. Ok well perhaps that was over simplified, but at least there's some stuff to point you in the right direction. ~Sean

[jQuery] Re: Arbitrary Number of Parents

2007-04-23 Thread Sean Catchpole
Kim, I think you are right. $(this).parents(div.foo) should work. The following might also work: $(../div.foo,this) But I haven't had time to punch that in myself yet. ~Sean

[jQuery] Re: Show()/Hide() Bug?

2007-04-23 Thread Sean Catchpole
I ran you code in FireFox and in IE6 and recieved no such error. ~Sean

[jQuery] Re: What is wrong with this code

2007-04-20 Thread Sean Catchpole
jQuery(item_content).filter(#contentpane .contentpane p, :first); Filter removes those items from your search. Perhaps you want to use find instead. Try the following code: jQuery.get(item_link,function(item_content){ var new_content =jQuery(#contentpane .contentpane

[jQuery] Re: Is there an image cropping plugin?

2007-04-20 Thread Sean Catchpole
I don't think there is a crop plugin, but there is an ImagePan (http://motherrussia.polyester.se/jquery/panview/) plugin that you might find usefull. ~Sean

[jQuery] Re: ajax Error

2007-04-20 Thread Sean Catchpole
Hi Simon, I'd recommend using http://jquery.com/api/ and firebug to help you debug. You're function looks ok, but I think error is an object that contains lots of data. Check out $.ajaxError at the api I linked. Let me know if you have more questions. ~Sean

[jQuery] Re: What is wrong with this code

2007-04-20 Thread Sean Catchpole
Can you post some sample html that you're working with? It's a little hard to work blind. Filter would remove your search from the results, find would leave on your search in the results. apples oranges bananas filter oranges would leave: apples and bananas find oranges would leave: oranges

[jQuery] Re: What is wrong with this code

2007-04-20 Thread Sean Catchpole
You're absolutely right. I think at some point in jQuery's past this was flipped, but I'm glad to know that the filter functions works as intended now. Sorry for the confusion. =( ~Sean

[jQuery] Re: Image dynamic resizing

2007-04-20 Thread Sean Catchpole
I assume $('img').css({width:'100px'}); is not what you want. Are you asking for something with an image slider. ~Sean

[jQuery] Re: Library showdowns

2007-04-18 Thread Sean Catchpole
On 4/18/07, Christof Donat [EMAIL PROTECTED] wrote: Currying doesn't give you float function(float a) { return mycallback(a,42); } Of course it does, you just have to clever. let us say you have this function: divide = function(a){ return function(b){ return a/b; }} If you want to create

[jQuery] Re: Spam on this list

2007-04-18 Thread Sean Catchpole
Spam is not the only problem I'm receiving. Sometimes I don't get the original message sent to me via email and then I only get someone's reply to it. Google needs to step up their game, or we should find another host. ~Sean

[jQuery] Re: Library showdowns

2007-04-17 Thread Sean Catchpole
Actually, I think this is quite easy in Javascript. If you look at the code listings in the Wikipedia article [1], Javascript has more succinct code than anything but scheme, and scheme's advantage mostly has to do with it's simpler syntax for functions. -- Scott [1]

[jQuery] Re: Reducing this code.

2007-04-17 Thread Sean Catchpole
Also, what's Sean talking about when he says: lets say the focus function gets called twice (through malicious javascript or a quirky browser) then the toggle state of the class will be off. But in general I prefer your implementation. Is this something i need to worry about? Is this

[jQuery] Re: New To List - Question about JModal - DNR

2007-04-17 Thread Sean Catchpole
Can you link an example or paste some code? ~Sean

[jQuery] Re: Altering jQuery (packed) to work in greasemonkey

2007-04-17 Thread Sean Catchpole
Yansky, I was going to wait for the next version of jQuery, but I'll try to get a working version of jQuery for userscripts again. ~Sean

[jQuery] Re: Calendar / Schedule Component.

2007-04-16 Thread Sean Catchpole
Google Calendar has several widgets/gadgets. ~Sean

[jQuery] Re: Bug : IE + slidetoggle + input radio

2007-04-16 Thread Sean Catchpole
Nash, do you have an example we can look at? ~Sean

[jQuery] Re: Library showdowns

2007-04-16 Thread Sean Catchpole
Jake, Here's a problem that jQuery can't do. It doesn't support Curried Functions. Now that's not really fair because javascript does not support curried functions either. http://en.wikipedia.org/wiki/Curried_function But I can think of a way that one could hack the same effect, can you?

[jQuery] selecting elements containing colons

2007-04-14 Thread Sean Catchpole
I know that jQuery made the decision not to allow selection of elements with colons in them, however it is valid XML. Here is an example piece of code I am getting back from an ajax call: item news:specialFree chicken!/news:special /item Any ideas how I can select the news:special item? ~Sean

<    1   2   3