[jQuery] Autocompleter update

2006-09-05 Thread Dylan Verheul
Plugin: Autocompleter
Url: http://www.dyve.net/jquery?autocomplete
Docs: http://www.dyve.net/jquery/autocomplete.txt

New options:

The options below provide a better user experience (automatically
picking results) and advanced markup options (the approach is a little
different, but this could be used to duplicate the script.aculo.us
demo with pictures in the results).

selectFirst (default value: false)
If this is set to true, the first autocomplete value will be
automatically selected on tab/return, even if it has not been
handpicked by keyboard or mouse action. If there is a handpicked
(highlighted) result, that result will take precedence.

selectOnly (default value: false)
If this is set to true, and there is only one autocomplete when the
user hits tab/return, it will be selected even if it has not been
handpicked by keyboard or mouse action. This overrides selectFirst.

formatItem (default value: none)
A JavaScript funcion that can provide advanced markup for an item.
For each row of results, this function will be called. The returned
value will be displayed inside an LI element in the results list. See
the source code of http://www.dyve.net/jquery?autocomplete for an
example.

None of this will break compatibility, you can just use the new js
without any changes to your existing code.

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


Re: [jQuery] IE opacity change weirdresult

2006-09-05 Thread Mohsen Saboorian
Somewhere on the web told that adding background-color: transparent
also works, but I couldn't make it work.

On 9/5/06, Klaus Hartl <[EMAIL PROTECTED]> wrote:
>
>
> kawikak schrieb:
> > You need to give the element your are changing opactiy for "layout". The
> > easiest way to do this is to give the element a background color.
>
>
> I'm very sorry, it is not true that background will trigger layout.
> Please read the following regarding "layout" in IE:
> http://www.satzansatz.de/cssd/onhavinglayout.html
>
> The distorted fonts bug is related to the alpha filter applied to an
> element with bold font. The only known fix by now is to apply a
> background color to the element that has the filter.
>
> True is, that the filter will only work if the element has "layout".
>
>
> -- Klaus
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

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


Re: [jQuery] IE opacity change weirdresult

2006-09-05 Thread Mohsen Saboorian
Thank you Dave.

> Is it possible that it's related to ClearType? The IE blog describes a
> similar wierdness that they supposedly fixed in IE7 by disabling ClearType
> if a transform was being applied.
>
> Does the problem go away if you disable ClearType?

I disabled ClearType but the problem also exists when font size is
bigger than a limit (e.g. 20pt for Arial).

I found some posts on weblogs that mentioned this problem with bold
fonts, and the only solution there is to add a background to it.


> Maybe it would work to remove the filter when z.now==1, right now it seems
> to set it to 100%.
> y.filter = "alpha(opacity=" + z.now*100 + ")";
No it is correct.

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


Re: [jQuery] So I guess Ajax is the end of the web

2006-09-05 Thread Rey Bango
> Flash 9 and Flex 2 are awesome, but its horses for courses. Flex 2 is
> for full on applications. JavaScript CAN achieve some of the same
> things in web applications, but it's power is that it works well with
> HTML and CSS in enhancing a web site, whereas Flex can do no such
> thing without making the site less accessible (IMO, though I think
> most would agree).

This was my main point in my original blog posting and what lead to my 
subsequent debate with Ryan on his blog. Flex 2 is not the "end all, be 
all" of RIA development and while Flex 2 does provide some really nice 
features, it is IMO, too heavy of a product for building RIA's for the 
Internet that most people use day to day, especially those on dialup. 
This is where technologies such as Javascript/Ajax/Interface/moo.fx et 
al. really shine.

Rey...

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


Re: [jQuery] So I guess Ajax is the end of the web

2006-09-05 Thread Larry Garfield
On Tuesday 05 September 2006 22:04, Justin Carter wrote:
> On 9/6/06, Rey Bango <[EMAIL PROTECTED]> wrote:
> > Figured you all might take a gander at this and weigh in:
> >
> > http://blogs.zdnet.com/Stewart/?p=101
> >
> > He and I have been having our own little "discussion". :P
> >
> > Rey...
>
> Ugh, I stopped reading half way and just skimmed the rest :P
>
> Flash 9 and Flex 2 are awesome, but its horses for courses. Flex 2 is
> for full on applications. JavaScript CAN achieve some of the same
> things in web applications, but it's power is that it works well with
> HTML and CSS in enhancing a web site, whereas Flex can do no such
> thing without making the site less accessible (IMO, though I think
> most would agree).

When I can write Flash in the open source text editor of my choice and have it 
play in full glory in an open source web browser on an open source OS with an 
open source flash player that isn't 3 versions behind, then I'll care about 
Flash.  Until then, it's dead to me.

-- 
Larry Garfield  AIM: LOLG42
[EMAIL PROTECTED]   ICQ: 6817012

"If nature has made any one thing less susceptible than all others of 
exclusive property, it is the action of the thinking power called an idea, 
which an individual may exclusively possess as long as he keeps it to 
himself; but the moment it is divulged, it forces itself into the possession 
of every one, and the receiver cannot dispossess himself of it."  -- Thomas 
Jefferson

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


Re: [jQuery] Test Suit Update

2006-09-05 Thread Larry Garfield
I know Konquer isn't a supported browser, but it's what I use so here's 
results from it anyway:

11. tests/011-css.js (1, 0, 1)
15. tests/015-wrap.js (1, 0, 1)
32. tests/032-is.js (1, 21, 22)
34. tests/034-$.find.js (1, 48, 49)
41. tests/041-eventTesting.js (1, 2, 3)

Those came back red/failed.  Everything else got a green light.

On Tuesday 05 September 2006 13:01, Jörn Zaefferer wrote:
> Hi folks,
>
> there are now much more test cases in the jQuery code, together with
> some changes to the test suit itself. The difficulty of writing tests:
> The test code itself is error prone, too.Please have a look at this
> preview ( http://joern.jquery.com/test/ ) and check it with different
> browsers and operating systems. There should be two tests failing in the
> current suite, please report any other failures directly to me, post it
> on this list or file a bug report marked with [tests].
>
> If anyone has an idea how to test the FX module, in other words, all
> those animations, I'd appreciate them!
>
> -- Jörn
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/

-- 
Larry Garfield  AIM: LOLG42
[EMAIL PROTECTED]   ICQ: 6817012

"If nature has made any one thing less susceptible than all others of 
exclusive property, it is the action of the thinking power called an idea, 
which an individual may exclusively possess as long as he keeps it to 
himself; but the moment it is divulged, it forces itself into the possession 
of every one, and the receiver cannot dispossess himself of it."  -- Thomas 
Jefferson

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


Re: [jQuery] So I guess Ajax is the end of the web

2006-09-05 Thread Justin Carter
On 9/6/06, Rey Bango <[EMAIL PROTECTED]> wrote:
> Figured you all might take a gander at this and weigh in:
>
> http://blogs.zdnet.com/Stewart/?p=101
>
> He and I have been having our own little "discussion". :P
>
> Rey...

Ugh, I stopped reading half way and just skimmed the rest :P

Flash 9 and Flex 2 are awesome, but its horses for courses. Flex 2 is
for full on applications. JavaScript CAN achieve some of the same
things in web applications, but it's power is that it works well with
HTML and CSS in enhancing a web site, whereas Flex can do no such
thing without making the site less accessible (IMO, though I think
most would agree).

I wish people would draw the line in the sand a little more rather
than trying to put one up against the other every time - they both
have very good strengths :)

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


Re: [jQuery] So I guess Ajax is the end of the web

2006-09-05 Thread Matt Stith
Yeah... all browsers supporting all standards.. that would be too easy! That will never happen!On 9/5/06, Rey Bango <
[EMAIL PROTECTED]> wrote:Figured you all might take a gander at this and weigh in:
http://blogs.zdnet.com/Stewart/?p=101He and I have been having our own little "discussion". :PRey...___
jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] On-Demand Javascript?

2006-09-05 Thread Christof Donat
Hi,

> For example, Christof's scriptloader could use jQ's ajax code, or could
> merge with it. 

That is something that won't happen. I whanted it to be as small as possible. 
I felt that the JSAN core had to many functions that are not necessary for 
the basic functionalitiy of resolving dependencies and loading scripts 
dynamically. If I had to load jQuery and the ajax-plugin before I'd be better 
off to user JSAN.

As I said I use it to load jQuery and the plugins as well and sometimes I load 
them delayed like e.g. in an event Handler.

Christof



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


[jQuery] So I guess Ajax is the end of the web

2006-09-05 Thread Rey Bango
Figured you all might take a gander at this and weigh in:

http://blogs.zdnet.com/Stewart/?p=101

He and I have been having our own little "discussion". :P

Rey...

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


[jQuery] Bug with .css('z-index', '2')

2006-09-05 Thread aedmonds

Wanted to say that $().css('z-index', '2') does not work in IE but does work
in FF. What will work in both browsers is $().css('zIndex', '2').

Not sure if this is a bug but it did throw me for a loop for a few minutes.
I actually just noticed it because 'z-index' was working fine pre-1.0. I'm
currently using "Rev: 249".

Can anyone else confirm this?

-Aaron
-- 
View this message in context: 
http://www.nabble.com/Bug-with-.css%28%27z-index%27%2C-%272%27%29-tf2224146.html#a6162855
Sent from the JQuery forum at Nabble.com.


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


Re: [jQuery] Confused German User

2006-09-05 Thread sunsean
> http://praegnanz.de/weblog/elegantere-programmierung-der-blogtoys

John, he's saying that <<  $(".blogtoy
h2").find("div").toggle("slow");  >> does not work.
He's a little confused with the Moo.fx toggle function or something
like that, my german not awesome. At least I tried. =P

~Sean

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


[jQuery] Confused German User

2006-09-05 Thread John Resig
Hello Everyone -

I ran across a blog today, in German, and the author seems to be
having difficulties using/understanding jQuery. I'd like to help, but
Google Translate is failing me. If anyone can figure out what he's
asking about, I'd be most appreciative:
http://praegnanz.de/weblog/elegantere-programmierung-der-blogtoys

Thanks!

--John

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


Re: [jQuery] Problems with 'each' function in IE

2006-09-05 Thread Aaron Heimlich
In Opera 9.01 I get no errors, but the textbox is blank. Firefox 1.5.0.6 is fine, and IE6 displays the error you describedOn 9/5/06, 
Tom Poole <[EMAIL PROTECTED]> wrote:
Thanks to everyone.John - I made a quick test case, uploaded it to here:http://www.weekinwilts.com/xml/ Hope it helps...___
jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Problems with 'each' function in IE

2006-09-05 Thread Tom Poole
Thanks to everyone.

John - I made a quick test case, uploaded it to here:
http://www.weekinwilts.com/xml/ Hope it helps...

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


Re: [jQuery] Font-weight modifier in jQuery

2006-09-05 Thread Dan Atkinson

Woo!

I discovered a bug! Sorta!

I'm happy, and yet also quite sad! :)


John Resig wrote:
> 
>> I don't see it either, which is why I proposed using a camelCase example
>> to
>> make it clear that was the way to handle css properties that have a dash
>> in
>> them.
> 
> This is actually a mistake on my part, I think. I originally had it
> such that you could provide "font-weight" or "fontWeight" and either
> would work in Firefox and IE (parsing the text where necessary). I
> think it must've regressed at some point.
> 
> The bug report for it is contained here:
> http://jquery.com/dev/bugs/bug/170/
> 
> --John
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Font-weight-modifier-in-jQuery-tf2220759.html#a6160726
Sent from the JQuery forum at Nabble.com.


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


