Re: [jQuery] dynamic loading of jquery.js into my web page

2007-01-11 Thread Christof Donat
Hi,

> 2.I've wrapped the content of the standard chili.js file inside this:
>   $using( 'jquery', function() {
>   ...
>   $package( 'chili', {} );
>   } );

Since you don't load chili.js via jsPax you don't necessarily need the 
$package()-call, but it doesn't hurt.

> 3.I've changed the default path inside package.js to:
>   $package.packageBase = 'packages/';

Just a guess: Have you tried to use an absolute URL, or at leas an absolute 
path here? Maybe Firefox interprets that relative to the current HTML page 
and IE interprets it relative to the js. Then IE tries to 
load "packages/packages/jquery.js" where Firefox loads "packages/jquery.js".

> 6.It works in FF, but it does not in IE.

I can not see anything you have done wrong.

If my guess proves to be correct I will change the documentation accordingly 
and think abuout what I can do about it. In all Tests I did, I have used 
absolute paths ("/test/packages/") or even absolute URLs 
("http://www.example.com/test/packages/";), or I have the script that calls 
$using() in the same directory as the HTML or even embedded into the HTML 
(like the testsuite). Therefore I did not come accross that problem.

Christof

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery v1.1 Performance Results

2007-01-11 Thread Aaron Heimlich

On 1/12/07, Felix Geisendörfer <[EMAIL PROTECTED]> wrote:


Anyway, can somebody please confirm that it's not just me (early in the
morning) and this is really the case with his 
page
?



It's not just you. His pages have no doctypes, so they all render in Quirks
Mode.

Now I really don't know, but does the rendering mode also effect DOM

scripting?



If it does, this is certainly the first I've ever heard of it.

--
Aaron Heimlich
Web Developer
[EMAIL PROTECTED]
http://aheimlich.freepgs.com
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] radio buttons, label and double fired functions

2007-01-11 Thread Aaron Heimlich

On 1/12/07, Aaron Heimlich <[EMAIL PROTECTED]> wrote:


And anyway, when you click on a , the element it's associated with
gets "clicked" on as well (except in Safari, IIRC), meaning that clicking on
labels same effect as clicking on the element it's associated with.



Correction: when you click on a  all of it's "click" handlers are
fired *and then* all of the "click" handlers of the element it's associated
with are fired.

So in your case, binding a "click" handler to the  should be
sufficient. Users that click on the radio button will get the "click"
handler, and users that click on the  will get it too (but the
's "click" handlers, if any, will be fired first).

Test page:
http://aheimlich.freepgs.com/tests/javascript/inputs-and-labels.html

--
Aaron Heimlich
Web Developer
[EMAIL PROTECTED]
http://aheimlich.freepgs.com
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery v1.1 Performance Results

2007-01-11 Thread Felix Geisendörfer
Very interesting discussion / development that is going on there, thanks 
for this little update ray.


Now one thing that just confused the heck out of me was that when I hit 
page info on his page (and his test suite) , my FF said is was rendered 
in *quirks mode*! Up until now I've been pretty amazed with the stuff 
he's done (even so it's not jQuery), but I didn't know that he'd even 
handicap himself for a bigger challenge ... ; ). Anyway, can somebody 
please confirm that it's not just me (early in the morning) and this is 
really the case with his page 
? In that case I could drop 
him a little mail so he can fix it.


Now I really don't know, but does the rendering mode also effect DOM 
scripting? In that case his tests could be inaccurate beyond the things 
mentioned by John in the blog post.


-- Felix
--
http://www.thinkingphp.org
http://www.fg-webdesign.de


Rey Bango wrote:
Hi everyone. Jack Slocum, the maker of the YUI-Ext lib, recently posted 
some performance benchmarks that compared his new extension, DOMQuery, 
to several libraries. jQuery was included in the comparison and in his 
tests, jQuery incorrectly appeared to fail or run slower than DomQuery. 
So we saw this an opportunity to present our own test results.


Here is John's posting on the jQuery blog re: this issue:

http://jquery.com/blog/2007/01/11/selector-speeds/

He has also replied to Jack on his blog. If you choose to reply to 
Jack's posting, lets ensure that we remain professional at all times. 
DomQuery is actually incredibly fast but we feel that the results 
weren't consistent with what we've seen and that we have a performance 
edge at this moment.


Rey

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

  
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] radio buttons, label and double fired functions

2007-01-11 Thread Bruce MacKay
Sorry Aaron,  I tested your solution on a duplicate version of the 
code which wasn't being called by the browser when I "tested" 
it.  The function is no longer fired twice when the text is clicked - 
just once.


However, the problem now, of course, is that if a user simply clicks 
on the radio button (and there will be many who do that by default 
given that the label tag is seldom used), the function is not fired at all.


Binding a click function to the radio tag and the label tag 
separately isn't a solution as the id would have to be the same for 
both and that's an invalid approach.


Cheers,

Bruce

At 07:36 p.m. 12/01/2007, you wrote:

Hi Aaron,

Your suggested rearrangement of the a tag does not alter the twin 
firing of the function.  The only way to get a single fire is to 
remove the label tags - and I don't want to do that.


Cheers,

Bruce


At 07:12 p.m. 12/01/2007, you wrote:
On 1/11/07, Bruce MacKay 
<[EMAIL PROTECTED]> wrote:
name='iLTID' value='1' />


Why are you wrapping the  in an ? Shouldn't it be this instead:

for='A'>standard link


And anyway, when you click on a , the element it's 
associated with gets "clicked" on as well (except in Safari, IIRC), 
meaning that clicking on labels same effect as clicking on the 
element it's associated with.


--
Aaron Heimlich
Web Developer
[EMAIL PROTECTED]
http://aheimlich.freepgs.com
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] radio buttons, label and double fired functions

2007-01-11 Thread Bruce MacKay

Hi Aaron,

Your suggested rearrangement of the a tag does not alter the twin 
firing of the function.  The only way to get a single fire is to 
remove the label tags - and I don't want to do that.


Cheers,

Bruce


At 07:12 p.m. 12/01/2007, you wrote:
On 1/11/07, Bruce MacKay 
<[EMAIL PROTECTED]> wrote:
name='iLTID' value='1' />



Why are you wrapping the  in an ? Shouldn't it be this instead:

for='A'>standard link


And anyway, when you click on a , the element it's associated 
with gets "clicked" on as well (except in Safari, IIRC), meaning 
that clicking on labels same effect as clicking on the element it's 
associated with.


--
Aaron Heimlich
Web Developer
[EMAIL PROTECTED]
http://aheimlich.freepgs.com
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] benchmark tool for ajax?

2007-01-11 Thread nkeric
On 1/11/07, Blair McKenzie <[EMAIL PROTECTED]> wrote:
> The latest FireBug extension has JS code profiling in it.

Nice, I'll give it a try!

> As for improving
> sortable's performance, that's come up a lot in the list so you could
> probably find something by looking at the nabble archive. But I think the
> conclusion was that generic sortable/drag-drop is inherently very complex
> and can only be optimised so far. To get further requires tailoring the
> optimizations for each situation.

I'll check that, thanks a lot for your reply!

Regards,

- Eric

-- 
- http://www.aiyo.cn
- http://www.ifaxian.com
- http://groups.google.com/group/nkeric-daily
- http://nkeric.3322.org

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Select third column of the table

2007-01-11 Thread Jacky

Dear all,

If I want to select the 3rd column of the table, (e.g. 3 rows)
$("tr > td:eq(2)") would returns only one .
$("tr").find("td:eq(2)") would returns 3 .

Is that ":eq(2)" is applied to the whole "tr>td" set? Is that correct?

--
Best Regards,
Jacky
網絡暴民 http://jacky.seezone.net
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] radio buttons, label and double fired functions

2007-01-11 Thread Aaron Heimlich

On 1/11/07, Bruce MacKay <[EMAIL PROTECTED]> wrote:






Why are you wrapping the  in an ? Shouldn't it be this instead:

standard link

And anyway, when you click on a , the element it's associated with
gets "clicked" on as well (except in Safari, IIRC), meaning that clicking on
labels same effect as clicking on the element it's associated with.

--
Aaron Heimlich
Web Developer
[EMAIL PROTECTED]
http://aheimlich.freepgs.com
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] radio buttons, label and double fired functions

2007-01-11 Thread Bruce MacKay

Hi folks,

I have a set of radio buttons of the form:

name='iLTID' value='1' />standard link
name='iLTID' value='2' />review link


that is activated by:

$("a.ltype").bind("click",function() {linkType(this.id);});

When I click on any radio button in the set, the function is (as I 
wanted) fired once.  However, if I click on the text (i.e. between 
the label tags), the function is fired twice.


As well as seeking a fix, I'd also like to understand why this happens.

Cheers,

Bruce
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] IDs of all checked checkboxes

2007-01-11 Thread Michael Geary
> > > var a[];
> > > $(':checkbox').each(function() {
> > > if (this.id) a.push(this.id);
> > > });
> > > 
> > > 

> > I get this error:
> > missing ; before statement
> > var a[];
> > 
> > (curse my rudimentary javascript skills!)

> OK... It says there is a missing ; before the statement "var a[];".
> 
> What is before the "var a[];"?

Ah, forget my question. I wasn't paying attention! Should be "var a = [];",
of course.

-Mike


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] IDs of all checked checkboxes

2007-01-11 Thread limodou
> a = new Array()
> $(':checkbox').each(function() {
> if (this.checked) {
> if (this.id) a.push(this.id);
> }
> });
>

a = [] equals a = new Array()

but 'var' is used to limited the variable scope.

-- 
I like python!
UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad
My Blog: http://www.donews.net/limodou

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] IDs of all checked checkboxes

2007-01-11 Thread Mungbeans



Erik Beeson wrote:
> 
> You want:
> 
> var a = [];
> 
> You've been doing too much C and Java :)
> 
> 

I found this works too:

a = new Array()
$(':checkbox').each(function() {
if (this.checked) {
if (this.id) a.push(this.id);
}
});

-- 
View this message in context: 
http://www.nabble.com/IDs-of-all-checked-checkboxes-tf2963342.html#a8292420
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] IDs of all checked checkboxes

2007-01-11 Thread Erik Beeson

You want:

var a = [];

You've been doing too much C and Java :)

--Erik

On 1/11/07, Michael Geary <[EMAIL PROTECTED]> wrote:


> > var a[];
> > $(':checkbox').each(function() {
> > if (this.id) a.push(this.id);
> > });
> >
> >
>
> I get this error:
> missing ; before statement
> var a[];
>
> (curse my rudimentary javascript skills!)

OK... It says there is a missing ; before the statement "var a[];".

What is before the "var a[];"?

-Mike


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] IDs of all checked checkboxes

2007-01-11 Thread Michael Geary
> > var a[];
> > $(':checkbox').each(function() {
> > if (this.id) a.push(this.id);
> > });
> > 
> > 
> 
> I get this error:
> missing ; before statement
> var a[]; 
> 
> (curse my rudimentary javascript skills!)

OK... It says there is a missing ; before the statement "var a[];".

What is before the "var a[];"?

-Mike


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] IDs of all checked checkboxes

2007-01-11 Thread Mungbeans



malsup wrote:
> 
> 
> var a[];
> $(':checkbox').each(function() {
> if (this.id) a.push(this.id);
> });
> 
> 

I get this error:
missing ; before statement
var a[]; 

(curse my rudimentary javascript skills!)
-- 
View this message in context: 
http://www.nabble.com/IDs-of-all-checked-checkboxes-tf2963342.html#a8292226
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Refactoring code from Prototype ( $() type ambiguity)

2007-01-11 Thread Mike Alsup
> At the point of doing document.getElementById(t), you might as well just
> return that since that's all jQuery is going to do anyways.

No, jQuery will validate that the elem is within the given context (if any).


> You might consider something like (only tested on FF2/win32):
>
> jQuery.fn._find = jQuery.fn.find;
> jQuery.fn.find = function(t, context) {
> if (typeof t == 'string' && document.getElementById(/^\w+/.exec(t)))
> t = '#' + t;
> return this._find(t, context);
> }


