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
Nathan,
A long time ago I made a simple proof of concept script on this:
http://www.sunsean.com/Jistory/
~Sean
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
I'm sorry, what was the question?
~Sean
Try: $.fn.cropImage = function() { ... }
Although this may be old syntax.
~Sean
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.
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
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
I ran you code in FireFox and in IE6 and recieved no such error.
~Sean
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
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
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
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
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
I assume $('img').css({width:'100px'}); is not what you want.
Are you asking for something with an image slider.
~Sean
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
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
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]
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
Can you link an example or paste some code?
~Sean
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
Google Calendar has several widgets/gadgets.
~Sean
Nash, do you have an example we can look at?
~Sean
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?
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
201 - 225 of 225 matches
Mail list logo