Re: [jQuery] Problems with 'each' function in IE

2006-09-05 Thread Tom Poole
Sam - Thanks for your reply. I forgot to mention the XML file loads correctly.

I tried doing a simple alert(this); All other browsers return '[object
Element]' whilst IE only returns '[object]'.

On 9/5/06, Sam <[EMAIL PROTECTED]> wrote:
> Don't know if this is your problem:  IE's Ajax service won't load XML from 
> your local drive.  It's got to come from a http service.
>
> Sam
>
>
>
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

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


Re: [jQuery] Problems with 'each' function in IE

2006-09-05 Thread John Resig
Hi Tom -

I think this is a "known issue" - and there's currently a bug for it:
http://jquery.com/dev/bugs/bug/174/

Do you think you could try and make a simple test case for this - one
that I can use to help duplicate the problem? That would be most
helpful, thanks.

--John

On 9/5/06, Tom Poole <[EMAIL PROTECTED]> wrote:
> Hello,
> Sorry if this is blindly obvious, but I'm having a few problems with
> this function in IE. It works fine in the Gecko browsers, Safari and
> Opera.
>
> The function is a simple ajax post which returns back the xml
> document. I then use the 'each' function to display the text of each
> 'yelement'. Internet Explorer's ever helpful debugger informs me that
> the 'Object doesn't support this property or method'.
>
> Can someone tell me what is going on here? I'm not sure if I'm being
> stupid or IE is being a pain (again). Any help would be great!
>
>
> function ajax_post()
> {
> $.post("foo.php", { x: q }, function(xml){
>
> $("yelement",xml).each(function(i){
> alert($(this).text()); // this doesn't work in IE.
> });
>
> });
>
> }
>
> - Tom
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


-- 
John Resig
http://ejohn.org/
[EMAIL PROTECTED]

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


Re: [jQuery] Problems with 'each' function in IE

2006-09-05 Thread Klaus Hartl
Hi Tom,

IE is a pain again, I created a ticket for this already:

http://jquery.com/dev/bugs/bug/164/


See also here:
http://jquery.com/discuss/2006-August/010246/


John, this has been working in pre 1.0, any chance to fix this soon?



-- Klaus



Tom Poole schrieb:
> Hello,
> Sorry if this is blindly obvious, but I'm having a few problems with
> this function in IE. It works fine in the Gecko browsers, Safari and
> Opera.
> 
> The function is a simple ajax post which returns back the xml
> document. I then use the 'each' function to display the text of each
> 'yelement'. Internet Explorer's ever helpful debugger informs me that
> the 'Object doesn't support this property or method'.
> 
> Can someone tell me what is going on here? I'm not sure if I'm being
> stupid or IE is being a pain (again). Any help would be great!
> 
> 
> function ajax_post()
> { 
>   $.post("foo.php", { x: q }, function(xml){  
> 
>   $("yelement",xml).each(function(i){ 
>   alert($(this).text()); // this doesn't work in IE.
>   });
> 
>   });
> 
> }
> 
> - Tom
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 

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


Re: [jQuery] Problems with 'each' function in IE

2006-09-05 Thread Sam
Don't know if this is your problem:  IE's Ajax service won't load XML from your 
local drive.  It's got to come from a http service.

Sam





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


Re: [jQuery] Need help with the CSS selector - :not()

2006-09-05 Thread Klaus Hartl


Mogrol schrieb:
> Thanks for the reply Klaus
> 
> Both links matches if I, inside the function, do: if (this.href == src) 
> and when I run the script and watch the output of the alert they also 
> match. I tried your tip just to be sure though but it still doesn't 
> exclude the matching href :-/
> 
> Did'nt know that different browsers gave a different href reply in 
> javascript if the links are relative though - thanks for the tip!
> 
> Regards
> Jimmy

You may still have the problem because this.href != 
this.getAttribute('href'). Browsers put the resolved URL in the href 
property, but for getAttribute('href') some return the source value, 
some also the resolved value.

If jQuery uses getAttribute for its attribute selector - and that is 
what I assume - than your filter will not work, since you say that 
this.href == src, thus src must be an absolute url.

this.href == 'http://foo.com/bar' (resolved value)
src == 'http://foo.com/bar' (the value you put in)
getAttribute('href') == '/bar' != 'http://foo.com/bar' (this is what 
jQuery looks for in your :not expression)

So with your expression jQuery tries to filter all the links for which 
getAttribute('href') returns the value of your src variable without any 
match if and only if the link in question is a relative link in your 
html source.

Some more information about that topic:
http://www.quirksmode.org/bugreports/archives/2005/02/getAttributeHREF_is_always_absolute.html
http://www.glennjones.net/Post/809/getAttributehrefbug.htm (seems to be 
down at the moment).


-- klaus

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


[jQuery] Problems with 'each' function in IE

2006-09-05 Thread Tom Poole
Hello,
Sorry if this is blindly obvious, but I'm having a few problems with
this function in IE. It works fine in the Gecko browsers, Safari and
Opera.

The function is a simple ajax post which returns back the xml
document. I then use the 'each' function to display the text of each
'yelement'. Internet Explorer's ever helpful debugger informs me that
the 'Object doesn't support this property or method'.

Can someone tell me what is going on here? I'm not sure if I'm being
stupid or IE is being a pain (again). Any help would be great!


function ajax_post()
{   
$.post("foo.php", { x: q }, function(xml){  

$("yelement",xml).each(function(i){ 
alert($(this).text()); // this doesn't work in IE.
});

});

}

- Tom

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


Re: [jQuery] Font-weight modifier in jQuery

2006-09-05 Thread Fil
> This is actually a mistake on my part, I think. I originally had it
> such that you could provide "font-weight" or "fontWeight" and either
> would work in Firefox and IE (parsing the text where necessary). I
> think it must've regressed at some point.

Ah! So I wasn't suddenly crazy :)

And for a dashed name as "font-weigth" I remember had to quote it, as
in {'font-weight': 'bold'}


-- Fil


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


Re: [jQuery] Font-weight modifier in jQuery

2006-09-05 Thread John Resig
> I don't see it either, which is why I proposed using a camelCase example to
> make it clear that was the way to handle css properties that have a dash in
> them.

This is actually a mistake on my part, I think. I originally had it
such that you could provide "font-weight" or "fontWeight" and either
would work in Firefox and IE (parsing the text where necessary). I
think it must've regressed at some point.

The bug report for it is contained here:
http://jquery.com/dev/bugs/bug/170/

--John

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


Re: [jQuery] XML as a database...?

2006-09-05 Thread John Resig
> I've used XML to read and locate elements.  Have solutions been developed to
> police multiple clients updating an XML file without overwriting each other?

Native XML Databases are awesome. Some info:
http://www.xml.com/pub/a/2001/10/31/nativexmldb.html

However, if you think XML, XPath, and the DOM is hard - just wait
until you get into XML Schema, XQuery, and XUpdate.

--John

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


Re: [jQuery] Need help with the CSS selector - :not()

2006-09-05 Thread Mogrol




Thanks for the reply Klaus

Both links matches if I, inside the function, do: if (this.href == src)
and when I run the script and watch the output of the alert they also
match. I tried your tip just to be sure though but it still doesn't
exclude the matching href :-/

Did'nt know that different browsers gave a different href reply in
_javascript_ if the links are relative though - thanks for the tip!

Regards
Jimmy


  
Mogrol schrieb:
  
  
Hi

I'm trying to get all links from the body in a page and in the same time 
excluding a single element with the matching href attribute using the 
:not css-selector but it does'nt seem to be working.

Is this not supported in the latest jQuery (1.0.1) or is there  
something wrong with my code? The _expression_ returns all links matching 
the rel but also returns the one with the matching href.

I know I could simply insert a: if (this.href != src) in the function to 
fix this but for my purposes the best way to do it is directly using jquery.

I'd be grateful for advices on this.

---

$('body [EMAIL PROTECTED]' + rel + ']:not([EMAIL PROTECTED]' + src +'])').each(function() {
   alert(this.href + '\n' + src);
});

  
  

Hi, maybe you ran into the problem that different browsers return 
different values for the href attribute if the value itself (in your 
html source) is a relative link.

If src is something like "/relative/path/to/somewhere" try the following 
snippet:

$('[EMAIL PROTECTED]' + rel + ']:not([EMAIL PROTECTED]' + src +'])').each(function() {
 alert(this.href + '\n' + src);
});

I think you can leave out the body selector here, links cannot occur 
outside the body anyway.

Or you can try to use the not function, but this should have the same 
result:

$('[EMAIL PROTECTED]' + rel + ']).not('[EMAIL PROTECTED]' + src +'])').each(function() {
 alert(this.href + '\n' + src);
});


-- Klaus

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

  




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


Re: [jQuery] Need help with the CSS selector - :not()

2006-09-05 Thread Klaus Hartl


Mogrol schrieb:
> Hi
> 
> I'm trying to get all links from the body in a page and in the same time 
> excluding a single element with the matching href attribute using the 
> :not css-selector but it does'nt seem to be working.
> 
> Is this not supported in the latest jQuery (1.0.1) or is there  
> something wrong with my code? The expression returns all links matching 
> the rel but also returns the one with the matching href.
> 
> I know I could simply insert a: if (this.href != src) in the function to 
> fix this but for my purposes the best way to do it is directly using jquery.
> 
> I'd be grateful for advices on this.
> 
> ---
> 
> $('body [EMAIL PROTECTED]' + rel + ']:not([EMAIL PROTECTED]' + src 
> +'])').each(function() {
>alert(this.href + '\n' + src);
> });


Hi, maybe you ran into the problem that different browsers return 
different values for the href attribute if the value itself (in your 
html source) is a relative link.

If src is something like "/relative/path/to/somewhere" try the following 
snippet:

$('[EMAIL PROTECTED]' + rel + ']:not([EMAIL PROTECTED]' + src 
+'])').each(function() {
 alert(this.href + '\n' + src);
});

I think you can leave out the body selector here, links cannot occur 
outside the body anyway.

Or you can try to use the not function, but this should have the same 
result:

$('[EMAIL PROTECTED]' + rel + ']).not('[EMAIL PROTECTED]' + src 
+'])').each(function() {
 alert(this.href + '\n' + src);
});


-- Klaus

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


Re: [jQuery] Need help with the CSS selector - :not()

2006-09-05 Thread John Resig
> $('body [EMAIL PROTECTED]' + rel + ']:not([EMAIL PROTECTED]' + src 
> +'])').each(function() {
>alert(this.href + '\n' + src);
> });

If I had to guess, it's an issue with your @href selector - which is
probably the most problematic selector to use - simply because
browsers inconsistently return what they "think" the href value is. If
I were you, I'd start my simply doing a regular [EMAIL PROTECTED] *= src]
selector, figuring out what URL you can use that will best match the
specified . @href *= matches anything within the @href attribute,
giving you more room to breath. Hope that helps.

--John

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


[jQuery] jquery.history.js and Safari

2006-09-05 Thread Fil
Hello !

I wanted to mention that the script at
http://www.mikage.to/jquery/jquery_history.html
fails in Safari.

The cause is that Safari doesn't update the location.hash value when you
press the "Back" button (though the address bar is correct).