Nice!

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] IDs of all checked checkboxes

2007-01-11 Thread Mike Alsup
> I have a form with multiple checkboxes, each with their own unique id.
>
> How do I go about returning the ids of the selected checkboxes into an
> array?

This should do it:

var a[];
$(':checkbox').each(function() {
if (this.id) a.push(this.id);
});

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] IDs of all checked checkboxes

2007-01-11 Thread Mungbeans

I have a form with multiple checkboxes, each with their own unique id.  

How do I go about returning the ids of the selected checkboxes into an
array?

Sorry if this is a bit basic, but it has me stumped.


-- 
View this message in context: 
http://www.nabble.com/IDs-of-all-checked-checkboxes-tf2963342.html#a8291129
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Refactoring code from Prototype ( $() type ambiguity)

2007-01-11 Thread Erik Beeson

At the point of doing document.getElementById(t), you might as well just
return that since that's all jQuery is going to do anyways. You might
consider something like (only tested on FF2/win32):

jQuery.fn._find = jQuery.fn.find;
jQuery.fn.find = function(t, context) {
   if (typeof t == 'string' && document.getElementById(/^\w+/.exec(t)))
   t = '#' + t;
   return this._find(t, context);
}

Even that still breaks some jQuery functionality, but at least $("#someId
span") or $("#someId:visible") type things will work.

--Erik

On 1/11/07, Mike Alsup <[EMAIL PROTECTED]> wrote:


Maybe this one make more sense:

jQuery.fn._find = jQuery.fn.find;
jQuery.fn.find = function(t, context) {
if (typeof t == 'string' && document.getElementById(t))
t = '#' + t;
return this._find(t, context);
}

It's sort of a "Prototype conversion" plugin I suppose.  And probably
useful for people like me that forget the '#' a lot. I think the only
problem you'd have is if you have ids like 'div' or 'span', etc.

Mike

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Mac OS X Widgets?

2007-01-11 Thread Ⓙⓐⓚⓔ
they aren't even committing to javascript on the phone... hard to
believe they wont!

On 1/9/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
> Today has been a big day for the mac, and the iphone is about 6 months
> away. It runs Safari and a mini version of OS X. And it supports
> widgets!
>
> Widgets can be written in javascript, and can run un-encumbered by the
> normal ajax cross host security restriction!
>
> So to get back on target... Has anyone written any jquery widgets?
>
> --
> Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
>


-- 
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Mac OS X Widgets?

2007-01-11 Thread Jon Baer
Well as long as they don't close up shop on Javascript in Safari  
everything should be cool no? 


http://www.ilounge.com/index.php/news/comments/apples-jobs-more- 
iphone-apps-coming-before-launch/9320


"We define everything that is on the phone,” Jobs told the New York  
Times. “You don’t want your phone to be like a PC. The last thing  
you want is to have loaded three apps on your phone and then you go  
to make a call and it doesn’t work anymore. These are more like  
iPods than they are like computers.” Jobs told Newsweek something  
similar. “You don’t want your phone to be an open platform,” he  
said. “You need it to work when you need it to work. Cingular  
doesn’t want to see their West Coast network go down because some  
application messed up.”


- Jon

On Jan 10, 2007, at 7:42 AM, Jon Baer wrote:

I would be *very* disappointed if the iPhone did not have support  
for HXR.  There have been a few mobile browsers which shipped based  
on something else that is suppose to be desktop class but then  
leave out the OTA connection features altogether.  (The one thing  
Id like to see is if the Google Map application they showed off  
*was* a widget).  If it was that means you would also have direct  
access to frameworks like the address book, phone functionality,  
SMS, etc.


- Jon

On Jan 9, 2007, at 8:57 PM, Yehuda Katz wrote:

I'm actually looking at the widget development information now,  
and it would be really easy to write some nice jQuery extensions  
to handle widgets (esp. regarding new widget-specific events).


-- Yehuda

On 1/9/07, Yehuda Katz <[EMAIL PROTECTED]> wrote:
How easy is it to package a widget with jQuery? I would assume  
that such a packaged version would be able to completely eliminate  
form and AJAX support (in most cases). I'd be curious if the phone  
version of the widgets was exactly the same...


-- Yehuda


On 1/9/07, Ⓙⓐⓚⓔ < [EMAIL PROTECTED]> wrote:
Today has been a big day for the mac, and the iphone is about 6  
months

away. It runs Safari and a mini version of OS X. And it supports
widgets!

Widgets can be written in javascript, and can run un-encumbered by  
the

normal ajax cross host security restriction!

So to get back on target... Has anyone written any jquery widgets?

--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/



--
Yehuda Katz
Web Developer | Wycats Designs
(ph)  718.877.1325



--
Yehuda Katz
Web Developer | Wycats Designs
(ph)  718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/




___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery 1.1b

2007-01-11 Thread spinnach
..also before, the animate function accepted an object as callback (with
step and complete functions), not it only accepts a function, how do you
call a function for each step of an animation now?..

..i may have posted this message before, i apologize if i have, 
something weird happened in thunderbird so i'm not sure :)...

spinnach wrote:
> hey,
> 
> sorry about that, it was my fault, i tried to fix the compatibility 
> plugin, but obviously changed it wrong so that's what caused the error.. 
>  with your fix to the compat. plugin everything works ok...
> 
> John Resig wrote:
>> Hi -
>>
>> I fixed the compat. plugin bug that you mentioned, in SVN rev 1010.
>>
>> Can you be more specific about the t.replace bug that you mentioned? I
>> can't seem to locate it anywhere.
>>
>> --John
>>
>> On 1/11/07, spinnach <[EMAIL PROTECTED]> wrote:
>>> ..i have a couple of issues with both jquery 1.1b and the compatibility
>>> plugin.. this is the code from the compatibility plugin:
>>> jQuery.each(["id","title","name","href","src","rel"], function(i){
>>> jQuery.fn[ i ] = function(h) {
>>> return h == undefined ?
>>> this.length ? this[0][i] : null :
>>> this.attr( i, h );
>>> };
>>> });
>>>
>>> it should be (i think):
>>>
>>> jQuery.each(["id","title","name","href","src","rel"], function(i, n){
>>> jQuery.fn[ n ] = function(h) {
>>> return h == undefined ?
>>> this.length ? this[0][n] : null :
>>> this.attr( i, n );
>>> };
>>> });
>>>
>>> ..also firebug reports t.replace is not a function (t=t.replace(re,""));
>>>   in the find function...
>>>
>>>


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Refactoring code from Prototype ( $() type ambiguity)

2007-01-11 Thread Mike Alsup
Maybe this one make more sense:

jQuery.fn._find = jQuery.fn.find;
jQuery.fn.find = function(t, context) {
if (typeof t == 'string' && document.getElementById(t))
t = '#' + t;
return this._find(t, context);
}

It's sort of a "Prototype conversion" plugin I suppose.  And probably
useful for people like me that forget the '#' a lot. I think the only
problem you'd have is if you have ids like 'div' or 'span', etc.

Mike

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Refactoring code from Prototype ( $() type ambiguity)

2007-01-11 Thread James Thomas

Well, I just did this too - though not from Prototype but from my own $()
function that took a string or an object. All I really needed to do was
change my $(str) calls to $('#' + str), which I did via global
search-and-replace - searched for $(" and replaced it with $("# - worked
beautifully and I don't have to worry about intermediate functions. And
where $() returned an object, I didn't have to change anything (though I do
as I encounter them to use jquery syntax rather than my own).

James


Nate Cavanaugh wrote:
> 
> John told me to post this here, so here it is
> 
> I am currently refactoring a large amount of code over to jQuery. Against
> better principles, the HTML is rife with onclick="fn()", etc, so I am
> having to convert over the functions themselves.
> 
> Prototype's $() will take a string or an object, just like jQuery does,
> however, since prototype will ONLY look for id's if you pass it a string,
> you do not have to include the #, whereas with jQuery, if you do not
> include the #, it will look for a tagname rather than an element by id.
> 
> So, here is an example of a generic function currently:
> 
> function test(arg1,arg2){
> obj = $(arg1);
> return obj;
> }
> 
> The above function will work in Prototype if it's a string or an object.
> 
> So in my refactoring, I have been doing this:
> 
> function test(arg1,arg2){
> obj = (typeof arg1 == 'string') ? $('#'+arg1) : $(arg1);
> return obj;
> }
> 
> Is this the best/only way?
> 
> Anyone have any ideas?
> 
> Thanks in advance!
> 

-- 
View this message in context: 
http://www.nabble.com/Refactoring-code-from-Prototype-%28-%24%28%29-type-ambiguity%29-tf2962817.html#a8290090
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery Powered Sites - Keep the Links Coming

2007-01-11 Thread Karl Swedberg

Hey Rey,

Thanks for compiling this list!

Glen Lipka got some jQuery goodness into intuit.com before he went  
off to another company. I can't remember which pages other than the  
homepage. And the jQuery version of the homepage is served out  
randomly to a certain percentage of users (for market testing, etc.)


My blog, englishrules.com, uses jQuery in a number of places:
-- form validation for the main weblog (haven't gotten around to  
including it for the rest of the site yet.)

-- expandable/collapsible advanced search.
-- Harry Potteresque style switcher from the homepage (hover the  
mouse over the padlock, top-middle of the page, to see a skeleton  
key. [hard to do in IE6 because of some CSS nonsense] Click on the  
key for a brand new style. click on picture of my kids in upper left  
to return to the previous style).
-- Widescreen Bonus section - make the browser wide enough, and  
you'll see another column on the right side, with noteworthy articles  
and a blog roll AHAHed in.

-- some other stuff I can't think of right now.

Cheers,
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Jan 10, 2007, at 3:56 PM, Rey Bango wrote:


Hey all,

I just wanted to let you know that I've been compiling the list of  
sites
and definitely noting all of the ones submitted. Thank you for  
providing

the info.

Please keep sending links as we want to have a nice list of
jQuery-powered sites for the jQuery web site.

Thanks,

Rey...

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Refactoring code from Prototype ( $() type ambiguity)

2007-01-11 Thread Mike Alsup
> jQuery.fn._find = jQuery.fn.find;
> jQuery.fn.find = function(t, context) {
> if (typeof t == 'string')
> t = '#' + t;
> return this._find(t, context);
> }

Of course that really limits how you can use jQuery but it may get you
over the hump.

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Refactoring code from Prototype ( $() type ambiguity)

2007-01-11 Thread Nate Cavanaugh


Well, the $() in prototype only accepts objects and strings (it may take
array's too, but I know that this code isn't utilising arrays).

So, the arg1 is only going to be an object or a string. I could check it's
type as object, but since I know those are the only possibilities being
passed, Im only worried about those two.



Blair McKenzie-2 wrote:
> 
> You're handling a case where arg1 isn't a string. What is the alternative?
> 
> Blair
> 
> On 1/12/07, Nate Cavanaugh <[EMAIL PROTECTED]> wrote:
>>
>>
>> John told me to post this here, so here it is
>>
>> I am currently refactoring a large amount of code over to jQuery. Against
>> better principles, the HTML is rife with onclick="fn()", etc, so I am
>> having
>> to convert over the functions themselves.
>>
>> Prototype's $() will take a string or an object, just like jQuery does,
>> however, since prototype will ONLY look for id's if you pass it a string,
>> you do not have to include the #, whereas with jQuery, if you do not
>> include
>> the #, it will look for a tagname rather than an element by id.
>>
>> So, here is an example of a generic function currently:
>>
>> function test(arg1,arg2){
>> obj = $(arg1);
>> return obj;
>> }
>>
>> The above function will work in Prototype if it's a string or an object.
>>
>> So in my refactoring, I have been doing this:
>>
>> function test(arg1,arg2){
>> obj = (typeof arg1 == 'string') ? $('#'+arg1) : $(arg1);
>> return obj;
>> }
>>
>> Is this the best/only way?
>>
>> Anyone have any ideas?
>>
>> Thanks in advance!
>> --
>> View this message in context:
>> http://www.nabble.com/Refactoring-code-from-Prototype-%28-%24%28%29-type-ambiguity%29-tf2962817.html#a8289616
>> Sent from the JQuery mailing list archive at Nabble.com.
>>
>>
>> ___
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>>
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Refactoring-code-from-Prototype-%28-%24%28%29-type-ambiguity%29-tf2962817.html#a8289872
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Refactoring code from Prototype ( $() type ambiguity)

2007-01-11 Thread Mike Alsup
> So in my refactoring, I have been doing this:
>
> function test(arg1,arg2){
> obj = (typeof arg1 == 'string') ? $('#'+arg1) : $(arg1);
> return obj;
> }

At some point you're going to bite the bullet and convert all the
calling functions to include the '#' right?  Hope so.  Until then you
could just tweak the find method in jQuery and not have to litter
those tests all over the place.  Try including this code:

jQuery.fn._find = jQuery.fn.find;
jQuery.fn.find = function(t, context) {
if (typeof t == 'string')
t = '#' + t;
return this._find(t, context);
}

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Refactoring code from Prototype ( $() type ambiguity)

2007-01-11 Thread Blair McKenzie

You're handling a case where arg1 isn't a string. What is the alternative?

Blair

On 1/12/07, Nate Cavanaugh <[EMAIL PROTECTED]> wrote:



John told me to post this here, so here it is

I am currently refactoring a large amount of code over to jQuery. Against
better principles, the HTML is rife with onclick="fn()", etc, so I am
having
to convert over the functions themselves.

Prototype's $() will take a string or an object, just like jQuery does,
however, since prototype will ONLY look for id's if you pass it a string,
you do not have to include the #, whereas with jQuery, if you do not
include
the #, it will look for a tagname rather than an element by id.

So, here is an example of a generic function currently:

function test(arg1,arg2){
obj = $(arg1);
return obj;
}

The above function will work in Prototype if it's a string or an object.

So in my refactoring, I have been doing this:

function test(arg1,arg2){
obj = (typeof arg1 == 'string') ? $('#'+arg1) : $(arg1);
return obj;
}

Is this the best/only way?

Anyone have any ideas?

Thanks in advance!
--
View this message in context:
http://www.nabble.com/Refactoring-code-from-Prototype-%28-%24%28%29-type-ambiguity%29-tf2962817.html#a8289616
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Refactoring code from Prototype ( $() type ambiguity)

2007-01-11 Thread Nate Cavanaugh

John told me to post this here, so here it is

I am currently refactoring a large amount of code over to jQuery. Against
better principles, the HTML is rife with onclick="fn()", etc, so I am having
to convert over the functions themselves.

Prototype's $() will take a string or an object, just like jQuery does,
however, since prototype will ONLY look for id's if you pass it a string,
you do not have to include the #, whereas with jQuery, if you do not include
the #, it will look for a tagname rather than an element by id.

So, here is an example of a generic function currently:

function test(arg1,arg2){
obj = $(arg1);
return obj;
}

The above function will work in Prototype if it's a string or an object.

So in my refactoring, I have been doing this:

function test(arg1,arg2){
obj = (typeof arg1 == 'string') ? $('#'+arg1) : $(arg1);
return obj;
}

Is this the best/only way?

Anyone have any ideas?

Thanks in advance!
-- 
View this message in context: 
http://www.nabble.com/Refactoring-code-from-Prototype-%28-%24%28%29-type-ambiguity%29-tf2962817.html#a8289616
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] dynamic loading of jquery.js into my web page

