Re: [jQuery] Form fields: bug or request

2006-09-05 Thread Klaus Hartl
Dylan Verheul schrieb: I have a checkbox like this input type=checkbox id=foo value=1 checked=checked / 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

Re: [jQuery] Form fields: bug or request

2006-09-05 Thread John Resig
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

[jQuery] opacity in msie?

2006-09-05 Thread El Rocco
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] Using .wrap() with IE

2006-09-05 Thread Christopher Sexton
I am working on a ASP.NET app with jQuery and have run into an IE error (everything works great on firefox, of course). I am trying to rewrite a few div tags using the DOM to make rounded corners, but when I use the .wrap() function Internet Explorer will not properly post back to the server

Re: [jQuery] Form fields: bug or request

2006-09-05 Thread Dylan Verheul
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

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

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

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

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

[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

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/

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

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

Re: [jQuery] Anything similar to scriptaculous for JQuery

2006-09-05 Thread Andy Matthews
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]

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

[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

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

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

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

[jQuery] filter() on attributes?

2006-09-05 Thread Dossy Shiobara
Hi, I don't want to assign an id attribute to all my input fields, but instead want to do something like this: div id=foo input ... name=bar /div Then, get the value with something like: $(#foo input[name=bar]).val(); That didn't work. So, I tried: $(#foo

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.

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

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 input fields, but instead want to do something like this: div id=foo input ... name=bar /div Then, get the value with something like: $(#foo

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

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/

[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

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

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

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?

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

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.

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

[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

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

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

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?

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 (

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

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=onmax=10daysback=3format=rss (Syndicated at

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

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

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

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

[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'.

[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

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

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

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.

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.

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

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

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