Another error was that it added %23 in the URL (that became #%231 instead of
#1). This I fixed at line 52 with:
- location.hash = newhash;
+ location.hash = jQuery.browser.safari?hash:newhash; 

Alas, I don't know how to fix the bigger bug. And I get nightmares just
reading a solution given at
http://bloomd.home.mchsi.com/histapi/howitworks.html

-- Fil


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


[jQuery] Need help with the CSS selector - :not()

2006-09-05 Thread Mogrol
Hi

I'm trying to get all links from the body in a page and in the same time 
excluding a single element with the matching href attribute using the 
:not css-selector but it does'nt seem to be working.

Is this not supported in the latest jQuery (1.0.1) or is there  
something wrong with my code? The expression returns all links matching 
the rel but also returns the one with the matching href.

I know I could simply insert a: if (this.href != src) in the function to 
fix this but for my purposes the best way to do it is directly using jquery.

I'd be grateful for advices on this.

---

$('body [EMAIL PROTECTED]' + rel + ']:not([EMAIL PROTECTED]' + src 
+'])').each(function() {
   alert(this.href + '\n' + src);
});


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


Re: [jQuery] IE opacity change weirdresult

2006-09-05 Thread Klaus Hartl


kawikak schrieb:
> You need to give the element your are changing opactiy for "layout". The
> easiest way to do this is to give the element a background color.


I'm very sorry, it is not true that background will trigger layout. 
Please read the following regarding "layout" in IE: 
http://www.satzansatz.de/cssd/onhavinglayout.html

The distorted fonts bug is related to the alpha filter applied to an 
element with bold font. The only known fix by now is to apply a 
background color to the element that has the filter.

True is, that the filter will only work if the element has "layout".


-- Klaus

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


Re: [jQuery] On-Demand Javascript?

2006-09-05 Thread Stephen Howard
Well, that is one conclusion you could reach.  The other is that perhaps 
jQuery needs a couple of components extracted and turned into external 
libraries that it then depends on (ajax, etc).  A bit blasphemous, I 
know, considering jQuery is supposed to be easy to download as a 
standalone, but there's no reason the libraries + jQuery couldn't be 
stitched together into a 'standalone' package for download on the jQ 
server.  This would also open up the well-vetted sub-systems of the jQ 
universe to other developers without requiring all of jQuery.  For 
example, Christof's scriptloader could use jQ's ajax code, or could 
merge with it.  The mandate of the ajax library would certainly include 
the sorts of things that he and JSAN have in mind.

-Stephen

Jörn Zaefferer wrote:
> Stephen Howard wrote:
>   
>> jQuery remains coherent and quantifiable, rather than an ever expanding 
>> kitchen sink, 
>> and we get peer libraries that the community knows will play well with 
>> the beloved jQ.  Remember the old Unix saw about doing one thing and 
>> doing it well (aside from Emacs, of course).  I think it ought to 
>> pertain here as well.
>>   
>> 
> You make a good point. Its similar to the idea of integrating a class 
> creating facility in jQuery that came up a few days ago. Should this be 
> seperated from jQuery as it has nothing to do with DOM manipulation? I'm 
> not so sure, because most aspects of the class creation facility are 
> already available in the jQuery code. This is also true for OnDemand-JS, 
> as all the AJAX stuff is already covered. I'd like to see jQuery 
> concentrate on its strength, but on the other hand, I don't like 
> duplicating code.
>
> jQuery itself claims to change the way you write javascript. With 
> helpers like $.each, $.map and $.trim it does just this, without 
> touching DOM, FX or AJAX at all.
>
> I therefore vote to integrate an On-Demand Javascript facility into jQuery.
>
> -- Jörn
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>   

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


Re: [jQuery] Font-weight modifier in jQuery

2006-09-05 Thread Yehuda Katz
And it's updated in Visual jQuery. The wording could use some tightening, though. And it'd be nice if css(prop) pointed ppl to css(name) for the details.On 9/5/06, 
Fil <[EMAIL PROTECTED]> wrote:> Maybe John can set up an email reminder when someone commits to the
> repository :-)You can use RSS too -- though not linked from thehttp://jquery.com/dev/recent/ page, it works :
http://jquery.com/dev/recent/?changeset=on&max=10&daysback=3&format=rss(Syndicated at http://www.jquery.info/sedna/?id_syndic=7&lang=en
 )BTW there's a bug on tracfor example at http://jquery.com/dev/svn/rev/271/I can't set a cookie to "view differences / side by side" (which is my
favorite view of changes)-- Fil___jQuery mailing listdiscuss@jquery.com
http://jquery.com/discuss/-- Yehuda KatzWeb Developer(ph)  718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Font-weight modifier in jQuery

2006-09-05 Thread Fil
> Maybe John can set up an email reminder when someone commits to the 
> repository :-)

You can use RSS too -- though not linked from the
http://jquery.com/dev/recent/ page, it works :
http://jquery.com/dev/recent/?changeset=on&max=10&daysback=3&format=rss

(Syndicated at http://www.jquery.info/sedna/?id_syndic=7&lang=en )

BTW there's a bug on trac
for example at http://jquery.com/dev/svn/rev/271/
I can't set a cookie to "view differences / side by side" (which is my
favorite view of changes)

-- Fil


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


Re: [jQuery] XML as a database...?

2006-09-05 Thread Jörn Zaefferer
Sam wrote:
> I've used XML to read and locate elements.  Have solutions been 
> developed to police multiple clients updating an XML file without 
> overwriting each other?
Whatever script or language you are using, there should be a mechanism 
to lock a file. Lock a file before writing into it and unlock it when 
the write is finished. Check if a file is locked before opening it and 
wait until it is not locked anymore.
I hope that helps. But please keep in mind that this question does 
neither concern jQuery nor javascript in general. There should be lots 
of resources about transactions, concurreny and file locking elsewhere.

-- Jörn

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


Re: [jQuery] Font-weight modifier in jQuery