2007-01-11 Thread Andrea Ercolino

1.  I've put this line at the bottom of the standard jquery.js file not
compressed: 
$package('jquery',{});

2.  I've wrapped the content of the standard chili.js file inside this:
$using( 'jquery', function() { 
... 
} );

3.  I've changed the default path inside package.js to:
$package.packageBase = 'packages/';

4.  I've added this markup to mypage.html:



5.  I've put the modified chili.js and jquery.js files inside the 'packages'
folder, 
so the folder from where the page is loaded contains: mypage.html,
package.js, packages/

6.  It works in FF, but it does not in IE.

-- 
View this message in context: 
http://www.nabble.com/dynamic-loading-of-jquery.js-into-my-web-page-tf2905089.html#a8289335
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] 1 Function, Multiple Events?

2007-01-11 Thread Nathaniel See
Thanks, the $("p").one was just a generic example. I plan to reassign 
the click function on the callback from an ajax request. Thus, this 
should prevent them from firing a second request while the first is out. 
Or, would this be better handled by setting a global var, let's say 
"ready=1" on page load, then  toggle this when the req goes out, then 
again when it comes back and only allow the req to fire when ready=1? 
The should both work, no? Is one better?






Sure thing, if that's what you want to do: run on the first click inside any
p tag, and never again.

-Mike


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

  
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] How to get element when it's ID contains bank space.

2007-01-11 Thread Dave Methvin
> I like it when visitors put quote marks and angle brackets
> and stuff in these ID fields. It makes for a much more
> interactive environment when they can run their own code!

You forgot the smiley, I hope. :)

It brings new meaning to the term "dynamic HTML" in any case.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] How to get element when it's ID contains bank space.

2007-01-11 Thread Erik Beeson

That's what we ended up doing.

--Erik

On 1/11/07, Brandon Aaron <[EMAIL PROTECTED]> wrote:


On 1/11/07, Erik Beeson <[EMAIL PROTECTED]> wrote:
> It was clear in my head, but I didn't explain it properly :)
>
> I meant, if you replace spaces with underscores, and then you want to
> *display* them as spaces, you'll have ambiguity if there was also an
> underscore. Not really a big issue.

I see. Perhaps in the DB you store the name/id with the spaces but
always convert spaces to '_' when dealing with it as an ID.

--
Brandon Aaron

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] fadeIn/fadeOut question

2007-01-11 Thread Aaron Heimlich

On 1/11/07, Antonio Collins <[EMAIL PROTECTED]> wrote:


I 'spose I'll go through their code base and
look for any other overwrites that should be updated.



You should talk to Paul or Stefan before you do because they've been doing
*a lot* of work on Interface lately (though none of it has, to my knowledge,
been officially released).

Interface SVN repository: http://jquery.com/dev/svn/trunk/plugins/interface/
Stefan's Dev Branch: http://jquery.com/dev/svn/branches/stefan-dev/
Paul's Dev Branch: http://jquery.com/dev/svn/branches/paul-dev/

--
Aaron Heimlich
Web Developer
[EMAIL PROTECTED]
http://aheimlich.freepgs.com
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] How to get element when it's ID contains bank space.

2007-01-11 Thread Michael Geary
> > Scripting on top of an invalid HTML document won't make 
> > your life easier (obviously). I'd try to replace spaces given
> > by the user to "_" in the backend.

> > And then do what with underscores given by the user?

> Come on, that was just an idea. You can leave underscores the 
> way they are for example. Or you could also just remove the 
> blanks instead. But if you're able to change the backend 
> anyway, it would be better to simply not allow white-space 
> and validate the user input.

I like it when visitors put quote marks and angle brackets and stuff in
these ID fields. It makes for a much more interactive environment when they
can run their own code!

-Mike


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] 1 Function, Multiple Events?

2007-01-11 Thread Michael Geary
> Thanks for the assistance. Yes, I was basically trying to 
> assign a click and dblclick to the same function (to prevent 
> users from double-clicking and firing the func twice).

Hmm... If you assigned both click and dblclick to the same function, then
the function *would* be called twice on each double click. Remember, a
journey of two clicks begins with a single click.

> However, after looking into it a bit more, i think that the 
> $("p").one("click", fun.is a better fit here.

Sure thing, if that's what you want to do: run on the first click inside any
p tag, and never again.

-Mike


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] How to get element when it's ID contains bank space.

2007-01-11 Thread Brandon Aaron
On 1/11/07, Erik Beeson <[EMAIL PROTECTED]> wrote:
> It was clear in my head, but I didn't explain it properly :)
>
> I meant, if you replace spaces with underscores, and then you want to
> *display* them as spaces, you'll have ambiguity if there was also an
> underscore. Not really a big issue.

I see. Perhaps in the DB you store the name/id with the spaces but
always convert spaces to '_' when dealing with it as an ID.

--
Brandon Aaron

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] How to get element when it's ID contains bank space.

2007-01-11 Thread Erik Beeson

I only brought it up because I'm wrestling with it right at the moment. I
have user created tabs where I want to display the name of the tab, and use
the name as its ID.

Nevermind, it wasn't really an issue and certainly wasn't worth anyone's
time. Sorry for the bother :)

--Erik

On 1/11/07, Klaus Hartl <[EMAIL PROTECTED]> wrote:


Erik Beeson schrieb:
> Scripting on top of an invalid HTML document won't make your life
easier
>   (obviously). I'd try to replace spaces given by the user to "_" in
> the
> backend.
>
>
> And then do what with underscores given by the user?

Come on, that was just an idea. You can leave underscores the way they
are for example. Or you could also just remove the blanks instead. But
if you're able to change the backend anyway, it would be better to
simply not allow white-space and validate the user input.


-- Klaus


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] How to get element when it's ID contains bank space.

2007-01-11 Thread Erik Beeson

It was clear in my head, but I didn't explain it properly :)

I meant, if you replace spaces with underscores, and then you want to
*display* them as spaces, you'll have ambiguity if there was also an
underscore. Not really a big issue.

--Erik

On 1/11/07, Brandon Aaron <[EMAIL PROTECTED]> wrote:


On 1/11/07, Erik Beeson <[EMAIL PROTECTED]> wrote:
>
> > Scripting on top of an invalid HTML document won't make your life
easier
> >   (obviously). I'd try to replace spaces given by the user to "_" in
the
> > backend.
> >
>
> And then do what with underscores given by the user?

Leave them as underscores?

--
Brandon Aaron

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] How to get element when it's ID contains bank space.

2007-01-11 Thread Klaus Hartl
Erik Beeson schrieb:
> Scripting on top of an invalid HTML document won't make your life easier
>   (obviously). I'd try to replace spaces given by the user to "_" in
> the
> backend.
> 
> 
> And then do what with underscores given by the user?

Come on, that was just an idea. You can leave underscores the way they 
are for example. Or you could also just remove the blanks instead. But 
if you're able to change the backend anyway, it would be better to 
simply not allow white-space and validate the user input.


-- Klaus


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] How to get element when it's ID contains bank space.

2007-01-11 Thread Brandon Aaron
On 1/11/07, Erik Beeson <[EMAIL PROTECTED]> wrote:
>
> > Scripting on top of an invalid HTML document won't make your life easier
> >   (obviously). I'd try to replace spaces given by the user to "_" in the
> > backend.
> >
>
> And then do what with underscores given by the user?

Leave them as underscores?

--
Brandon Aaron

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] How to get element when it's ID contains bank space.

2007-01-11 Thread Erik Beeson


Scripting on top of an invalid HTML document won't make your life easier
  (obviously). I'd try to replace spaces given by the user to "_" in the
backend.



And then do what with underscores given by the user?

--Erik
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] How to get element when it's ID contains bank space.

2007-01-11 Thread George Adamson

Klaus is absolutely right.

If you really really really cannot get around this invalid html then seeking
the id as an @attribute seems to work, for
example: $("[EMAIL PROTECTED]'']")
Note: the inner quotes in the example are two single quotes right next to
eachother to represent an empty string. You just need to pop your ElementId
variable into the single quotes so you'll end up with something like this:
$("[EMAIL PROTECTED]'" + ElementId + "']")

Tip: Include the tag name in the query if you can (I used a DIV in my
example) for better performance, hence not like this if possible:
$("[EMAIL PROTECTED]'']")

George


Klaus Hartl wrote:
> 
> Ashish Agrawal schrieb:
>> First, Thanks for such a great library. It damn good and fast - and most 
>> of all life saver for new bees like me.
>> 
>> Recently I fall in trouble. I had an element in my HTML that may 
>> contains blank space in its ID. The thing is I am having one asp.net 
>>  based portal system where IDs are given by user on 
>> runtime that may contain spaces. Here if I use plain $("#" + ElementId) 
>> things will not work because ElementId may have "blank space" that means 
>> for jQuery engine those are 2 items passed for search.
>> 
>> Right now I have fixed it using $(document.getElementById(ElementId)) 
>> but I am really not feeling comfortable with it. Is there any other 
>> possible solution to resolve the issue?
>> 
>> Thanks,
>> Ashish Agrawal
> 
> Element ids must not have white space in it:
> http://www.w3.org/TR/html401/types.html#type-name
> 
> Scripting on top of an invalid HTML document won't make your life easier 
>   (obviously). I'd try to replace spaces given by the user to "_" in the 
> backend.
> 
> 
> -- Klaus
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-get-element-when-it%27s-ID-contains-bank-space.-tf2958527.html#a8286927
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] List of jQuery-Powered Sites

2007-01-11 Thread Kelvin Luck
And another one:

http://www.flatline-tignes.com/

Uses jQuery, a modified thickbox, DOM creation plugin, my date picker 
and various custom code. Most of the jQuery action is on the flat 
details pages and the booking page. I discovered jQuery half way through 
building this site so there may be some old bits of code it there...

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Newbie - how to build a sliding/draggable panel

2007-01-11 Thread rolfsf

Oh! Sorry, I didn't realize the earlier post had gone through - I had
cancelled it. 

Thanks for the reply - I'll play with that and see what I can learn with it.

Rolf



bmsterling wrote:
> 
> Rolf, 
> try now to double post your messages.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Newbie---how-to-build-a-sliding-draggable-panel-tf2961721.html#a8286690
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Newbie - how to build a sliding/draggable panel

2007-01-11 Thread bmsterling

Rolf, 
try now to double post your messages.

not sure if this is the best way of going about it, but this is what I did:




 
 
 

Benjamin Sterling
KenzoMedia.com
KenzoHosting.com




rolfsf wrote:
> 
> I'm not much of a javascripter, but I've been getting into JQuery
> lately...
> 
> I'm wondering if there is there an existing JQuery solution for a
> sliding/draggable show/hide sidebar panel that scales to fit the various
> viewport heights? I posted a quick diagram of what I'm thinking of 
> http://www.monkeypuzzle.net/testfiles/sliding_panel/sliding_panel.gif
> here.  I want the panel to show or hide when the little arrow is clicked,
> and I want the user to be able to drag it open (or wider) or closed by
> grabbing the grippy edge. It's a common enough feature on desktop apps...
> just not sure how to implement it on a web app.
> 
> Can this all be done with Interface Draggables and FX?
> 
> Thanks in advance
> Rolf
> 

-- 
View this message in context: 
http://www.nabble.com/Newbie---how-to-build-a-sliding-draggable-panel-tf2961721.html#a8286665
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] List of jQuery-Powered Sites

2007-01-11 Thread Michael Geary
Forgot to add us to the list...

Zvents:
http://www.zvents.com/

This is a Rails site and we completely replaced prototype.js with jQuery and
our own code. We're using thickbox, a homegrown autocompleter, my DOM
plugin, and lots of custom code.

This also puts jQuery on our partner sites:

The Boston Globe:
http://calendar.boston.com/

The Denver Post:
http://denverpost.zvents.com/

Contra Costa Times:
http://contracostatimes.zvents.com/

San Jose Mercury News:
http://mercurynews.zvents.com/

-Mike


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Newbie - how to build a sliding/draggable panel

2007-01-11 Thread rolfsf

I'm not much of a javascripter, but I've been getting into JQuery lately...

I'm wondering if there is there an existing JQuery solution for a
sliding/draggable show/hide sidebar panel that scales to fit the various
viewport heights? I posted a quick diagram of what I'm thinking of 
http://www.monkeypuzzle.net/testfiles/sliding_panel/sliding_panel.gif here. 
I want the panel to show or hide when the little arrow is clicked, and I
want the user to be able to drag it open (or wider) or closed by grabbing
the grippy edge. It's a common enough feature on desktop apps... just not
sure how to implement it on a web app.

Can this all be done with Interface Draggables and FX?

Thanks in advance
Rolf
-- 
View this message in context: 
http://www.nabble.com/Newbie---how-to-build-a-sliding-draggable-panel-tf2961721.html#a8286304
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] 1 Function, Multiple Events?

2007-01-11 Thread Nathaniel See
Thanks for the assistance. Yes, I was basically trying to assign a click 
and dblclick to the same function (to prevent users from double-clicking 
and firing the func twice). However, after looking into it a bit more, i 
think that the $("p").one("click", fun.is a better fit here.



> I don't understand what you want to do. Jörn's answer assigns the exact same
> function to the click and dblclick events. Surely that is not what you want,
> is it - having click and dblclick do the same thing? Keep in mind especially
> that every dblclick event is preceded by a click event, so you'd be calling
> the function twice.
>
> So can you explain in a little more detail what you want to do here?
>
> -Mike
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>   

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] jQuery v1.1 Performance Results

2007-01-11 Thread Rey Bango
Hi everyone. Jack Slocum, the maker of the YUI-Ext lib, recently posted 
some performance benchmarks that compared his new extension, DOMQuery, 
to several libraries. jQuery was included in the comparison and in his 
tests, jQuery incorrectly appeared to fail or run slower than DomQuery. 
So we saw this an opportunity to present our own test results.

Here is John's posting on the jQuery blog re: this issue:

http://jquery.com/blog/2007/01/11/selector-speeds/

He has also replied to Jack on his blog. If you choose to reply to 
Jack's posting, lets ensure that we remain professional at all times. 
DomQuery is actually incredibly fast but we feel that the results 
weren't consistent with what we've seen and that we have a performance 
edge at this moment.

Rey

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] fadeIn/fadeOut question

2007-01-11 Thread Antonio Collins

Thanks for looking at this for me Alex.  

I've fixed the problem in interface elements.  They overwrote jQuery's fx()
to support their enhancements. Since interface elements hasn't been updated
since Oct '06, their fx() had the same opacity issues that jQuery dealt with
in recent releases.  So, I just merged their changes with the latest jQuery
fx() and everything is cool.  I 'spose I'll go through their code base and
look for any other overwrites that should be updated.  


-Original Message-
From: Alex Cook [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 11, 2007 3:04 PM
To: jQuery Discussion.
Subject: Re: [jQuery] fadeIn/fadeOut question

Sorry but I have no experience with Interface... it broke when I first 
tried it many moons ago and I've never gone back... I should give it 
another poke... sorry I can't help you here Tony... anyone else? 

-Original Message-
From: Antonio Collins [mailto:[EMAIL PROTECTED] On Behalf Of
Tony Collins
Sent: Thursday, January 11, 2007 2:36 PM
To: 'jQuery Discussion.'
Subject: RE: [jQuery] fadeIn/fadeOut question

I found the source of the problem. The interface elements plugin is the
culprit:  http://interface.eyecon.ro/about When its FX functionality is
included, .fadeIn() won't restore an element that has had .fadeOut() applied
under IE7.  (ALEX: When I published the example, I removed that script tag
and that's why the example did not exhibit the problem.)  

+ Based on this behavior, does anyone have quick ideas as to what the bug in
interface elements might be?  
+ Does anyone have experience with Interface Elements?  Should I just dump
it and move to something else?
+ Can anyone suggest an alternative?  The effects I'm interested in are
slide, drop, pulsate, shake, grow, shrink, and puff (which can be seen at
http://interface.eyecon.ro/demos).

Example file:
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
http://www.w3.org/1999/xhtml";>

  fadeIn/Out example
  
  
   
var controller = { } 
controller.show = function () { 
var now = (new Date()).toString(); 
$("#test").html( now ).fadeIn(); 
window.setTimeout( controller.hide, 4000 ); 
if (!controller.log) controller.log =
document.getElementById("log"); 
controller.log.value = now + "\n"+ controller.log.value; 
} 
controller.hide = function () { 
$("#test").fadeOut();   // changing this to .hide() will fix the

problem 
} 

$(document).ready( function() { 
window.setInterval( controller.show, 5000 ); 
} ); 
 

HTML, BODY { overflow: hidden;
}
BODY { background-color: black; }



 Test 

-Original Message-
From: Antonio Collins [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 10, 2007 8:05 PM
To: discuss@jquery.com
Subject: Re: [jQuery] fadeIn/fadeOut question

> Hrm, what version of IE7?  The box is working fine for me, and looks 
> exactly the same in FF and IE7...
> 
> -ALEX

Maybe I am going crazy.  It's working fine for me now too!  But I swear the
barebones example WAS NOT working properly.  I guess that's crazy talk...





___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] 1 Function, Multiple Events?

2007-01-11 Thread Michael Geary
> if have some thing like this that is called by document.ready():
> 
> function init_top_level() {
>   $(".top_folder").click(function(i) {
>   // Do a ton of stuff here
>   });
> }
> 
> I not only want to assign the "click" event to my ".top_folder"
> elements, but assign "dblclick" as well. I know I could always
> break my "Do a ton of stuff here" out as a separate function
> and assign it from 2 separate $(".top_folder").click and
> $(".top_folder").dblclick. Is there an easier way to do this?
> Something like:
> 
> function init_top_level() {
>   $(".top_folder").click AND 
>   $(".top_folder").dblclick(function(i) {
>   // Do a ton of stuff here
>   });
> }

I don't understand what you want to do. Jörn's answer assigns the exact same
function to the click and dblclick events. Surely that is not what you want,
is it - having click and dblclick do the same thing? Keep in mind especially
that every dblclick event is preceded by a click event, so you'd be calling
the function twice.

So can you explain in a little more detail what you want to do here?

-Mike


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] 1 Function, Multiple Events?

2007-01-11 Thread Jörn Zaefferer
RhythmFighter schrieb:
> I have a feeling there is an obvious answer to this, but it escapes me...
>   
Right. Try this, it should be what you are looking for:

function init_top_level() {
var handler = function(i) {
// Do a ton of stuff here
};
$(".top_folder").click(handler).dblclick(handler);
}

Hope that helps :-)

-- 
Jörn Zaefferer

http://bassistance.de


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Simple(ish?) "bring to top" method

2007-01-11 Thread Su

Been on phone all day, but yes, this looks like pretty much exactly what I
was talking about. You rule. I need to sit down and look at the source more
closely later to see about attaching it to the Interface Draggables bit.

On 1/11/07, Jonathan Sharp <[EMAIL PROTECTED]> wrote:


Oh...yeah that would be a good idea...made sense to me! haha!

I have included some instructions now.

If I get some time I'll try and actually make a plugin of sorts out of it,
or at least mock it up like the other code I have. I still have my updated
menu to post...oh such is life...

-js


On 1/11/07, Marc Jansen <[EMAIL PROTECTED]> wrote:
>
> Jonathan Sharp schrieb:
> > Here's a starting point... This could be finished out into a plugin...
>
> >
> > http://jdsharp.us/code/zIndex/
> >
> > -js
> >
>
> Hey Jonathan,
>
> this is cool! I think you should display some advice on how to test the
> functionality.
>
> Nice work!
>
> -- Marc
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] 1 Function, Multiple Events?

2007-01-11 Thread RhythmFighter

I have a feeling there is an obvious answer to this, but it escapes me...

if have some thing like this that is called by document.ready():

function init_top_level() {
$(".top_folder").click(function(i) {
// Do a ton of stuff here
});
}

I not only want to assign the "click" event to my ".top_folder" elements,
but assign "dblclick" as well. I know I could always break my "Do a ton of
stuff here" out as a separate function and assign it from 2 separate
$(".top_folder").click and $(".top_folder").dblclick. Is there an easier way
to do this? Something like:

function init_top_level() {
$(".top_folder").click AND $(".top_folder").dblclick(function(i) {
// Do a ton of stuff here
});
}

Thanks!
-- 
View this message in context: 
http://www.nabble.com/1-Function%2C-Multiple-Events--tf2959063.html#a8278042
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Show submit button only...

2007-01-11 Thread Brice Burgess
Web Specialist wrote:
> Hi all,
>
> anyone have an example using Form Validate plugin 
> (http://www.willjessup.com/sandbox/jquery/form_validator/form_validate.html 
> ) 
> where submit button appears only after all form fields are 
> correct(validated)?
>
> Thanx for your time.

I tend to do this a lot.. either hide the submit, or disable && fade it. 
As an example, see; 
http://dev.iceburg.net/jquery/tableEditor/example_new.php

Please note that the validation code still needs an overhaul, and 
compatible with multiple rows being edited at a time.

~ Brice

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] fadeIn/fadeOut question