2006-09-05 Thread Jörn Zaefferer
Yehuda Katz wrote:
> If you update it in the svn, it'll get into visual jQuery within a day 
> or so max (I'm working to reduce the lag-time).
It's up!

Maybe John can set up an email reminder when someone commits to the 
repository :-)
This can be done quite easily with cruisecontrol ( 
http://cruisecontrol.sourceforge.net/ ), but I guess thats another story...

-- Jörn

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


Re: [jQuery] On-Demand Javascript?

2006-09-05 Thread Jörn Zaefferer
Stephen Howard wrote:
> jQuery remains coherent and quantifiable, rather than an ever expanding 
> kitchen sink, 
> and we get peer libraries that the community knows will play well with 
> the beloved jQ.  Remember the old Unix saw about doing one thing and 
> doing it well (aside from Emacs, of course).  I think it ought to 
> pertain here as well.
>   
You make a good point. Its similar to the idea of integrating a class 
creating facility in jQuery that came up a few days ago. Should this be 
seperated from jQuery as it has nothing to do with DOM manipulation? I'm 
not so sure, because most aspects of the class creation facility are 
already available in the jQuery code. This is also true for OnDemand-JS, 
as all the AJAX stuff is already covered. I'd like to see jQuery 
concentrate on its strength, but on the other hand, I don't like 
duplicating code.

jQuery itself claims to change the way you write javascript. With 
helpers like $.each, $.map and $.trim it does just this, without 
touching DOM, FX or AJAX at all.

I therefore vote to integrate an On-Demand Javascript facility into jQuery.

-- Jörn

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


Re: [jQuery] IE opacity change weirdresult

2006-09-05 Thread kawikak

You need to give the element your are changing opactiy for "layout". The
easiest way to do this is to give the element a background color.



Mohsen Saboorian-4 wrote:
> 
> Hi,
> Is there any workaround for the problem of changing opacity in IE,
> which leads to text being displayed bold and weird?
> 
> I could do that by setting background color to the element whose
> opacity is changed, but I want to have it's background transparent.
> 
> A sample result is seen in download section of interface (see the
> attachment).
> 
> Thanks.
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/IE-opacity-change-weirdresult-tf2221396.html#a6157902
Sent from the JQuery forum at Nabble.com.


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


Re: [jQuery] Test Suit Update

2006-09-05 Thread Andy Matthews
tests/001-jQuery.js (0, 7, 7)
Array.push()
Function.apply()
getElementById
getElementsByTagName
RegExp
jQuery
$()
tests/002-length.js (0, 1, 1)
Get Number of Elements Found
tests/003-size.js (0, 1, 1)
Get Number of Elements Found
tests/004-get.js (0, 1, 1)
Get All Elements
tests/005-get.js (0, 1, 1)
Get A Single Element
tests/006-each.js (0, 1, 1)
Execute a function, Relative
tests/007-index.js (0, 8, 8)
Check for index of elements
Check for index of elements
Check for index of elements
Check for index of elements
Check for index of elements
Check for index of elements
Check for not found index
Check for not found index
tests/008-attr.js (0, 4, 4)
Check for value attribute
Check for type attribute
Check for type attribute
Check for type attribute
tests/009-attr.js (0, 1, 1)
Set Multiple Attributes
tests/010-attr.js (0, 1, 1)
Set Attribute
tests/011-css.js (0, 1, 1)
Check for css property "display"
tests/012-css.js (0, 3, 3)
Modifying CSS display: Assert element is visible
Modified CSS display: Assert element is hidden
Modified CSS display: Assert element is visible
tests/013-css.js (0, 3, 3)
Modifying CSS display: Assert element is visible
Modified CSS display: Assert element is hidden
Modified CSS display: Assert element is visible
tests/014-text.js (0, 1, 1)
Check for merged text of more then one element.
tests/015-wrap.js (1, 0, 1)
Died on test #1: [object Error]
tests/016-append.js (0, 1, 1)
Check if text appending works
tests/017-append.js (0, 1, 1)
Check for appending of element
tests/018-append.js (0, 1, 1)
Check for appending of array of elements
tests/019-prepend.js (0, 1, 1)
Check if text prepending works
tests/020-prepend.js (0, 1, 1)
Check for prepending of element
tests/021-prepend.js (0, 1, 1)
Check for prepending of array of elements
tests/022-before.js (0, 1, 1)
Insert String before
tests/023-before.js (0, 1, 1)
Insert element before
tests/024-before.js (0, 1, 1)
Insert array of elements before
tests/025-after.js (0, 1, 1)
Insert String after
tests/026-after.js (0, 1, 1)
Insert element after
tests/027-after.js (0, 1, 1)
Insert array of elements after
tests/028-end.js (0, 1, 1)
Check for end
tests/029-find.js (0, 1, 1)
Check for find
tests/030-clone.js (0, 3, 3)
Assert text for #en
Check for clone
Reassert text for #en
tests/031-not.js (0, 1, 1)
.not
tests/032-is.js (0, 22, 22)
Check for element: A form must be a form
Check for element: A form is not a div
Check for class: Expected class "blog"
Check for class: Did not expect class "link"
Check for multiple classes: Expected classes "blog" and "link"
Check for multiple classes: Expected classes "blog" and "link", but not
"blogTest"
Check for attribute: Expected attribute lang to be "en"
Check for attribute: Expected attribute lang to be "en", not "de"
Check for attribute: Expected attribute type to be "text"
Check for attribute: Expected attribute type to be "text", not "radio"
Check for pseudoclass: Expected to be disabled
Check for pseudoclass: Expected not disabled
Check for pseudoclass: Expected to be checked
Check for pseudoclass: Expected not checked
Check for child: Expected a child "p" element
Check for child: Did not expect "ul" element
Check for childs: Expected "p", "a" and "code" child elements
Check for childs: Expected "p", "a" and "code" child elements, but no "ol"
Expected false for an invalid expression - 0
Expected false for an invalid expression - null
Expected false for an invalid expression - ""
Expected false for an invalid expression - undefined
tests/033-$.extend.js (0, 2, 2)
Check if extended: settings must be extended
Check if not modified: options must not be modified
tests/034-$.find.js (0, 79, 79)
Element Selector (div)
Element Selector (body)
Element Selector (html)
Element Selector
Parent Element (div div)
ID Selector (#body)
ID Selector w/ Element (body#body)
ID Selector w/ Element (ul#first)
Class Selector (.blog)
Class Selector (.blog.link)
Class Selector w/ Element (a.blog)
Parent Class Selector (p .blog)
Comma Support (a.blog, div)
Comma Support (a.blog , div)
Comma Support (a.blog ,div)
Comma Support (a.blog,div)
Child (p > a)
Child (p> a)
Child (p >a)
Child (p>a)
Child w/ Class (p > a.blog)
All Children (code > *)
All Grandchildren (p > * > *)
Adjacent (a + a)
Adjacent (a +a)
Adjacent (a+ a)
Adjacent (a+a)
Adjacent (p + p)
Comma, Child, and Adjacent (a + a, code > a)
First Child (p:first-child)
Attribute Exists ([EMAIL PROTECTED])
Attribute Exists ([EMAIL PROTECTED])
Attribute Exists ([EMAIL PROTECTED])
Attribute Equals ([EMAIL PROTECTED]'bookmark'])
Attribute Equals ([EMAIL PROTECTED]"bookmark"])
Attribute Equals ([EMAIL PROTECTED])
Multiple Attribute Equals ([EMAIL PROTECTED]'hidden'],[EMAIL PROTECTED]'radio'])
Multiple Attribute Equals ([EMAIL PROTECTED]"hidden"],[EMAIL PROTECTED]'radio'])
Multiple Attribute Equals ([EMAIL PROTECTED],[EMAIL PROTECTED])
Attribute Begins With ([EMAIL PROTECTED] ^= 'http://www'])
Attribute Ends With ([EMAIL PROTECTED] $= 'org/'])
Attribute Contains ([EMAIL PROTECTED] *= 

Re: [jQuery] Test Suit Update

2006-09-05 Thread Yehuda Katz
Test 11 stops the Test Suite in safari. In FF, tests 15 and 41-3 fail. Same with IE (which also has a serious slowdown on test 33).-- YehudaOn 9/5/06, 
Jörn Zaefferer <[EMAIL PROTECTED]> wrote:Hi folks,
there are now much more test cases in the jQuery code, together withsome changes to the test suit itself. The difficulty of writing tests:The test code itself is error prone, too.Please have a look at this
preview ( http://joern.jquery.com/test/ ) and check it with differentbrowsers and operating systems. There should be two tests failing in thecurrent suite, please report any other failures directly to me, post it
on this list or file a bug report marked with [tests].If anyone has an idea how to test the FX module, in other words, allthose animations, I'd appreciate them!-- Jörn___
jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/-- Yehuda Katz
Web Developer(ph)  718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] On-Demand Javascript?

2006-09-05 Thread Stephen Howard
Well, as I've put it down below, this isn't really an issue of code 
purity (although I'm sure that bugs me too).  What I was trying to say 
was that it is an issue of readability.  At least to me, seeing $ in my 
javascript code indicates DOM manipulation.  So my preference is to make 
anything not pertaining to DOM manipulation not look like jQuery.  I 
certainly wouldn't have any issues if John or the jQ community wanted to 
write/sponsor/host solutions that didn't fall under the jQ mandate, but 
what harm is there in putting them into their own namespace?  I'd argue 
that it would only add clarity to the situation.  jQuery remains 
coherent and quantifiable, rather than an ever expanding kitchen sink, 
and we get peer libraries that the community knows will play well with 
the beloved jQ.  Remember the old Unix saw about doing one thing and 
doing it well (aside from Emacs, of course).  I think it ought to 
pertain here as well.

-Stephen


Dan Atkinson wrote:
> I'd be -for- having something like this inside jQuery.
>
> For all the other non-element additions that there in jQuery, something like
> this would be a great feature to have.
>
> As much as code purity is a good thing, there comes a point when you say
> 'well, this might just make things better...'.
>
>
> Stephen Howard wrote:
>   
>>
>> Christof Donat wrote:
>> 
>>> Cons:
>>> - either you need to do synchronous loading like JSON does or you need to
>>> work 
>>> with callbacks as I do. Synchronous loading blocks the browser, callbacks
>>> are 
>>> not understood by everyone.
>>>
>>>   
>>>   
>> I believe Christof is referring here to JSAN (openjsan.org) not JSON 
>> (data format) when he is referring to the synchronous loading
>>
>>
>> I'd like to throw in my voice in support of Christof's call for keeping 
>> things like this out of jQuery proper.  To me 'doing different things 
>> should look different'.  When i see raw ajax calls and such hanging off 
>> $ that looks wrong, as I think of $ signifying that I'm selecting and 
>> manipulating the DOM.  If I'm doing something that doesn't have to do 
>> with DOM selection, I shouldn't see the $ in my code, because that's 
>> what I associate it with, and anything else interrupts the visual 
>> texture of my code.
>>
>> -Stephen
>>
>> ___
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>>
>>
>> 
>
>   

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


Re: [jQuery] Font-weight modifier in jQuery

2006-09-05 Thread Yehuda Katz
If you update it in the svn, it'll get into visual jQuery within a day or so max (I'm working to reduce the lag-time).-- YehudaOn 9/5/06, Jörn Zaefferer
 <[EMAIL PROTECTED]> wrote:Hi Dave!> I don't see it either, which is why I proposed using a camelCase example to
> make it clear that was the way to handle css properties that have a dash in> them. In essence, change the .css example from this:>> $("p").css("color");> Test Paragraph.
> red>> To this:>> $("p").css("fontWeight");> Test Paragraph.> bold>I uploaded an update preview, please check if it is ok:
http://joern.jquery.com/docs/index.xmlAnyway, I'll correct it and commit it to svn. After that, it's only amatter of time that it goes live, thats in John's hands :-)
-- Jörn___jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/
-- Yehuda KatzWeb Developer(ph)  718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Test Suit Update

2006-09-05 Thread Jörn Zaefferer
Hi folks,

there are now much more test cases in the jQuery code, together with 
some changes to the test suit itself. The difficulty of writing tests: 
The test code itself is error prone, too.Please have a look at this 
preview ( http://joern.jquery.com/test/ ) and check it with different 
browsers and operating systems. There should be two tests failing in the 
current suite, please report any other failures directly to me, post it 
on this list or file a bug report marked with [tests].

If anyone has an idea how to test the FX module, in other words, all 
those animations, I'd appreciate them!

-- Jörn

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


Re: [jQuery] Font-weight modifier in jQuery

2006-09-05 Thread Dave Methvin
 
> I uploaded an update preview, please check if it is ok:
> http://joern.jquery.com/docs/index.xml

Looks good to me, I totally forgot that the docs are now in the
source--despite seeing them there...


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


[jQuery] XML as a database...?

2006-09-05 Thread Sam



I've used XML to 
read and locate elements.  Have solutions been developed to police 
multiple clients updating an XML file without overwriting each 
other?
 
Sam
 
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Font-weight modifier in jQuery

2006-09-05 Thread Jörn Zaefferer
Hi Dave!
> I don't see it either, which is why I proposed using a camelCase example to
> make it clear that was the way to handle css properties that have a dash in
> them. In essence, change the .css example from this:
>
> $("p").css("color");
> Test Paragraph.
> red
>
> To this:
>
> $("p").css("fontWeight");
> Test Paragraph.
> bold
>   
I uploaded an update preview, please check if it is ok:

http://joern.jquery.com/docs/index.xml

Anyway, I'll correct it and commit it to svn. After that, it's only a 
matter of time that it goes live, thats in John's hands :-)

-- Jörn

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


Re: [jQuery] visualjquery.comnot available for Safari (2) users?

2006-09-05 Thread Yehuda Katz
It does work in Safari. I just tried it. Try again.On 9/5/06, Stefan Nagtegaal <[EMAIL PROTECTED]> wrote:
Well, like it has to be a very descriptive subject which imo says itall..It does not work on Safari (2) atm, so I'm using FireFox. But it
would be very nice if Safari would display the docs either..Steef___jQuery mailing listdiscuss@jquery.com
http://jquery.com/discuss/-- Yehuda KatzWeb Developer(ph)  718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] JQuery and HTTPS bug

2006-09-05 Thread Jack Shedd
Ignore me. My updates were saving to the wrong place on my server :/

On Sep 5, 2006, at 12:11 PM, Jack Shedd wrote:

> This doesn't seem to be resolved. The jquery file continues to trip  
> IE's "secure items" pop-up.
>
> I've isolated the problem to jquery.js within:
>
> https://www.greenmoortrading.com
>
> Any updates on this particular bug?
>
> On Aug 9, 2006, at 11:14 AM, Michael Geary wrote:
>
>> Get the latest svn version; it has a fix for this that doesn't  
>> require an
>> external file.
>>
>> -Mike
>>
>>> I was working on a redesign of my company's website when I
>>> noticed that we had a problem in IE when loading up a page
>>> via HTTPS... Specifically, it's this line:
>>>
>>> document.write(">> "src=javascript:void(0)><\/script>");
>>
>>
>> ___
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>>
>


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


Re: [jQuery] JQuery and HTTPS bug

2006-09-05 Thread Jack Shedd
This doesn't seem to be resolved. The jquery file continues to trip  
IE's "secure items" pop-up.

I've isolated the problem to jquery.js within:

https://www.greenmoortrading.com

Any updates on this particular bug?

On Aug 9, 2006, at 11:14 AM, Michael Geary wrote:

> Get the latest svn version; it has a fix for this that doesn't  
> require an
> external file.
>
> -Mike
>
>> I was working on a redesign of my company's website when I
>> noticed that we had a problem in IE when loading up a page
>> via HTTPS... Specifically, it's this line:
>>
>>  document.write(">  "src=javascript:void(0)><\/script>");
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


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


Re: [jQuery] On-Demand Javascript?

2006-09-05 Thread Christof Donat
Hi,

> Can you show how you modified the JQuery library to generate the
> package-object? Code?

In case of jQuery I simply appended:

$package('jquery',{});

The plugins are wrapped with:

$using('jquery',function() {
...
$package('jquery.myplugin',{});
});

You can also define multiple dependencies like this:

$using(['jquery.fx','jquery.dom'],function{
... // here we use the two plugins.
});

For code that needs these two plugins loaded. Since they are wrapped with 
$using() like I have written above this will load jQuery as well.

Christof

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


Re: [jQuery] Font-weight modifier in jQuery

2006-09-05 Thread Dave Methvin
>> If the example in the API reference for .css used a camelCase 
>> attribute I think it would be clear. How do we edit that?

> I don't see any use of camelcase for CSS keys here:
> http://jquery.com/api/

I don't see it either, which is why I proposed using a camelCase example to
make it clear that was the way to handle css properties that have a dash in
them. In essence, change the .css example from this:

$("p").css("color");
Test Paragraph.
red

To this:

$("p").css("fontWeight");
Test Paragraph.
bold


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


Re: [jQuery] On-Demand Javascript?

2006-09-05 Thread Franck Marcia
2006/9/5, Dan Atkinson <[EMAIL PROTECTED]>:
>
> I'd be -for- having something like this inside jQuery.

There's an undocumented function in the core of the current SVN
version which imo already implements it:

$.getScript(url, data, callback)

Of course, you can't use it to load jQuery.

Franck.

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


Re: [jQuery] On-Demand Javascript?

2006-09-05 Thread Dan Atkinson

I'd be -for- having something like this inside jQuery.

For all the other non-element additions that there in jQuery, something like
this would be a great feature to have.

As much as code purity is a good thing, there comes a point when you say
'well, this might just make things better...'.


Stephen Howard wrote:
> 
> 
> 
> Christof Donat wrote:
>>
>> Cons:
>> - either you need to do synchronous loading like JSON does or you need to
>> work 
>> with callbacks as I do. Synchronous loading blocks the browser, callbacks
>> are 
>> not understood by everyone.
>>
>>   
> I believe Christof is referring here to JSAN (openjsan.org) not JSON 
> (data format) when he is referring to the synchronous loading
> 
> 
> I'd like to throw in my voice in support of Christof's call for keeping 
> things like this out of jQuery proper.  To me 'doing different things 
> should look different'.  When i see raw ajax calls and such hanging off 
> $ that looks wrong, as I think of $ signifying that I'm selecting and 
> manipulating the DOM.  If I'm doing something that doesn't have to do 
> with DOM selection, I shouldn't see the $ in my code, because that's 
> what I associate it with, and anything else interrupts the visual 
> texture of my code.
> 
> -Stephen
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/On-Demand-Javascript--tf2220945.html#a6155814
Sent from the JQuery forum at Nabble.com.


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


Re: [jQuery] On-Demand Javascript?

2006-09-05 Thread Rey Bango
Christof,

Can you show how you modified the JQuery library to generate the 
package-object? Code?

Rey...

Christof Donat wrote:
> Hi,
> 
> 
>>So from the docs, this looks like its library agnostic correct (ie: not
>>dependent on JQuery)?
> 
> 
> Yes, that is tue. I use it to load jQuery. You need to modify the libraries 
> you load so that they generate the package-Object. Otherwise the 
> callback-Function will never be called.
> 
> Christof
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 

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


Re: [jQuery] On-Demand Javascript?

2006-09-05 Thread Dan Atkinson

Christof,

Thanks for the clarification.

Dan

Christof Donat wrote:
> 
> Hi,
> 
>> Christof Donat wrote:
>> > - either you need to do synchronous loading like JSON does or you need
>> to
>> > work
>> > with callbacks as I do. Synchronous loading blocks the browser,
>> callbacks
>> > are
>> > not understood by everyone.
>>
>> You mention that not everyone understands callbacks (maybe I read it
>> wrongly). Well, it would also be true that not everyone understands
>> JavaScript, and an even smaller number understand jQuery (however easy it
>> may be, the missus just doesn't see the magic that I do).
> 
> I just thought of the recurring questions why te following won't work in 
> jQuery:
> 
> $('#myNiceElement').load('http://www.example.com/');
> $('#thisElementWillBeCreatedByLoad').css({backgroundColor:'red'});
> 
>> Christof Donat wrote:
>> > - to load all the scripts your page needs multiple HTTP-Requests are
>> > necessary
>> > which increases the overhead.
>>
>> While multiple HTTP-Requests do increase overall overhead, that is based
>> on
>> the assumption that the total sum of code loaded is the same as a normal
>> page load (ie, the user loads all or nearly all the modules through their
>> page interaction). I'll actually give this a bye though, because I'm not
>> fully au fait with the performance statistics of multiple on-request HTTP
>> requests, versus single all-in-one HTTP Requests.
> 
> I totaly agree with you that this is only a problem in case you would load
> all 
> the code anyway. As I wrote I use dynamic loading myself, because in my 
> projects the cons are really weak. In other projects this might be an
> issue.
> 
> Christof
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/On-Demand-Javascript--tf2220945.html#a6155430
Sent from the JQuery forum at Nabble.com.


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


Re: [jQuery] Font-weight modifier in jQuery

2006-09-05 Thread Dan Atkinson

Ok, which API are you folks looking at?!

I don't see any use of camelcase for CSS keys here:
http://jquery.com/api/ http://jquery.com/api/ 

Dan


dave.methvin wrote:
> 
>  
>>> Every time you have a '-' in a property, remove it and replace the 
>>> next character with an uppercase representation of itself.
> 
>> Is this documented anywhere though?
> 
> If the example in the API reference for .css used a camelCase attribute I
> think it would be clear. How do we edit that?
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Font-weight-modifier-in-jQuery-tf2220759.html#a6155301
Sent from the JQuery forum at Nabble.com.


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


Re: [jQuery] On-Demand Javascript?

2006-09-05 Thread Christof Donat
Hi,

> > Cons:
> > - either you need to do synchronous loading like JSON does or you need to
> > work with callbacks as I do. Synchronous loading blocks the browser,
> > callbacks are not understood by everyone.
>
> I believe Christof is referring here to JSAN (openjsan.org) not JSON
> (data format) when he is referring to the synchronous loading

Yes, sorry. I was typing to fast :-)

Christof

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


Re: [jQuery] On-Demand Javascript?

2006-09-05 Thread Stephen Howard


Christof Donat wrote:
>
> Cons:
> - either you need to do synchronous loading like JSON does or you need to 
> work 
> with callbacks as I do. Synchronous loading blocks the browser, callbacks are 
> not understood by everyone.
>
>   
I believe Christof is referring here to JSAN (openjsan.org) not JSON 
(data format) when he is referring to the synchronous loading


I'd like to throw in my voice in support of Christof's call for keeping 
things like this out of jQuery proper.  To me 'doing different things 
should look different'.  When i see raw ajax calls and such hanging off 
$ that looks wrong, as I think of $ signifying that I'm selecting and 
manipulating the DOM.  If I'm doing something that doesn't have to do 
with DOM selection, I shouldn't see the $ in my code, because that's 
what I associate it with, and anything else interrupts the visual 
texture of my code.

-Stephen

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


Re: [jQuery] On-Demand Javascript?

2006-09-05 Thread Christof Donat
Hi,

> So from the docs, this looks like its library agnostic correct (ie: not
> dependent on JQuery)?

Yes, that is tue. I use it to load jQuery. You need to modify the libraries 
you load so that they generate the package-Object. Otherwise the 
callback-Function will never be called.

Christof

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


Re: [jQuery] On-Demand Javascript?

2006-09-05 Thread Christof Donat
Hi,

> Christof Donat wrote:
> > - either you need to do synchronous loading like JSON does or you need to
> > work
> > with callbacks as I do. Synchronous loading blocks the browser, callbacks
> > are
> > not understood by everyone.
>
> You mention that not everyone understands callbacks (maybe I read it
> wrongly). Well, it would also be true that not everyone understands
> JavaScript, and an even smaller number understand jQuery (however easy it
> may be, the missus just doesn't see the magic that I do).

I just thought of the recurring questions why te following won't work in 
jQuery:

$('#myNiceElement').load('http://www.example.com/');
$('#thisElementWillBeCreatedByLoad').css({backgroundColor:'red'});

> Christof Donat wrote:
> > - to load all the scripts your page needs multiple HTTP-Requests are
> > necessary
> > which increases the overhead.
>
> While multiple HTTP-Requests do increase overall overhead, that is based on
> the assumption that the total sum of code loaded is the same as a normal
> page load (ie, the user loads all or nearly all the modules through their
> page interaction). I'll actually give this a bye though, because I'm not
> fully au fait with the performance statistics of multiple on-request HTTP
> requests, versus single all-in-one HTTP Requests.

I totaly agree with you that this is only a problem in case you would load all 
the code anyway. As I wrote I use dynamic loading myself, because in my 
projects the cons are really weak. In other projects this might be an issue.

Christof

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


[jQuery] visualjquery.comnot available for Safari (2) users?

2006-09-05 Thread Stefan Nagtegaal
Well, like it has to be a very descriptive subject which imo says it  
all..
It does not work on Safari (2) atm, so I'm using FireFox. But it  
would be very nice if Safari would display the docs either..


Steef

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


Re: [jQuery] Font-weight modifier in jQuery

2006-09-05 Thread Dave Methvin
 
>> Every time you have a '-' in a property, remove it and replace the 
>> next character with an uppercase representation of itself.

> Is this documented anywhere though?

If the example in the API reference for .css used a camelCase attribute I
think it would be clear. How do we edit that?


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


Re: [jQuery] On-Demand Javascript?

2006-09-05 Thread Rey Bango
Awesome Christoff. Thanks for the help!

Rey

Christof Donat wrote:
> Hi,
> 
> 
>>which discusses Dynamic Script Pattern or On-Demand Javascript. I think
>>this is a VERY cool feature. Does Jquery support something like this?
> 
> 
> I wouldn't put it into jQuery itsself, because then you would need to load 
> jQuery before you can use the dynamic Script loading. I have developed 
> something like this which you can se at http://jspax.cdonat.de . I am using 
> it to load jQuery, jQuery Plugins and some other of my code.
> 
> 
>>What are the pros and cons of something like this?
> 
> 
> Pros:
> - don't need to load everything at startup of your page - faster startup
> - don't need to load all the code you don't need on the page:
> $('#myElement').click(function() {
>   $using('jquery.fx',function() {
>   $(this).slideUp('slow');
>   });
> });
> The fx-Plugin is loaded after the first click on the Element and as soon as 
> it 
> is available the slideUp is executed.
> - you can easier modularize your code
> - the dynamic script loader can handle dependencies:
> $using('com.example.test',function() {...});
> Now com/example/test.js could contain 
> $using('com.example.test2',function() {
>   ...;
>   $package('com.example.test',{});
> });
> the dependency is automatically resolved.
> 
> Cons:
> - you can not be shure that your code was loaded and executed as usual while 
> the page was loading - document.write() e.g. may behave differently.
> - either you need to do synchronous loading like JSON does or you need to 
> work 
> with callbacks as I do. Synchronous loading blocks the browser, callbacks are 
> not understood by everyone.
> - to load all the scripts your page needs multiple HTTP-Requests are 
> necessary 
> which increases the overhead.
> 
> I hope that helps.
> 
> Christof
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 

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


Re: [jQuery] On-Demand Javascript?

2006-09-05 Thread Rey Bango
So from the docs, this looks like its library agnostic correct (ie: not 
dependent on JQuery)?

Rey...

Christof Donat wrote:
> Hi,
> 
> 
>>which discusses Dynamic Script Pattern or On-Demand Javascript. I think
>>this is a VERY cool feature. Does Jquery support something like this?
> 
> 
> I wouldn't put it into jQuery itsself, because then you would need to load 
> jQuery before you can use the dynamic Script loading. I have developed 
> something like this which you can se at http://jspax.cdonat.de . I am using 
> it to load jQuery, jQuery Plugins and some other of my code.
> 
> 
>>What are the pros and cons of something like this?
> 
> 
> Pros:
> - don't need to load everything at startup of your page - faster startup
> - don't need to load all the code you don't need on the page:
> $('#myElement').click(function() {
>   $using('jquery.fx',function() {
>   $(this).slideUp('slow');
>   });
> });
> The fx-Plugin is loaded after the first click on the Element and as soon as 
> it 
> is available the slideUp is executed.
> - you can easier modularize your code
> - the dynamic script loader can handle dependencies:
> $using('com.example.test',function() {...});
> Now com/example/test.js could contain 
> $using('com.example.test2',function() {
>   ...;
>   $package('com.example.test',{});
> });
> the dependency is automatically resolved.
> 
> Cons:
> - you can not be shure that your code was loaded and executed as usual while 
> the page was loading - document.write() e.g. may behave differently.
> - either you need to do synchronous loading like JSON does or you need to 
> work 
> with callbacks as I do. Synchronous loading blocks the browser, callbacks are 
> not understood by everyone.
> - to load all the scripts your page needs multiple HTTP-Requests are 
> necessary 
> which increases the overhead.
> 
> I hope that helps.
> 
> Christof
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 

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


Re: [jQuery] On-Demand Javascript?

2006-09-05 Thread Dan Atkinson

Christof,

While I agree with your cons in theory, a couple of them can be discounted.


Christof Donat wrote:
> 
> - either you need to do synchronous loading like JSON does or you need to
> work 
> with callbacks as I do. Synchronous loading blocks the browser, callbacks
> are 
> not understood by everyone.
> 
You mention that not everyone understands callbacks (maybe I read it
wrongly). Well, it would also be true that not everyone understands
JavaScript, and an even smaller number understand jQuery (however easy it
may be, the missus just doesn't see the magic that I do).



Christof Donat wrote:
> 
> - to load all the scripts your page needs multiple HTTP-Requests are
> necessary 
> which increases the overhead.
> 
While multiple HTTP-Requests do increase overall overhead, that is based on
the assumption that the total sum of code loaded is the same as a normal
page load (ie, the user loads all or nearly all the modules through their
page interaction). I'll actually give this a bye though, because I'm not
fully au fait with the performance statistics of multiple on-request HTTP
requests, versus single all-in-one HTTP Requests.

It'd be great if there was some further discussion on this though.

For anyone looking for a quick resource on lazy loading/on demand JS:
http://ajaxpatterns.org/On-Demand_Javascript
http://ajaxpatterns.org/On-Demand_Javascript 

Cheers,

Dan
-- 
View this message in context: 
http://www.nabble.com/On-Demand-Javascript--tf2220945.html#a6154824
Sent from the JQuery forum at Nabble.com.


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


Re: [jQuery] IE opacity change weirdresult

2006-09-05 Thread Dave Methvin
> Is there any workaround for the problem of changing opacity in IE, 
> which leads to text being displayed bold and weird?

Is it possible that it's related to ClearType? The IE blog describes a
similar wierdness that they supposedly fixed in IE7 by disabling ClearType
if a transform was being applied.

http://blogs.msdn.com/ie/archive/2006/08/31/730887.aspx
http://blogs.msdn.com/ie/archive/2006/03/03/543181.aspx
http://blogs.msdn.com/ie/archive/2006/02/03/524367.aspx

Does the problem go away if you disable ClearType?

Maybe it would work to remove the filter when z.now==1, right now it seems
to set it to 100%.

>  y.filter = "alpha(opacity=" + z.now*100 + ")";



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


Re: [jQuery] On-Demand Javascript?

2006-09-05 Thread Christof Donat
Hi,

> which discusses Dynamic Script Pattern or On-Demand Javascript. I think
> this is a VERY cool feature. Does Jquery support something like this?

I wouldn't put it into jQuery itsself, because then you would need to load 
jQuery before you can use the dynamic Script loading. I have developed 
something like this which you can se at http://jspax.cdonat.de . I am using 
it to load jQuery, jQuery Plugins and some other of my code.

> What are the pros and cons of something like this?

Pros:
- don't need to load everything at startup of your page - faster startup
- don't need to load all the code you don't need on the page:
$('#myElement').click(function() {
$using('jquery.fx',function() {
$(this).slideUp('slow');
});
});
The fx-Plugin is loaded after the first click on the Element and as soon as it 
is available the slideUp is executed.
- you can easier modularize your code
- the dynamic script loader can handle dependencies:
$using('com.example.test',function() {...});
Now com/example/test.js could contain 
$using('com.example.test2',function() {
...;
$package('com.example.test',{});
});
the dependency is automatically resolved.

Cons:
- you can not be shure that your code was loaded and executed as usual while 
the page was loading - document.write() e.g. may behave differently.
- either you need to do synchronous loading like JSON does or you need to work 
with callbacks as I do. Synchronous loading blocks the browser, callbacks are 
not understood by everyone.
- to load all the scripts your page needs multiple HTTP-Requests are necessary 
which increases the overhead.

I hope that helps.

Christof

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


Re: [jQuery] filter() on attributes?

2006-09-05 Thread Dossy Shiobara
On 2006.09.05, Sam Collett <[EMAIL PROTECTED]> wrote:
> On 05/09/06, Dossy Shiobara <[EMAIL PROTECTED]> wrote:
> >
> > $("#foo input").filter("/[name=bar]").val();
> 
> I use:
> $("#foo [EMAIL PROTECTED]").val();
> 
> i.e. put @ before the attribute you want.

*facepalm*  Ah, yes.  Duh.  Thanks!

-- Dossy

-- 
Dossy Shiobara  | [EMAIL PROTECTED] | http://dossy.org/
Panoptic Computer Network   | http://panoptic.com/
  "He realized the fastest way to change is to laugh at your own
folly -- then you can let go and quickly move on." (p. 70)

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


[jQuery] IE opacity change weirdresult

2006-09-05 Thread Mohsen Saboorian

Hi,
Is there any workaround for the problem of changing opacity in IE,
which leads to text being displayed bold and weird?

I could do that by setting background color to the element whose
opacity is changed, but I want to have it's background transparent.

A sample result is seen in download section of interface (see the attachment).

Thanks.


ie-opac.png
Description: PNG image
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] filter() on attributes?

2006-09-05 Thread Stephen Howard
Try $('#foo [EMAIL PROTECTED]"bar"]').val()

Dossy Shiobara wrote:
> Then, get the value with something like:
>
> $("#foo input[name=bar]").val();
>
>
>   

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


Re: [jQuery] Font-weight modifier in jQuery

2006-09-05 Thread Dan Atkinson

Cheers m'dears.

Is this documented anywhere though?


Sam Collett wrote:
> 
> On 05/09/06, Dan Atkinson <[EMAIL PROTECTED]> wrote:
>>
>> Wycats,
>>
>> I used that code from visualjQ as a template, and it didn't work. In IE,
>> I
>> get a debug error saying that it expects ':'. I changed font-weight:...
>> to
>> 'font-weight':... and IE went straight over it, without modifying the
>> weight.
>>
>> Klaus, Class would be a simple option. But now this has me thinking! :)
>>
>>
> 
> Every time you have a '-' in a property, remove it and replace the
> next character with an uppercase representation of itself. For
> example:
> 
> fontWeight
> fontSize
> fontFamily
> borderWidth
> borderStyle
> borderBottomWidth
> 
> etc
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Font-weight-modifier-in-jQuery-tf2220759.html#a6153914
Sent from the JQuery forum at Nabble.com.


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


Re: [jQuery] On-Demand Javascript?

2006-09-05 Thread Dan Atkinson

Lazy loading is indeed a great feature to have in any framework and I'd be
interested in any information on this.

Rey Bango-2 wrote:
> 
> I was reading this article on Ajaxian:
> 
> http://ajaxian.com/archives/prototype-extension-dynamic-script-pattern-support
> 
> which discusses Dynamic Script Pattern or On-Demand Javascript. I think 
> this is a VERY cool feature. Does Jquery support something like this?
> 
> What are the pros and cons of something like this?
> 
> Rey...
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/On-Demand-Javascript--tf2220945.html#a6153887
Sent from the JQuery forum at Nabble.com.


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


Re: [jQuery] filter() on attributes?

2006-09-05 Thread Sam Collett
On 05/09/06, Dossy Shiobara <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I don't want to assign an id attribute to all my  fields, but
> instead want to do something like this:
>
> 
>   
> 
>
> Then, get the value with something like:
>
> $("#foo input[name=bar]").val();
>
> That didn't work.  So, I tried:
>
> $("#foo input").filter("[name=bar]").val();
>
> That didn't work either.  I'm thinking I might have to use $.grep() but
> I can't seem to get it to work:
>
> $.grep($("#foo input"), function(a, i) { return (a[i].attr("name") == 
> "bar"); })[0].val();
>
> That one causes a JS error complaining that "a[i] has no properties."
>
> The filter() docs say I should be able to use an XPath expression ...
> so, this should work:
>
> $("#foo input").filter("/[name=bar]").val();
>
> Aha!  It does.  Is this the best way of doing this?  Are there any
> pitfalls I need to worry about?  Can I collapse this into a more concise
> form?
>
> -- Dossy
>
> --
> Dossy Shiobara  | [EMAIL PROTECTED] | http://dossy.org/
> Panoptic Computer Network   | http://panoptic.com/
>   "He realized the fastest way to change is to laugh at your own
> folly -- then you can let go and quickly move on." (p. 70)
>

I use:
$("#foo [EMAIL PROTECTED]").val();

i.e. put @ before the attribute you want.

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


Re: [jQuery] Font-weight modifier in jQuery

2006-09-05 Thread Dan Atkinson

Yup,

That'll be the one!

Cheers Petre!

I wonder why this isn't written down?

Or, if it is, where is it? I tried looking through.



Stefan Petre wrote:
> 
> $('p').css({fontWeight: 'normal'});
> 
> 
> 
> Dan Atkinson wrote:
>> Wycats,
>>
>> I used that code from visualjQ as a template, and it didn't work. In IE,
>> I
>> get a debug error saying that it expects ':'. I changed font-weight:...
>> to
>> 'font-weight':... and IE went straight over it, without modifying the
>> weight.
>>
>> Klaus, Class would be a simple option. But now this has me thinking! :)
>>
>>
>>
>> wycats wrote:
>>   
>>> Take a look under CSS on the visual documentation at "css(prop)" -- it's
>>> exactly what you're looking for.
>>>
>>> http://www.visualjquery.com
>>>
>>> -- Yehuda
>>>
>>> On 9/5/06, Dan Atkinson <[EMAIL PROTECTED]> wrote:
>>> 
 Hey all!

 I'm sorry if this has been discussed before (I did a search without any
 results on the subject), but does jQuery have the ability to change the
 font-weight with the css method (or a font-weight method)?

 I had a look in the API documentation and VisualjQuery, but neither
 show
 anything for it.

 For instance, for something like this:
 $("p").css({ color: "black", font-weight: "normal" });
 or
 $("p").css({ color: "red", font-weight: "bolder" });

 Here you can see the first is normal text, while the other is red and
 bold(er) for a warning.

 Anyhow, just wondering if font-weight was inside jQuery at all?

 Cheers,

 Dan
 --
 View this message in context:
 http://www.nabble.com/Font-weight-modifier-in-jQuery-tf2220759.html#a6151779
 Sent from the JQuery forum at Nabble.com.


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

   
>>>
>>> -- 
>>> Yehuda Katz
>>> Web Developer
>>> (ph)  718.877.1325
>>> (fax) 718.686.4288
>>>
>>> ___
>>> 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/Font-weight-modifier-in-jQuery-tf2220759.html#a6153823
Sent from the JQuery forum at Nabble.com.


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


Re: [jQuery] Font-weight modifier in jQuery

2006-09-05 Thread Sam Collett
On 05/09/06, Dan Atkinson <[EMAIL PROTECTED]> wrote:
>
> Wycats,
>
> I used that code from visualjQ as a template, and it didn't work. In IE, I
> get a debug error saying that it expects ':'. I changed font-weight:... to
> 'font-weight':... and IE went straight over it, without modifying the
> weight.
>
> Klaus, Class would be a simple option. But now this has me thinking! :)
>
>

Every time you have a '-' in a property, remove it and replace the
next character with an uppercase representation of itself. For
example:

fontWeight
fontSize
fontFamily
borderWidth
borderStyle
borderBottomWidth

etc

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


[jQuery] filter() on attributes?

2006-09-05 Thread Dossy Shiobara
Hi,

I don't want to assign an id attribute to all my  fields, but
instead want to do something like this:


  


Then, get the value with something like:

$("#foo input[name=bar]").val();

That didn't work.  So, I tried:

$("#foo input").filter("[name=bar]").val();

That didn't work either.  I'm thinking I might have to use $.grep() but
I can't seem to get it to work:

$.grep($("#foo input"), function(a, i) { return (a[i].attr("name") == 
"bar"); })[0].val();

That one causes a JS error complaining that "a[i] has no properties."

The filter() docs say I should be able to use an XPath expression ...
so, this should work:

$("#foo input").filter("/[name=bar]").val();

Aha!  It does.  Is this the best way of doing this?  Are there any
pitfalls I need to worry about?  Can I collapse this into a more concise
form?

-- Dossy

-- 
Dossy Shiobara  | [EMAIL PROTECTED] | http://dossy.org/
Panoptic Computer Network   | http://panoptic.com/
  "He realized the fastest way to change is to laugh at your own
folly -- then you can let go and quickly move on." (p. 70)

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


Re: [jQuery] Font-weight modifier in jQuery

2006-09-05 Thread Stefan Petre
$('p').css({fontWeight: 'normal'});



Dan Atkinson wrote:
> Wycats,
>
> I used that code from visualjQ as a template, and it didn't work. In IE, I
> get a debug error saying that it expects ':'. I changed font-weight:... to
> 'font-weight':... and IE went straight over it, without modifying the
> weight.
>
> Klaus, Class would be a simple option. But now this has me thinking! :)
>
>
>
> wycats wrote:
>   
>> Take a look under CSS on the visual documentation at "css(prop)" -- it's
>> exactly what you're looking for.
>>
>> http://www.visualjquery.com
>>
>> -- Yehuda
>>
>> On 9/5/06, Dan Atkinson <[EMAIL PROTECTED]> wrote:
>> 
>>> Hey all!
>>>
>>> I'm sorry if this has been discussed before (I did a search without any
>>> results on the subject), but does jQuery have the ability to change the
>>> font-weight with the css method (or a font-weight method)?
>>>
>>> I had a look in the API documentation and VisualjQuery, but neither show
>>> anything for it.
>>>
>>> For instance, for something like this:
>>> $("p").css({ color: "black", font-weight: "normal" });
>>> or
>>> $("p").css({ color: "red", font-weight: "bolder" });
>>>
>>> Here you can see the first is normal text, while the other is red and
>>> bold(er) for a warning.
>>>
>>> Anyhow, just wondering if font-weight was inside jQuery at all?
>>>
>>> Cheers,
>>>
>>> Dan
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Font-weight-modifier-in-jQuery-tf2220759.html#a6151779
>>> Sent from the JQuery forum at Nabble.com.
>>>
>>>
>>> ___
>>> jQuery mailing list
>>> discuss@jquery.com
>>> http://jquery.com/discuss/
>>>
>>>   
>>
>> -- 
>> Yehuda Katz
>> Web Developer
>> (ph)  718.877.1325
>> (fax) 718.686.4288
>>
>> ___
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>>
>>
>> 
>
>   


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


Re: [jQuery] Anything similar to scriptaculous for JQuery

2006-09-05 Thread Rey Bango
Yep. Maybe we'll have to build JQueryCFC. LOL!

Rey...

Andy Matthews wrote:
> Hope it helps. Always good to have more Coldfusion representation.
> 
>  andy matthews
> web developer
> certified advanced coldfusion programmer
> ICGLink, Inc.
> [EMAIL PROTECTED]
> 615.370.1530 x737
> --//->
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Behalf Of Rey Bango
> Sent: Tuesday, September 05, 2006 8:47 AM
> To: jQuery Discussion.
> Subject: Re: [jQuery] Anything similar to scriptaculous for JQuery
> 
> 
> Hey Andy!! Thanks for the welcome. BTW, thanks for the sample code. I'll 
> be poking through it today.
> 
> Rey...
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 

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


Re: [jQuery] jCarousel

2006-09-05 Thread Jan Sorgalla


Andy Matthews wrote:
> 
> This is AWESOME. I was just looking for something like this. 
> 

Thanks :)


Andy Matthews wrote:
> 
> In IE 6.0.2 (PC):
> 
> The vertical carousel:
> http://sorgalla.com/projects/jcarousel/example_static_vertical.html
> the 3 pictures appear to be off by about 30 pixels vertically.
> 