2007-01-11 Thread Alex Cook
Sorry but I have no experience with Interface... it broke when I first
tried it many moons ago and I've never gone back... I should give it
another poke... sorry I can't help you here Tony... anyone else?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Tony Collins
Sent: Thursday, January 11, 2007 11:36 AM
To: 'jQuery Discussion.'
Subject: Re: [jQuery] fadeIn/fadeOut question

I found the source of the problem. The interface elements plugin is the
culprit:  http://interface.eyecon.ro/about
When its FX functionality is included, .fadeIn() won't restore an
element
that has had .fadeOut() applied under IE7.  (ALEX: When I published the
example, I removed that script tag and that's why the example did not
exhibit the problem.)  

+ Based on this behavior, does anyone have quick ideas as to what the
bug in
interface elements might be?  
+ Does anyone have experience with Interface Elements?  Should I just
dump
it and move to something else?
+ Can anyone suggest an alternative?  The effects I'm interested in are
slide, drop, pulsate, shake, grow, shrink, and puff (which can be seen
at
http://interface.eyecon.ro/demos).

Example file:
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> 
http://www.w3.org/1999/xhtml";> 
 
  fadeIn/Out example 
   
   
   
var controller = { } 
controller.show = function () { 
var now = (new Date()).toString(); 
$("#test").html( now ).fadeIn(); 
window.setTimeout( controller.hide, 4000 ); 
if (!controller.log) controller.log = 
document.getElementById("log"); 
controller.log.value = now + "\n"+ controller.log.value; 
} 
controller.hide = function () { 
$("#test").fadeOut();   // changing this to .hide() will fix
the

problem 
} 

$(document).ready( function() { 
window.setInterval( controller.show, 5000 ); 
} ); 
 
 
HTML, BODY { overflow: hidden; 
} 
BODY { background-color: black; } 
 
 
 
 
Test 
 
 
 
 

-Original Message-
From: Antonio Collins [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 10, 2007 8:05 PM
To: discuss@jquery.com
Subject: Re: [jQuery] fadeIn/fadeOut question

> Hrm, what version of IE7?  The box is working fine for me, and looks 
> exactly the same in FF and IE7...
> 
> -ALEX

Maybe I am going crazy.  It's working fine for me now too!  But I swear
the
barebones example WAS NOT working properly.  I guess that's crazy
talk...





___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Simple(ish?) "bring to top" method

2007-01-11 Thread Jonathan Sharp

Oh...yeah that would be a good idea...made sense to me! haha!

I have included some instructions now.

If I get some time I'll try and actually make a plugin of sorts out of it,
or at least mock it up like the other code I have. I still have my updated
menu to post...oh such is life...

-js


On 1/11/07, Marc Jansen <[EMAIL PROTECTED]> wrote:


Jonathan Sharp schrieb:
> Here's a starting point... This could be finished out into a plugin...
>
> http://jdsharp.us/code/zIndex/
>
> -js
>

Hey Jonathan,

this is cool! I think you should display some advice on how to test the
functionality.

Nice work!

-- Marc


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] is there a jQuery equivalent to the JavaScript .select() method?

2007-01-11 Thread Christopher Jordan

Jörn:
I had not seen that plug-in. I'll take a look. Thanks!

Mike:
   Thanks!

You guys rock! :o)

Cheers,
Chris

Mike Alsup wrote:

I'm trying to find out if there's a jQuery equivalent to this:

form.ElementName.select();



Those DOM methods are still available to you:

$('#myInput')[0].select();

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

  


--
http://cjordan.info

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] fadeIn/fadeOut question

2007-01-11 Thread Tony Collins
I found the source of the problem. The interface elements plugin is the
culprit:  http://interface.eyecon.ro/about
When its FX functionality is included, .fadeIn() won't restore an element
that has had .fadeOut() applied under IE7.  (ALEX: When I published the
example, I removed that script tag and that's why the example did not
exhibit the problem.)  

+ Based on this behavior, does anyone have quick ideas as to what the bug in
interface elements might be?  
+ Does anyone have experience with Interface Elements?  Should I just dump
it and move to something else?
+ Can anyone suggest an alternative?  The effects I'm interested in are
slide, drop, pulsate, shake, grow, shrink, and puff (which can be seen at
http://interface.eyecon.ro/demos).

Example file:
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> 
http://www.w3.org/1999/xhtml";> 
 
  fadeIn/Out example 
   
   
   
var controller = { } 
controller.show = function () { 
var now = (new Date()).toString(); 
$("#test").html( now ).fadeIn(); 
window.setTimeout( controller.hide, 4000 ); 
if (!controller.log) controller.log = 
document.getElementById("log"); 
controller.log.value = now + "\n"+ controller.log.value; 
} 
controller.hide = function () { 
$("#test").fadeOut();   // changing this to .hide() will fix the

problem 
} 

$(document).ready( function() { 
window.setInterval( controller.show, 5000 ); 
} ); 
 
 
HTML, BODY { overflow: hidden; 
} 
BODY { background-color: black; } 
 
 
 
 
Test 
 
 
 
 

-Original Message-
From: Antonio Collins [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 10, 2007 8:05 PM
To: discuss@jquery.com
Subject: Re: [jQuery] fadeIn/fadeOut question

> Hrm, what version of IE7?  The box is working fine for me, and looks 
> exactly the same in FF and IE7...
> 
> -ALEX

Maybe I am going crazy.  It's working fine for me now too!  But I swear the
barebones example WAS NOT working properly.  I guess that's crazy talk...





___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Simple(ish?) "bring to top" method

2007-01-11 Thread Marc Jansen
Jonathan Sharp schrieb:
> Here's a starting point... This could be finished out into a plugin...
>  
> http://jdsharp.us/code/zIndex/
>  
> -js
>

Hey Jonathan,

this is cool! I think you should display some advice on how to test the 
functionality.

Nice work!

-- Marc


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] is there a jQuery equivalent to the JavaScript .select() method?

2007-01-11 Thread Jörn Zaefferer
Christopher Jordan schrieb:
> Hi folks,
>
> I'm trying to find out if there's a jQuery equivalent to this:
>
> form.ElementName.select();
>
> I want to auto-select (read: highlight) the text in an input element. 
> I've searched on Nabble to see if this has been covered, but I either 
> don't know what to search for or it will just take too long for me to 
> weed through all of the posts about 'selectors' (xpath, css, etc.)
>
> Can anyone help me with this?
>   
You've seen this plugin? 
http://laboratorium.0xab.cd/jquery/fieldselection/0.2.3-test/test.html

If it isn't exactly what you are looking for, it should get you on the 
right track.

-- 
Jörn Zaefferer

http://bassistance.de


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] is there a jQuery equivalent to the JavaScript .select() method?

2007-01-11 Thread Mike Alsup
> I'm trying to find out if there's a jQuery equivalent to this:
>
> form.ElementName.select();

Those DOM methods are still available to you:

$('#myInput')[0].select();

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] mousewheel plugin updated

2007-01-11 Thread Brandon Aaron
Yes it is.

--
Brandon Aaron

On 1/11/07, Abel Tamayo <[EMAIL PROTECTED]> wrote:
> Is it compatible with jQuery-1.1b?
>
>
> On 1/11/07, Brandon Aaron <[EMAIL PROTECTED]> wrote:
> >
> > It is fixed. :)
> >
> > --
> > Brandon Aaron
> >
> > On 1/11/07, Brandon Aaron <[EMAIL PROTECTED]> wrote:
> > > Sorry, that was my fault. Copy and paste from previous test page.
> > > There aren't supposed to be limitations. I'll update the test page
> > > shortly.
> > >
> > > --
> > > Brandon Aaron
> > >
> > > On 1/11/07, David Duymelinck < [EMAIL PROTECTED]> wrote:
> > > > Brandon Aaron schreef:
> > > > > Test page:
> http://brandon.jquery.com/plugins/mousewheel/test/test.html
> > > > >
> > > > I tested the page on FF2 and i didn't see the log frame.
> > > >
> > > > In IE7 tests 6 and 7 fail their limitation. They both show movement up
> > > > and down.
> > > >
> > > > Nice work. I didn't know it could get the speed of the movement but i
> > > > haven't used it yet. I already made it into a game to get the highest
> > > > movement (24.975) :)
> > > >
> > > > --
> > > > David Duymelinck
> > > > 
> > > > [EMAIL PROTECTED]
> > > >
> > > >
> > > > ___
> > > > jQuery mailing list
> > > > discuss@jquery.com
> > > > http://jquery.com/discuss/
> > > >
> > >
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Difference between ajaxStop and ajaxComplete

2007-01-11 Thread Mike Alsup
> anyone know the difference between these two?

ajaxStop is triggered when the number of outstanding ajax requests
reaches zero.  ajaxComplete is triggered after each response is
received.  ajaxComplete is also passed the XHR and the settings
object.

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] is there a jQuery equivalent to the JavaScript .select() method?

2007-01-11 Thread Christopher Jordan
Hi folks,

I'm trying to find out if there's a jQuery equivalent to this:

form.ElementName.select();

I want to auto-select (read: highlight) the text in an input element. 
I've searched on Nabble to see if this has been covered, but I either 
don't know what to search for or it will just take too long for me to 
weed through all of the posts about 'selectors' (xpath, css, etc.)

Can anyone help me with this?

-- 
http://cjordan.info


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] mousewheel plugin updated

2007-01-11 Thread Abel Tamayo

Is it compatible with jQuery-1.1b?

On 1/11/07, Brandon Aaron <[EMAIL PROTECTED]> wrote:


It is fixed. :)

--
Brandon Aaron

On 1/11/07, Brandon Aaron <[EMAIL PROTECTED]> wrote:
> Sorry, that was my fault. Copy and paste from previous test page.
> There aren't supposed to be limitations. I'll update the test page
> shortly.
>
> --
> Brandon Aaron
>
> On 1/11/07, David Duymelinck <[EMAIL PROTECTED]> wrote:
> > Brandon Aaron schreef:
> > > Test page:
http://brandon.jquery.com/plugins/mousewheel/test/test.html
> > >
> > I tested the page on FF2 and i didn't see the log frame.
> >
> > In IE7 tests 6 and 7 fail their limitation. They both show movement up
> > and down.
> >
> > Nice work. I didn't know it could get the speed of the movement but i
> > haven't used it yet. I already made it into a game to get the highest
> > movement (24.975) :)
> >
> > --
> > David Duymelinck
> > 
> > [EMAIL PROTECTED]
> >
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Difference between ajaxStop and ajaxComplete

2007-01-11 Thread Rich Manalang

anyone know the difference between these two?

Rich
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Simple(ish?) "bring to top" method

2007-01-11 Thread Jonathan Sharp

Here's a starting point... This could be finished out into a plugin...

http://jdsharp.us/code/zIndex/

-js


On 1/11/07, Jonathan Sharp <[EMAIL PROTECTED]> wrote:


I think you're going to have to loop through all of your elements to find
the max z-index and then either re-set them or just set the z-index
to max+1.

-js


 On 1/11/07, Su <[EMAIL PROTECTED]> wrote:

> No.
> The whole problem is that there's a static number in that statement. So
> eventually, all the panels end up with that same z-index, which makes them
> revert to stacking in source order.
>
> On 1/11/07, Joan Piedra <[EMAIL PROTECTED] > wrote:
> >
> > Can't you just use z-index in $(this)??
> >
> > onStop : function() {
> > > $(this).css("z-index","1");
> > > }
> >
> >
> >
> >  On 1/9/07, Su < [EMAIL PROTECTED] > wrote:
> >
> > > I've got something I'm building wherein several boxes will be
> > > draggable. What I'd like to do is have a function that can be called when
> > > dragging stops(Interface onStop), or just when a box is clicked that would
> > > bring it to the top of the stack via the z-index.
> > >
> > > Of course, the writers of the CSS spec didn't think to just provide
> > > a "top" value, so this isn't directly possible.
> > > I tried something like just:
> > >
> > > onStop : function() {
> > > $('.dragbox').css("z-index","1");
> > > $(this).css("z-index","1");
> > > }
> > >
> > > but that ends up pretty obviously wrong, since it causes the other
> > > elements to shuffle. They're all set to "1," and so end up in the natural
> > > source-order stacking, rather than retaining their relative positions, 
just
> > > under the currently active box.
> > >
> > > Is there a way to do this that isn't too involved? Speak to me like
> > > someone who knows just enough JS to break other people's JS *grin*
> > >
> > > ___
> > > jQuery mailing list
> > > discuss@jquery.com
> > > http://jquery.com/discuss/
> > >
> > >
> > >
> >
> >
> > --
> > Joan Piedra || Frontend webdeveloper
> > http://joanpiedra.com/
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
> >
> >
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Simple(ish?) "bring to top" method

2007-01-11 Thread Jonathan Sharp

I think you're going to have to loop through all of your elements to find
the max z-index and then either re-set them or just set the z-index
to max+1.

-js


On 1/11/07, Su <[EMAIL PROTECTED]> wrote:


No.
The whole problem is that there's a static number in that statement. So
eventually, all the panels end up with that same z-index, which makes them
revert to stacking in source order.

On 1/11/07, Joan Piedra <[EMAIL PROTECTED]> wrote:
>
> Can't you just use z-index in $(this)??
>
> onStop : function() {
> > $(this).css("z-index","1");
> > }
>
>
>
>  On 1/9/07, Su < [EMAIL PROTECTED]> wrote:
>
> > I've got something I'm building wherein several boxes will be
> > draggable. What I'd like to do is have a function that can be called when
> > dragging stops(Interface onStop), or just when a box is clicked that would
> > bring it to the top of the stack via the z-index.
> >
> > Of course, the writers of the CSS spec didn't think to just provide a
> > "top" value, so this isn't directly possible.
> > I tried something like just:
> >
> > onStop : function() {
> > $('.dragbox').css("z-index","1");
> > $(this).css("z-index","1");
> > }
> >
> > but that ends up pretty obviously wrong, since it causes the other
> > elements to shuffle. They're all set to "1," and so end up in the natural
> > source-order stacking, rather than retaining their relative positions, just
> > under the currently active box.
> >
> > Is there a way to do this that isn't too involved? Speak to me like
> > someone who knows just enough JS to break other people's JS *grin*
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
> >
> >
>
>
> --
> Joan Piedra || Frontend webdeveloper
> http://joanpiedra.com/
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery 1.1b

2007-01-11 Thread spinnach
hey,

sorry about that, it was my fault, i tried to fix the compatibility 
plugin, but obviously changed it wrong so that's what caused the error.. 
  with your fix to the compat. plugin everything works ok...

John Resig wrote:
> Hi -
> 
> I fixed the compat. plugin bug that you mentioned, in SVN rev 1010.
> 
> Can you be more specific about the t.replace bug that you mentioned? I
> can't seem to locate it anywhere.
> 
> --John
> 
> On 1/11/07, spinnach <[EMAIL PROTECTED]> wrote:
>> ..i have a couple of issues with both jquery 1.1b and the compatibility
>> plugin.. this is the code from the compatibility plugin:
>> jQuery.each(["id","title","name","href","src","rel"], function(i){
>> jQuery.fn[ i ] = function(h) {
>> return h == undefined ?
>> this.length ? this[0][i] : null :
>> this.attr( i, h );
>> };
>> });
>>
>> it should be (i think):
>>
>> jQuery.each(["id","title","name","href","src","rel"], function(i, n){
>> jQuery.fn[ n ] = function(h) {
>> return h == undefined ?
>> this.length ? this[0][n] : null :
>> this.attr( i, n );
>> };
>> });
>>
>> ..also firebug reports t.replace is not a function (t=t.replace(re,""));
>>   in the find function...
>>
>>
>> Allan Mullan wrote:
>>> Awesome stuff guys, the couple of issues I had are no longer. :-)
>>>
>>> Look forward to having more hands-on with jQuery this year, I've learnt
>>> so much about Javascript from jQuery and hoping I can help where needed.
>>>
>>> Allan
>>>
>>>
>>> John Resig wrote:
 Hi Everyone -

 We're nearly ready for the big 1.1 release, this Sunday - but to tie
 you over, here's another set of bug fixes to test upon. The jQuery dev
 team has been working long-and-hard to fix all the support requests
 that've been coming in this week, and we've been pretty successful in
 fixing just about everything that's come across our plate.

 We'd really appreciate it if you'd take the time to test the new 1.1b
 with your code, and if you spot any bugs, to please submit them to the
 bug tracker.

 It's not all bug fixes, however; we do have something new for you to
 try: The jQuery 1.0 Compatibility Plugin. As promised, this plugin
 provides all of the methods and selectors that were present in the
 last 1.0.4 release. So, theoretically, you should be able to drop in
 jQuery 1.1, and the new compatibility plugin and everything should
 work seamlessly.

 This is how you would use the compatibility plugin with jQuery 1.1:

 
 
   
   
   
 $(document).ready(function(){
 // Your old 1.0-centric code
 });
   
 
 
 

 So, while its fully possible to continue using the compatibility
 plugin into the foreseeable future, it is highly recommended that you
 follow the upgrade plans mentioned before:
 http://jquery.com/blog/2007/01/08/jquery-11a/

 So, again; please help us test this beta release! The more you help
 test, the better the final 1.1 release is going to be. Thanks for all
 your help!

 Download

 - Download 1.1b Uncompressed (Testing Only!):
   http://jquery.com/src/jquery-1.1b.js

 - Download 1.0 Compatibility Plugin (Makes 1.1 have the same API as 1.0):
   
 http://jquery.com/dev/svn/trunk/plugins/compat-1.0/jquery.compat-1.0.js?format=txt

 - Please submit new bug reports here:
   http://jquery.com/dev/bugs/new/

 --John

 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/


> 


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Simple(ish?) "bring to top" method

2007-01-11 Thread Joan Piedra

Hmm.. i read it again, and I understood you have different boxes and they
all have different z-index, right? So if I undestand correctly when you stop
moving one, they all come back to 1, losing the different positions they
had.

I think you could add their old z-index variables somewhere in markup, like
an attr or something then you can recall them when you need it. It's just a
though but I'm not sure it's the best.

Good luck.


On 1/11/07, Su <[EMAIL PROTECTED]> wrote:


No.
The whole problem is that there's a static number in that statement. So
eventually, all the panels end up with that same z-index, which makes them
revert to stacking in source order.

On 1/11/07, Joan Piedra <[EMAIL PROTECTED]> wrote:
>
> Can't you just use z-index in $(this)??
>
> onStop : function() {
> > $(this).css("z-index","1");
> > }
>
>
>
> On 1/9/07, Su < [EMAIL PROTECTED]> wrote:
>
> >  I've got something I'm building wherein several boxes will be
> > draggable. What I'd like to do is have a function that can be called when
> > dragging stops(Interface onStop), or just when a box is clicked that would
> > bring it to the top of the stack via the z-index.
> >
> > Of course, the writers of the CSS spec didn't think to just provide a
> > "top" value, so this isn't directly possible.
> > I tried something like just:
> >
> > onStop : function() {
> > $('.dragbox').css("z-index","1");
> > $(this).css("z-index","1");
> > }
> >
> > but that ends up pretty obviously wrong, since it causes the other
> > elements to shuffle. They're all set to "1," and so end up in the natural
> > source-order stacking, rather than retaining their relative positions, just
> > under the currently active box.
> >
> > Is there a way to do this that isn't too involved? Speak to me like
> > someone who knows just enough JS to break other people's JS *grin*
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
> >
> >
>
>
> --
> Joan Piedra || Frontend webdeveloper
> http://joanpiedra.com/
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/






--
Joan Piedra || Frontend webdeveloper
http://joanpiedra.com/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery 1.1b

2007-01-11 Thread John Resig
Hi -

I fixed the compat. plugin bug that you mentioned, in SVN rev 1010.

Can you be more specific about the t.replace bug that you mentioned? I
can't seem to locate it anywhere.

--John

On 1/11/07, spinnach <[EMAIL PROTECTED]> wrote:
> ..i have a couple of issues with both jquery 1.1b and the compatibility
> plugin.. this is the code from the compatibility plugin:
> jQuery.each(["id","title","name","href","src","rel"], function(i){
> jQuery.fn[ i ] = function(h) {
> return h == undefined ?
> this.length ? this[0][i] : null :
> this.attr( i, h );
> };
> });
>
> it should be (i think):
>
> jQuery.each(["id","title","name","href","src","rel"], function(i, n){
> jQuery.fn[ n ] = function(h) {
> return h == undefined ?
> this.length ? this[0][n] : null :
> this.attr( i, n );
> };
> });
>
> ..also firebug reports t.replace is not a function (t=t.replace(re,""));
>   in the find function...
>
>
> Allan Mullan wrote:
> > Awesome stuff guys, the couple of issues I had are no longer. :-)
> >
> > Look forward to having more hands-on with jQuery this year, I've learnt
> > so much about Javascript from jQuery and hoping I can help where needed.
> >
> > Allan
> >
> >
> > John Resig wrote:
> >> Hi Everyone -
> >>
> >> We're nearly ready for the big 1.1 release, this Sunday - but to tie
> >> you over, here's another set of bug fixes to test upon. The jQuery dev
> >> team has been working long-and-hard to fix all the support requests
> >> that've been coming in this week, and we've been pretty successful in
> >> fixing just about everything that's come across our plate.
> >>
> >> We'd really appreciate it if you'd take the time to test the new 1.1b
> >> with your code, and if you spot any bugs, to please submit them to the
> >> bug tracker.
> >>
> >> It's not all bug fixes, however; we do have something new for you to
> >> try: The jQuery 1.0 Compatibility Plugin. As promised, this plugin
> >> provides all of the methods and selectors that were present in the
> >> last 1.0.4 release. So, theoretically, you should be able to drop in
> >> jQuery 1.1, and the new compatibility plugin and everything should
> >> work seamlessly.
> >>
> >> This is how you would use the compatibility plugin with jQuery 1.1:
> >>
> >> 
> >> 
> >>   
> >>   
> >>   
> >> $(document).ready(function(){
> >> // Your old 1.0-centric code
> >> });
> >>   
> >> 
> >> 
> >> 
> >>
> >> So, while its fully possible to continue using the compatibility
> >> plugin into the foreseeable future, it is highly recommended that you
> >> follow the upgrade plans mentioned before:
> >> http://jquery.com/blog/2007/01/08/jquery-11a/
> >>
> >> So, again; please help us test this beta release! The more you help
> >> test, the better the final 1.1 release is going to be. Thanks for all
> >> your help!
> >>
> >> Download
> >>
> >> - Download 1.1b Uncompressed (Testing Only!):
> >>   http://jquery.com/src/jquery-1.1b.js
> >>
> >> - Download 1.0 Compatibility Plugin (Makes 1.1 have the same API as 1.0):
> >>   
> >> http://jquery.com/dev/svn/trunk/plugins/compat-1.0/jquery.compat-1.0.js?format=txt
> >>
> >> - Please submit new bug reports here:
> >>   http://jquery.com/dev/bugs/new/
> >>
> >> --John
> >>
> >> ___
> >> jQuery mailing list
> >> discuss@jquery.com
> >> http://jquery.com/discuss/
> >>
> >>
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
> >
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Look Ma no IMG-tag - FaviconLinkMarker Beta3 out

2007-01-11 Thread Joan Piedra

Hey Olaf,
I believe your markup should use a rel attribute instead of the class
attribute.

Something like this, and make the call with the position as optional.

http://jquery.com"; rel="external">jQuery
$('[EMAIL PROTECTED]').favicon('External link: ');

Pretty nice plugin you have, good job.


On 1/10/07, Olaf Bosch <[EMAIL PROTECTED]> wrote:


Hi all, here is FaviconLinkMarker Beta3:

http://olaf-bosch.de/bugs/jquery/links3.html

- No IMG-tag, all CSS
- config. Favicon left or right (before/after)
- editable TITLE-tag
- No CSS edit for using
- No CSS overwritten, all what you in CSS given is after JS given (i
hope ;) )

*attantion!!!* IE have a bug, the image are not consistent for linebreaks

All sugestion are wellcome


--
Viele Grüße, Olaf

---
[EMAIL PROTECTED]
http://olaf-bosch.de
www.akitafreund.de
---

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/





--
Joan Piedra || Frontend webdeveloper
http://joanpiedra.com/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery Powered Sites - Keep the Links Coming

2007-01-11 Thread bmsterling

Here is one that is complete, I have about three more still in development
and will post when they are out of beta.

http://www.informationexperts.com
Plug in used: 
 Accordion (modified heavily)
 Thickbox  (modified slightly)
 Flash  (modified slightly)
-- 
View this message in context: 
http://www.nabble.com/jQuery-Powered-Sites---Keep-the-Links-Coming-tf2955158.html#a8278094
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Look Ma no IMG-tag - FaviconLinkMarker Beta3 out

2007-01-11 Thread Olaf Bosch
Klaus Hartl schrieb:

> Assigning the property with a dynamic name fails here... try:
> 
> var dir = place == "after" ? 'right' : 'left'

good, will later go on

> You could handle that as an option: {img: true|false} maybe...

Hahah, wonderfull, there I could also have got on myself ;)

-- 
Viele Grüße, Olaf

---
[EMAIL PROTECTED]
http://olaf-bosch.de
www.akitafreund.de
---

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Look Ma no IMG-tag - FaviconLinkMarker Beta3 out

2007-01-11 Thread Olaf Bosch
David Duymelinck schrieb:

>> What about this?
>>
>>   
> With the #text a links your own links don't show the favicon in FF2 and IE7

:) it's a feature, no Favicon with *intern* links, this Script is for 
external Links
The last 2 Links are to my domain, for testing,
href="www.my.de" and href="../"

and this all automatic.

Thank you for your Feedback.

-- 
Viele Grüße, Olaf

---
[EMAIL PROTECTED]
http://olaf-bosch.de
www.akitafreund.de
---

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Show submit button only...

2007-01-11 Thread Web Specialist

Hi all,

anyone have an example using Form Validate plugin (
http://www.willjessup.com/sandbox/jquery/form_validator/form_validate.html)
where submit button appears only after all form fields are
correct(validated)?

Thanx for your time.
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Stop an ajax call

2007-01-11 Thread Roberto Ortelli
Ámon,
we made this solution using DWR and not jQuery...

2007/1/11, Ámon Tamás <[EMAIL PROTECTED]>:
> Roberto Ortelli wrote:
> > Hello Felix,
> >
> > 2007/1/11, Felix Geisendörfer <[EMAIL PROTECTED]>:
> >
> >>  Unless I've missed a new kind of hack, there is no way to upload a file 
> >> via
> >> Ajax. So assuming you are working with a iframe you can try something like
> >> this:
> >
> > Eheh right, we're using an iframe :P
> >
> > Thanks for your answer.
> >
>
> Could You show me Your file upload solution? Because I working on a same
> thing.
>
> --
> Ámon Tamás
> http://linkfelho.amon.hu
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


-- 
Roberto Ortelli
http://weblogger.ch

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Stop an ajax call

2007-01-11 Thread Ámon Tamás
Roberto Ortelli wrote:
> Hello Felix,
> 
> 2007/1/11, Felix Geisendörfer <[EMAIL PROTECTED]>:
> 
>>  Unless I've missed a new kind of hack, there is no way to upload a file via
>> Ajax. So assuming you are working with a iframe you can try something like
>> this:
> 
> Eheh right, we're using an iframe :P
> 
> Thanks for your answer.
> 

Could You show me Your file upload solution? Because I working on a same 
thing.

-- 
Ámon Tamás
http://linkfelho.amon.hu


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Simple(ish?) "bring to top" method

2007-01-11 Thread Su

No.
The whole problem is that there's a static number in that statement. So
eventually, all the panels end up with that same z-index, which makes them
revert to stacking in source order.

On 1/11/07, Joan Piedra <[EMAIL PROTECTED]> wrote:


Can't you just use z-index in $(this)??

onStop : function() {
> $(this).css("z-index","1");
> }



On 1/9/07, Su <[EMAIL PROTECTED]> wrote:

> I've got something I'm building wherein several boxes will be draggable.
> What I'd like to do is have a function that can be called when dragging
> stops(Interface onStop), or just when a box is clicked that would bring it
> to the top of the stack via the z-index.
>
> Of course, the writers of the CSS spec didn't think to just provide a
> "top" value, so this isn't directly possible.
> I tried something like just:
>
> onStop : function() {
> $('.dragbox').css("z-index","1");
> $(this).css("z-index","1");
> }
>
> but that ends up pretty obviously wrong, since it causes the other
> elements to shuffle. They're all set to "1," and so end up in the natural
> source-order stacking, rather than retaining their relative positions, just
> under the currently active box.
>
> Is there a way to do this that isn't too involved? Speak to me like
> someone who knows just enough JS to break other people's JS *grin*
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>
>


--
Joan Piedra || Frontend webdeveloper
http://joanpiedra.com/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Stop an ajax call

2007-01-11 Thread Roberto Ortelli
Hello Felix,

2007/1/11, Felix Geisendörfer <[EMAIL PROTECTED]>:

>  Unless I've missed a new kind of hack, there is no way to upload a file via
> Ajax. So assuming you are working with a iframe you can try something like
> this:

Eheh right, we're using an iframe :P

Thanks for your answer.

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Stop an ajax call

2007-01-11 Thread Felix Geisendörfer


Dear all,
We've made an ajax upload form attaching multiple files. Now, we would
like that the user can stop the attaching process of file by clicking
on a link.
Unless I've missed a new kind of hack, there is no way to upload a file 
via Ajax. So assuming you are working with a iframe you can try 
something like this:


$('iframe')[0].location.href = '404.html';

But if you really need to make sure that cancel will cause *no file* to 
be uploaded, you need to have a rollback mechanism where every upload 
has a unique id and you can send an Ajax call to the server causing that 
tells the server "Block processing or delete the uploaded files 
associated with id: xyz". This of course would be a little more complex, 
but as you cannot know whether an upload is already been processed by 
the server when the user hit's cancel, it's necessary.


Good luck with it,
Felix
--
http://www.thinkingphp.org
http://www.fg-webdesign.de


Roberto Ortelli wrote:

Dear all,
We've made an ajax upload form attaching multiple files. Now, we would
like that the user can stop the attaching process of file by clicking
on a link.

How can we kill an ajax call with jQuery?


  
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Stop an ajax call

2007-01-11 Thread Roberto Ortelli
Dear all,
We've made an ajax upload form attaching multiple files. Now, we would
like that the user can stop the attaching process of file by clicking
on a link.

How can we kill an ajax call with jQuery?


-- 
Roberto Ortelli
http://weblogger.ch

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Select _other_ elements (with a specific class) in same tr

2007-01-11 Thread Brian Miller
jazzle,

You're going to have to code your way out of this one.  Ultimately, you
need to write an onClick or onChange event that looks at the other
checkboxes to see if they are checked, and determine what to do from
there.

Here's a thought (off the top, untested):
$('.noneorone:checkbox').bind('click', function(){
if ( $('.noneorone:checked').length > 1 && !this.checked ) return
false; // returning false prevents the "click" action, which would
stop the checkbox from being checked.
})

Maybe radio buttons are a better choice for this?  It'll save you some
work.  :)

- Brian


> That title may not make much sense, so here's the code:
>
>   
> class="noneorone" />
> class="noneorone" />
>   
>
> I want to be able to select _none or one_ of the checkboxes (note: not
> using
> radio-buttons).
> So I would like to know how to address the _other_ checkboxes (with the
> class noneorone) in the same .
>
> Do I need some XPath mixed with CSS or what?
>
>
> Thanks in advance for any help.
> --
> View this message in context:
> http://www.nabble.com/Select-_other_-elements-%28with-a-specific-class%29-in-same-tr-tf2958743.html#a8277172
> Sent from the JQuery mailing list archive at Nabble.com.
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Look Ma no IMG-tag - FaviconLinkMarker Beta3 out

2007-01-11 Thread David Duymelinck
Olaf Bosch schreef:
> Olaf Bosch schrieb:
>
>   
>> I would make 2 plugs, one with IMG one with CSS.
>> 
>
> So, and here is the latest version with IMG:
> http://olaf-bosch.de/bugs/jquery/links2.html
>
> - added a SPAN wrap to A and IMG with nowrap
> - Opera used Extra-CSS
>
> What about this?
>
>   
With the #text a links your own links don't show the favicon in FF2 and IE7

-- 
David Duymelinck

[EMAIL PROTECTED]


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] mousewheel plugin updated

2007-01-11 Thread Brandon Aaron
It is fixed. :)

--
Brandon Aaron

On 1/11/07, Brandon Aaron <[EMAIL PROTECTED]> wrote:
> Sorry, that was my fault. Copy and paste from previous test page.
> There aren't supposed to be limitations. I'll update the test page
> shortly.
>
> --
> Brandon Aaron
>
> On 1/11/07, David Duymelinck <[EMAIL PROTECTED]> wrote:
> > Brandon Aaron schreef:
> > > Test page: http://brandon.jquery.com/plugins/mousewheel/test/test.html
> > >
> > I tested the page on FF2 and i didn't see the log frame.
> >
> > In IE7 tests 6 and 7 fail their limitation. They both show movement up
> > and down.
> >
> > Nice work. I didn't know it could get the speed of the movement but i
> > haven't used it yet. I already made it into a game to get the highest
> > movement (24.975) :)
> >
> > --
> > David Duymelinck
> > 
> > [EMAIL PROTECTED]
> >
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Simple(ish?) "bring to top" method

2007-01-11 Thread David Duymelinck

> onStop : function() {
> $(this).css("z-index","1");
> }
>
>
>
> On 1/9/07, *Su* <[EMAIL PROTECTED] 
> > wrote:
>
> I've got something I'm building wherein several boxes will be
> draggable. What I'd like to do is have a function that can be
> called when dragging stops(Interface onStop), or just when a box
> is clicked that would bring it to the top of the stack via the
> z-index.
>
> Of course, the writers of the CSS spec didn't think to just
> provide a "top" value, so this isn't directly possible.
> I tried something like just:
>
> onStop : function() {
> $('.dragbox').css("z-index","1");
> $(this).css("z-index","1");
> }
>
I believe you have to use zIndex. You have to search the previous 
threads. It's been discussed before.

-- 
David Duymelinck

[EMAIL PROTECTED]


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] mousewheel plugin updated

2007-01-11 Thread Brandon Aaron
Sorry, that was my fault. Copy and paste from previous test page.
There aren't supposed to be limitations. I'll update the test page
shortly.

--
Brandon Aaron