Thats because the IE isn't standard compliant. Its a css formatting issue. I
already fixed that in my dev-version.
http://sorgalla.com/projects/jcarousel-dev/example_static_vertical.html


Andy Matthews wrote:
> 
> The dynamic AJAX example:
> http://sorgalla.com/projects/jcarousel/example_dynamic_ajax.html
> Clicking the next button until you get to the end of the pictures and
> instead of just wrapping around to the end, the pictures slide back to the
> left until you get to the beginning.
> 

Thats the "wrap" feature. There are only 10 items loaded from the text file:
http://sorgalla.com/projects/jcarousel/example_dynamic_ajax.txt


Andy Matthews wrote:
> 
> On the flickr example:
> http://sorgalla.com/projects/jcarousel/example_dynamic_flickr.html
> You might consider buffering two or three pictures ahead instead of just
> one. That way the user doesn't have to wait after every picture.
> 

The problem with that is, that the loadItemHandler must call
carousel.loaded() after the next range is loaded.
jCarousel needs that for calculating some things, ie. if the ext-button can
be enabled or not.
But you might handle that with callback function, ie. preloading more images
after calling carousel.loaded().

Jan
-- 
View this message in context: 
http://www.nabble.com/jCarousel-tf2205628.html#a6152474
Sent from the JQuery forum at Nabble.com.


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


[jQuery] On-Demand Javascript?

2006-09-05 Thread Rey Bango
I was reading this article on Ajaxian:

http://ajaxian.com/archives/prototype-extension-dynamic-script-pattern-support

which discusses Dynamic Script Pattern or On-Demand Javascript. I think 
this is a VERY cool feature. Does Jquery support something like this?

What are the pros and cons of something like this?

Rey...

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


Re: [jQuery] Font-weight modifier in jQuery

2006-09-05 Thread Dan Atkinson

Wycats,

I used that code from visualjQ as a template, and it didn't work. In IE, I
get a debug error saying that it expects ':'. I changed font-weight:... to
'font-weight':... and IE went straight over it, without modifying the
weight.

Klaus, Class would be a simple option. But now this has me thinking! :)



wycats wrote:
> 
> Take a look under CSS on the visual documentation at "css(prop)" -- it's
> exactly what you're looking for.
> 
> http://www.visualjquery.com
> 
> -- Yehuda
> 
> On 9/5/06, Dan Atkinson <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hey all!
>>
>> I'm sorry if this has been discussed before (I did a search without any
>> results on the subject), but does jQuery have the ability to change the
>> font-weight with the css method (or a font-weight method)?
>>
>> I had a look in the API documentation and VisualjQuery, but neither show
>> anything for it.
>>
>> For instance, for something like this:
>> $("p").css({ color: "black", font-weight: "normal" });
>> or
>> $("p").css({ color: "red", font-weight: "bolder" });
>>
>> Here you can see the first is normal text, while the other is red and
>> bold(er) for a warning.
>>
>> Anyhow, just wondering if font-weight was inside jQuery at all?
>>
>> Cheers,
>>
>> Dan
>> --
>> View this message in context:
>> http://www.nabble.com/Font-weight-modifier-in-jQuery-tf2220759.html#a6151779
>> Sent from the JQuery forum at Nabble.com.
>>
>>
>> ___
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>>
> 
> 
> 
> -- 
> Yehuda Katz
> Web Developer
> (ph)  718.877.1325
> (fax) 718.686.4288
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Font-weight-modifier-in-jQuery-tf2220759.html#a6152395
Sent from the JQuery forum at Nabble.com.


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


Re: [jQuery] Anything similar to scriptaculous for JQuery

2006-09-05 Thread Andy Matthews
Hope it helps. Always good to have more Coldfusion representation.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Rey Bango
Sent: Tuesday, September 05, 2006 8:47 AM
To: jQuery Discussion.
Subject: Re: [jQuery] Anything similar to scriptaculous for JQuery


Hey Andy!! Thanks for the welcome. BTW, thanks for the sample code. I'll 
be poking through it today.

Rey...

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


Re: [jQuery] Anything similar to scriptaculous for JQuery

2006-09-05 Thread Rey Bango
Hey Andy!! Thanks for the welcome. BTW, thanks for the sample code. I'll 
be poking through it today.

Rey...

Andy Matthews wrote:
> Welcome Rey! Glad to have you on yet another list of which I'm a part.
> 
>  andy matthews
> web developer
> certified advanced coldfusion programmer
> ICGLink, Inc.
> [EMAIL PROTECTED]
> 615.370.1530 x737
> --//->
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Behalf Of Rey Bango
> Sent: Sunday, September 03, 2006 4:41 PM
> To: jQuery Discussion.
> Subject: [jQuery] Anything similar to scriptaculous for JQuery
> 

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


Re: [jQuery] Thickbox 2.0 and dynamic content

2006-09-05 Thread Andy Matthews
One question I've got about the Thickbox/Lightbox libraries...

Currently there's no way to bookmark an image on a specific page. Does
anyone have any ideas about how to create a link that will load the correct
page, but auto-display the chosen image?

That's the main thing keeping me from using one of these systems.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Dylan Verheul
Sent: Monday, September 04, 2006 12:30 AM
To: jQuery Discussion.
Subject: [jQuery] Thickbox 2.0 and dynamic content


I think I've seen this subject before, so I thought I'd share my solution.

Case:
- I want to use Thickbox
- Some of my content is dynamically provided through AJAX
- The Thickbox urls in the AJAX content aren't thickboxed in
$(document).ready()
- Thickboxing twice gives me errors

My solution:
I changed the TB_init from Thickbox to:

function TB_init(elem) {
if (!elem) elem = document;
$("a.thickbox", elem).click(function() {
var t = this.title || this.name || null;
var g = this.rel || false;
TB_show(t,this.href,g);
this.blur();
return false;
});
}

Now I can provide this function with a DOM element to search in. So
when I load content into , I can call
TB_init($("#ajaxHere")[0]).

I might even extend this by adding a $.fn.thickbox that does this for
the entire jQuery chain to make it look better and play nice with
other jQuery stuff, but I'm hoping Cody might want to add some of this
into Thickbox.

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


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


Re: [jQuery] Font-weight modifier in jQuery

2006-09-05 Thread Yehuda Katz
Take a look under CSS on the visual documentation at "css(prop)" -- it's exactly what you're looking for.http://www.visualjquery.com-- Yehuda
On 9/5/06, Dan Atkinson <[EMAIL PROTECTED]> wrote:
Hey all!I'm sorry if this has been discussed before (I did a search without anyresults on the subject), but does jQuery have the ability to change thefont-weight with the css method (or a font-weight method)?
I had a look in the API documentation and VisualjQuery, but neither showanything for it.For instance, for something like this:$("p").css({ color: "black", font-weight: "normal" });
or$("p").css({ color: "red", font-weight: "bolder" });Here you can see the first is normal text, while the other is red andbold(er) for a warning.Anyhow, just wondering if font-weight was inside jQuery at all?
Cheers,Dan--View this message in context: http://www.nabble.com/Font-weight-modifier-in-jQuery-tf2220759.html#a6151779
Sent from the JQuery forum at Nabble.com.___jQuery mailing listdiscuss@jquery.com
http://jquery.com/discuss/-- Yehuda KatzWeb Developer(ph)  718.877.1325(fax) 718.686.4288
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Anything similar to scriptaculous for JQuery