On 1/11/07, David Duymelinck <[EMAIL PROTECTED]> wrote:
> Brandon Aaron schreef:
> > Test page: http://brandon.jquery.com/plugins/mousewheel/test/test.html
> >
> I tested the page on FF2 and i didn't see the log frame.
>
> In IE7 tests 6 and 7 fail their limitation. They both show movement up
> and down.
>
> Nice work. I didn't know it could get the speed of the movement but i
> haven't used it yet. I already made it into a game to get the highest
> movement (24.975) :)
>
> --
> David Duymelinck
> 
> [EMAIL PROTECTED]
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Look Ma no IMG-tag - FaviconLinkMarker Beta3 out

2007-01-11 Thread Olaf Bosch
Olaf Bosch schrieb:

> I would make 2 plugs, one with IMG one with CSS.

So, and here is the latest version with IMG:
http://olaf-bosch.de/bugs/jquery/links2.html

- added a SPAN wrap to A and IMG with nowrap
- Opera used Extra-CSS

What about this?

-- 
Viele Grüße, Olaf

---
[EMAIL PROTECTED]
http://olaf-bosch.de
www.akitafreund.de
---

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] mousewheel plugin updated

2007-01-11 Thread David Duymelinck
David Duymelinck schreef:
> Brandon Aaron schreef:
>   
>> Test page: http://brandon.jquery.com/plugins/mousewheel/test/test.html
>>   
>> 
> I tested the page on FF2 and i didn't see the log frame.
>
> In IE7 tests 6 and 7 fail their limitation. They both show movement up 
> and down.
>
> Nice work. I didn't know it could get the speed of the movement but i 
> haven't used it yet. I already made it into a game to get the highest 
> movement (24.975) :)
>
>   
in FF it's firebug log of course :) but it fails test 6 and 7 too

-- 
David Duymelinck

[EMAIL PROTECTED]


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Look Ma no IMG-tag - FaviconLinkMarker Beta3 out

2007-01-11 Thread Klaus Hartl
Olaf Bosch schrieb:
> Klaus Hartl schrieb:
> 
>> The only fix I know for that bug is to give the link white-space: nowrap.
> 
> Yes, and is include, works not in IE. This Bug is no new for me, i have 
> never see a fixing.
> 
>> is the background-positioning, thus to avoid redundant code:
> 
> Ah looks cool, i love short code. Have you a idea why i not become to 
> work. See, is need left or right also in the padding. I try so in many 
> many configs, all broken:
> 
> jQuery(this).attr({ title: ""+titletxt+" "+hrefvalue+"" }).css({
>  background: "transparent url("+cuesrc+") no-repeat " + (place == 
> "after" ? "right" : "left") + " center",
>  "padding-" + (place == "after" ? "right" : "left") + "": "19px",
>  "white-space": "nowrap"});

Assigning the property with a dynamic name fails here... try:

var dir = place == "after" ? 'right' : 'left'
var css = {
 background: "transparent url(" + cuesrc + ") no-repeat " + dir + " 
center",
 "white-space": "nowrap"
};
css["padding-" + dir] = '19px';
jQuery(this).attr({ title: ""+titletxt+" "+hrefvalue+"" }).css(css);


>> Downside with inline styles is that you can't override them in IE for print.
> 
> I would make 2 plugs, one with IMG one with CSS.

You could handle that as an option: {img: true|false} maybe...


-- Klaus


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] mousewheel plugin updated

2007-01-11 Thread Andy Matthews
Nice Brandon...

IE7 here. Everything seemed to work as promised except test 6 which says
"should only do something when the mousewheel is moved down." yet I got a
response in the monitor pane when I moved the mousewheel up. Just FYI.

This works really well, you should be proud of yourself. I can easily where
many people will leverage your work.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Brandon Aaron
Sent: Thursday, January 11, 2007 8:36 AM
To: jQuery Discussion.
Subject: [jQuery] mousewheel plugin updated

I've made some big changes to the mousehweel plugin. All of these changes
are based on quality feedback from users of the mousehweel plugin. First, I
really simplified the API. The only methods are:
 - mousewheel()
 - unmousewheel()

The mousewheel() method takes only one function and a second optional param
called preventDefault. The function passed in still needs to be ready for
two params, event and delta. The delta is a number greater or lesser than 0
indicating the velocity and direction of the mousewheel. The preventDefault
param is defaulted to true now.

There are two other features that I added in. You can now have nested
elements that use the mousewheel event and you can add multiple handlers to
the same element.

Test page: http://brandon.jquery.com/plugins/mousewheel/test/test.html
Source from SVN:
http://jquery.com/dev/svn/trunk/plugins/mousewheel/mousewheel.js?format=txt

Enjoy!

--
Brandon Aaron

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Simple(ish?) "bring to top" method

2007-01-11 Thread Joan Piedra

Can't you just use z-index in $(this)??

onStop : function() {

$(this).css("z-index","1");
}




On 1/9/07, Su <[EMAIL PROTECTED]> wrote:


I've got something I'm building wherein several boxes will be draggable.
What I'd like to do is have a function that can be called when dragging
stops(Interface onStop), or just when a box is clicked that would bring it
to the top of the stack via the z-index.

Of course, the writers of the CSS spec didn't think to just provide a
"top" value, so this isn't directly possible.
I tried something like just:

onStop : function() {
$('.dragbox').css("z-index","1");
$(this).css("z-index","1");
}

but that ends up pretty obviously wrong, since it causes the other
elements to shuffle. They're all set to "1," and so end up in the natural
source-order stacking, rather than retaining their relative positions, just
under the currently active box.

Is there a way to do this that isn't too involved? Speak to me like
someone who knows just enough JS to break other people's JS *grin*

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/






--
Joan Piedra || Frontend webdeveloper
http://joanpiedra.com/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] mousewheel plugin updated

2007-01-11 Thread David Duymelinck
Brandon Aaron schreef:
> Test page: http://brandon.jquery.com/plugins/mousewheel/test/test.html
>   
I tested the page on FF2 and i didn't see the log frame.

In IE7 tests 6 and 7 fail their limitation. They both show movement up 
and down.

Nice work. I didn't know it could get the speed of the movement but i 
haven't used it yet. I already made it into a game to get the highest 
movement (24.975) :)

-- 
David Duymelinck

[EMAIL PROTECTED]


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery 1.1b

2007-01-11 Thread spinnach
..i have a couple of issues with both jquery 1.1b and the compatibility 
plugin.. this is the code from the compatibility plugin:
jQuery.each(["id","title","name","href","src","rel"], function(i){
jQuery.fn[ i ] = function(h) {
return h == undefined ?
this.length ? this[0][i] : null :
this.attr( i, h );
};
});

it should be (i think):

jQuery.each(["id","title","name","href","src","rel"], function(i, n){
jQuery.fn[ n ] = function(h) {
return h == undefined ?
this.length ? this[0][n] : null :
this.attr( i, n );
};
});

..also firebug reports t.replace is not a function (t=t.replace(re,"")); 
  in the find function...


Allan Mullan wrote:
> Awesome stuff guys, the couple of issues I had are no longer. :-)
> 
> Look forward to having more hands-on with jQuery this year, I've learnt 
> so much about Javascript from jQuery and hoping I can help where needed.
> 
> Allan
> 
> 
> John Resig wrote:
>> Hi Everyone -
>>
>> We're nearly ready for the big 1.1 release, this Sunday - but to tie
>> you over, here's another set of bug fixes to test upon. The jQuery dev
>> team has been working long-and-hard to fix all the support requests
>> that've been coming in this week, and we've been pretty successful in
>> fixing just about everything that's come across our plate.
>>
>> We'd really appreciate it if you'd take the time to test the new 1.1b
>> with your code, and if you spot any bugs, to please submit them to the
>> bug tracker.
>>
>> It's not all bug fixes, however; we do have something new for you to
>> try: The jQuery 1.0 Compatibility Plugin. As promised, this plugin
>> provides all of the methods and selectors that were present in the
>> last 1.0.4 release. So, theoretically, you should be able to drop in
>> jQuery 1.1, and the new compatibility plugin and everything should
>> work seamlessly.
>>
>> This is how you would use the compatibility plugin with jQuery 1.1:
>>
>> 
>> 
>>   
>>   
>>   
>> $(document).ready(function(){
>> // Your old 1.0-centric code
>> });
>>   
>> 
>> 
>> 
>>
>> So, while its fully possible to continue using the compatibility
>> plugin into the foreseeable future, it is highly recommended that you
>> follow the upgrade plans mentioned before:
>> http://jquery.com/blog/2007/01/08/jquery-11a/
>>
>> So, again; please help us test this beta release! The more you help
>> test, the better the final 1.1 release is going to be. Thanks for all
>> your help!
>>
>> Download
>>
>> - Download 1.1b Uncompressed (Testing Only!):
>>   http://jquery.com/src/jquery-1.1b.js
>>
>> - Download 1.0 Compatibility Plugin (Makes 1.1 have the same API as 1.0):
>>   
>> http://jquery.com/dev/svn/trunk/plugins/compat-1.0/jquery.compat-1.0.js?format=txt
>>
>> - Please submit new bug reports here:
>>   http://jquery.com/dev/bugs/new/
>>
>> --John
>>
>> ___
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>>
>>   
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Select _other_ elements (with a specific class) in same tr

2007-01-11 Thread Karl Swedberg

On Jan 11, 2007, at 8:44 AM, Karl Swedberg wrote:


Something like this?

$('input:checkbox').bind('click', function() {
$(this).parents('tr').siblings().find('input.noneorone')
});


Ugh. I misread the request. Forget my answer. Use Yehuda's. :)




On Jan 11, 2007, at 8:14 AM, jazzle wrote:



(sorry for edit)
(I meant to add that I don't want to use the ids if possible)

That title may not make much sense, so here's the code:

  
   
class="noneorone" />
   
class="noneorone" />
   
class="noneorone" />
  

I want to be able to select _none or one_ of the checkboxes (note:  
not using

radio-buttons).
So I would like to know how to address the _other_ checkboxes  
(with the

class noneorone) in the same .

Do I need some XPath mixed with CSS or what?


Thanks in advance for any help.
--
View this message in context: http://www.nabble.com/Select-_other_- 
elements-%28with-a-specific-class%29-in-same-tr- 
tf2958743.html#a8277172

Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Safari Widget Pack

2007-01-11 Thread Brandon Aaron
This is going to be very nice Yehuda. Great work!

--
Brandon Aaron

On 1/11/07, Yehuda Katz <[EMAIL PROTECTED]> wrote:
> I've begun work on a Safari widget pack, that allows you to work with Safari
> widgets in a way more jQuery way.
>
> For example:
>
>   var y =
> $("#scrollArea").makeScrollAreaWithBars({singlepressScrollPixels:
> 50}, {id: "scrollBar"}, {id: "horizBar"})
> .bind("mouseover", function() { y.focus(); }).bind("mouseout",
> function() { y.blur(); })
>   z = $("button").makeGlassButton();
>   z[0].click(function() { y.horizontalScrollbar ().toggleAutohide(); });
>   z[1].click(function() { y.verticalScrollbar().toggle(); })
>
> The above code does the following:
>
> Line 1: Converts a div with id scrollArea into an AppleScrollArea with
> horizontal and vertical scrollBars (with attributes provided)
> Line 2: binds a mouseover event to the newly created scrollArea widget and
> then a mouseout event
> Line 3: Converts all buttons on the page into glass buttons, and returns an
> array of the new glass buttons
> Line 4: Gets the first glassButton and binds a click handler which toggles
> the autohide on the scrollArea's horizontal scrollbar
> Line 5: Gets the second glassButon and binds a click handler which toggles
> the vertical scrollbar
>
> This would obviously be way more than 5 lines if you used the Apple API ;)
>
> The files are in the plugins in svn under safari_widgets. There's still a
> lot of work to do, but I wanted to get some feedback on the work I did. The
> best way to look at it is to open the HTML file that's packed with the svn.
> You'll need OSX 10.4.3 or higher.
>
> Thanks!
>
> --
> Yehuda Katz
> Web Developer | Wycats Designs
> (ph)  718.877.1325
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


  1   2   >