2006-09-05 Thread Andy Matthews
Welcome Rey! Glad to have you on yet another list of which I'm a part.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Rey Bango
Sent: Sunday, September 03, 2006 4:41 PM
To: jQuery Discussion.
Subject: [jQuery] Anything similar to scriptaculous for JQuery


Hi everyone,

Prototype users have the scriptaculous library for all the cool UI 
stuff. Does JQuery have an equivalent effort going on? Can scriptaculous 
  be used with JQuery or is it so intertwined with Prototype that 
decoupling the two is impossible? What moo.fx? Usable with JQuery? 
Alternatives?

Thanks. Just trying to piece all of the options together.

Rey...

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


Re: [jQuery] Font-weight modifier in jQuery

2006-09-05 Thread Klaus Hartl


Dan Atkinson schrieb:
> Hey all!
> 
> I'm sorry if this has been discussed before (I did a search without any
> results on the subject), but does jQuery have the ability to change the
> font-weight with the css method (or a font-weight method)?
> 
> I had a look in the API documentation and VisualjQuery, but neither show
> anything for it.
> 
> For instance, for something like this:
> $("p").css({ color: "black", font-weight: "normal" });
> or
> $("p").css({ color: "red", font-weight: "bolder" });
> 
> Here you can see the first is normal text, while the other is red and
> bold(er) for a warning.
> 
> Anyhow, just wondering if font-weight was inside jQuery at all?
> 
> Cheers,
> 
> Dan


Dan, your code should actually work as is. Nonetheless I recommend to 
separate behavior and presentation and would instead add a class (avoid 
presentational naming!) to the element:

$("p").addClass('warning');

.warning {
 color: red;
 font-weight: bolder;
}

That way you have also much more control for print and other style 
sheets as if you would use the style attribute...


-- Klaus


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


Re: [jQuery] Font-weight modifier in jQuery

2006-09-05 Thread Fil
> $("p").css({ color: "red", font-weight: "bolder" });

Try
$("p").css({ color: "red", "font-weight": "bolder" });

(The dash needs quoting, I think.)

-- Fil


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


[jQuery] Font-weight modifier in jQuery

2006-09-05 Thread Dan Atkinson

Hey all!

I'm sorry if this has been discussed before (I did a search without any
results on the subject), but does jQuery have the ability to change the
font-weight with the css method (or a font-weight method)?

I had a look in the API documentation and VisualjQuery, but neither show
anything for it.

For instance, for something like this:
$("p").css({ color: "black", font-weight: "normal" });
or
$("p").css({ color: "red", font-weight: "bolder" });

Here you can see the first is normal text, while the other is red and
bold(er) for a warning.

Anyhow, just wondering if font-weight was inside jQuery at all?

Cheers,

Dan
-- 
View this message in context: 
http://www.nabble.com/Font-weight-modifier-in-jQuery-tf2220759.html#a6151779
Sent from the JQuery forum at Nabble.com.


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


Re: [jQuery] jCarousel

2006-09-05 Thread Andy Matthews
This is AWESOME. I was just looking for something like this. It works
wonderfully, but I did notice one or two oddities.

In IE 6.0.2 (PC):

The vertical carousel:
http://sorgalla.com/projects/jcarousel/example_static_vertical.html
the 3 pictures appear to be off by about 30 pixels vertically.

The dynamic AJAX example:
http://sorgalla.com/projects/jcarousel/example_dynamic_ajax.html
Clicking the next button until you get to the end of the pictures and
instead of just wrapping around to the end, the pictures slide back to the
left until you get to the beginning.

On the flickr example:
http://sorgalla.com/projects/jcarousel/example_dynamic_flickr.html
You might consider buffering two or three pictures ahead instead of just
one. That way the user doesn't have to wait after every picture.

Other than these minor things this is a fantastic plugin!! Kudos.




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of jsorgalla
Sent: Friday, September 01, 2006 8:29 PM
To: discuss@jquery.com
Subject: [jQuery] jCarousel



Hi there,

i'm the next one staying in the line of jQuery plugin authors.
I've created a new plugin called jCarousel. Its inspired by Bill Scott's
"Carousel Component" for YUI.

Check it out at http://sorgalla.com/pages/jcarousel.html and let me know
what you think.

Thanks, Jan
--
View this message in context:
http://www.nabble.com/jCarousel-tf2205628.html#a6108635
Sent from the JQuery forum 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] discuss Digest, Vol 9, Issue 7

2006-09-05 Thread Hartman, Matthew
George Smith:
> 
> Perhaps this is a problem ajax shouldn't be trying to fix? With an
> application that size, surely breaking back button and creating
> bookmarking problems isn't something you should be doing?

There are no bookmarking problems because there is no bookmarking to
begin with. Users are required to authenticate to access the site,
bookmarks don't work. This is an internal web application remember, it's
a portal for viewing clinical data on cancer patients.

Matt.


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


Re: [jQuery] jCarousel

2006-09-05 Thread Karl Swedberg
On Sep 4, 2006, at 5:41 PM, digital spaghetti wrote:

> It's just a pity at the moment I can't use jQuery, as it seems to  
> be affecting
> some prototype stuff on my site.

Try making sure that your reference to jquery.js comes last to help  
with compatibility. Also, you might want to look into the svn version  
of compat.js, which John is working on to get jquery and prototype  
working nicely together: http://jquery.com/dev/svn/plugins/compat/

  Cheers,

Karl
___
Karl Swedberg
www.englishrules.com


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


Re: [jQuery] Searching for XML attribute

2006-09-05 Thread Ian B

John
Tried that version - still the same error.

Debug came up with error in this line (639)
>>  } else if ( elem.getAttribute ) {

in this function
attr: function(elem, name, value){

error is elem.getAttribute  Wrong number of arguments or invalid property
assignment

Changing the function to 
attr: function(elem, name, value){
var fix = {
"for": "htmlFor",
"class": "className",
"float": "cssFloat",
innerHTML: "innerHTML",
className: "className",
value: "value",
disabled: "disabled"
};

if ( fix[name] ) {
if ( value != undefined ) elem[fix[name]] = value;
return elem[fix[name]];
} else if ( elem.getAttribute(name) ) {
if ( value != undefined ) elem.setAttribute( name, 
value );
return elem.getAttribute( name);
} else {
name = name.replace(/-([a-z])/ig,function(z,b){return 
b.toUpperCase();});
if ( value != undefined ) elem[name] = value;
return elem[name];
}
},

works, but probably breaks other stuff 'cos I'm nowhere near good enough a
coder:-)
Thanks
Ian



Ian -

Could you try that with jQuery 1.0.1?
http://jquery.com/src/jquery-1.0.1.js

And let me know if you get the same bug? Also, in 1.0+ jQuery has the
method .text() that allows you to easily get the text contents of an
element, making your code simply:
$('[EMAIL PROTECTED]"Abbreviated Name"]', xml).text()

--John

On 9/4/06, Ian B <[EMAIL PROTECTED]> wrote:
>
> I seem to be having a problem with the latest release of Jquery
> Given this XML:-
> 
> 
>  noteid="4806" siblings="1">
> 
> Janine Porter/Operations/Ventura
> House/Wath
> 
> 
> Janine Porter
> 
> 
> 
>
> Then this did work
> $('[EMAIL PROTECTED]"Abbreviated Name"]', xml).get(0).text) - giving me 
> 'Janine
> Porter/Operations/Ventura House/Wath' from the above.
>
> Putting the latest Jquery in (* $Rev: 249 $) - compressed - IE6 gives me
> 'wrong number of arguments or invalid property assignment'
> I'm sure the error will be mine but I didn't think the attribute syntax
> had
> been changed!
>
> Thanks
> Ian



-- 
John Resig
http://ejohn.org/
[EMAIL PROTECTED]


-- 
View this message in context: 
http://www.nabble.com/Searching-for-XML-attribute-tf2215205.html#a6147813
Sent from the JQuery forum at Nabble.com.


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


Re: [jQuery] Form fields: bug or request

2006-09-05 Thread David Duymelinck
A checkbox or a radiobox value is commonly used to determine if a value 
should be stored or not, therefore the value of a check/radio box is 
static and has nothing to do with the state of the checkbox.

This is just to clarify what the  common understanding is .  I like to 
know the reason behind what people do too so that's why i'm sending this. 

Dylan Verheul schreef:
> OK, I'll do it like that then. Thanks for the response.
>
> On 9/5/06, John Resig <[EMAIL PROTECTED]> wrote:
>   
>> That's not my understanding as to how checkbox values work. If you
>> really want to uncheck a checkbox, you have to remove the checked
>> attribute - changing the value does /not/ have the same effect.
>>
>> So, to uncheck it you could do:
>> $("#foo").removeAttr("checked");
>>
>> --John
>>
>> On 9/5/06, Dylan Verheul <[EMAIL PROTECTED]> wrote:
>> 
>>> I have a checkbox like this
>>>
>>> 
>>>
>>> I would expect this code to uncheck it:
>>> $("#foo").val(0); // any value != 1 should uncheck it
>>> and this code to check it
>>> $("#foo").val(1);
>>>
>>> It doesn't.
>>>
>>> The value attribute of a checkbox is imho not dynamic like a texbox's,
>>> but static, and can only be toggled to on or off.
>>>
>>> When manipulating form fields (don't get me started on radio button
>>> sets), jQuery seems to lose its beauty.
>>>
>>> Any ideas?
>>>
>>> 
>   


-- 
David Duymelinck

[EMAIL PROTECTED]


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


Re: [jQuery] opacity in msie?

2006-09-05 Thread Will Jessup
El Rocco ,

I think john posted something similar as a bug tonight , there is a 
problem w/ fadeTo in IE in the .css function.

Will
> Hi there guys!
>
> Just wanted to make sure that if I check the opacity css property, IE  
> will not return null (it was in some tests I did).
>
> I checked the source and on lines 389 to 393, this is what I see :
>
> 389 } else if ( p == "opacity" && jQuery.browser.msie )
> 390   return parseFloat( jQuery.curCSS(e,"filter").replace(/ 
> [^0-9.]/,"") ) || 1;
> 391
> 392   return jQuery.curCSS( e, p );
> 393 },
>
> This part makes me think that if I check
> $(this).css("opacity");
>
> I should get the right value even if i'm in IE right? If not, what  
> does this do? Is it just to SET the right value in IE?
>
> If I use the BUILT-IN fade functions, everything works fine in IE but  
> as said in a previous thread (http://www.mail-archive.com/ 
> discuss@jquery.com/msg00660.html) things are now queued if I do  
> something like this :
>
> $(this).width("37px").fadeTo("fast",0.5);
>
> If I want to use the animate() function to do what I want, as  
> specified by John in the aforementioned thread, I'd have to do  
> something like this :
>
> $(this).animate({width:37,opacity:.5},"fast");
>
> I'll try this when I get in the office tomorrow (I don't have a pc  
> with IE here) and will post my results.
>
> Tnx!
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>
>
>   


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