Re: [jQuery] Different JQuery Version in Plugins
The problem is that jQuery is currently under intense development. This makes it difficult for plug-in developers as a collective to keep up. You can't say you support svn because svn is not a version. This problem will eventually fix its self once we reach 1.0. -- View this message in context: http://www.nabble.com/Different-JQuery-Version-in-Plugins-tf2070712.html#a5706816 Sent from the JQuery forum at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] SlideDown SlideUp Problems in IE6
Demo: http://nonsponsored.com/cart_demo/minicart.html I see what you are talking about in IE6...the slidedown happens in waves. It seems like each element of the enclosed table appears in a burst, followed by a short pause. I don't know if it would help, but the markup there looks a lot heavier than it needs to be--six nested divs and a table inside that. Maybe simplifying the markup would help IE act better? Also notice that the dashed lines have a glitch in them because the style is being applied to the TD; I think that would go away if they were applied to the TR. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] attr() not working in IE anymore?
On 08/08/06, Klaus Hartl [EMAIL PROTECTED] wrote: To create non-text input elements in IE you have to use the following: document.createElement(input type=submit); In contrast to this: You cannot create button elements with document.createElement in IE, but have to use innerHTML for that... see here: http://stilbuero.de/demo/create_button_bug/dom.html (createElement, does not work in IE) http://stilbuero.de/demo/create_button_bug/inner.html (innerHTML, works in IE) Never ending story... -- Klaus Actually, this works: var button = document.createElement('input'); button.type = 'submit'; button.value = 'The button'; document.getElementById('test').appendChild(button); ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Plugin idea: Gradient Fill
Not seen a plugin that does this yet. Would try it myself, but not sure how to do so (even after looking at existing implementations). http://www.designdetector.com/demos/css-gradients-demo-1.php The basic implementation of that page similar to the rounded corner plugin I did. It's much worse from a performance standpoint though, because you have to fill the entire element area with small slices (generally 1 pixel wide/high). For corners you only have to overlay the top and bottom edges. In the IE case you can dispense with that entirely and use the builtin gradient filter, which has got to be a lot faster: http://msdn.microsoft.com/library/default.asp?url=/workshop/author/filter/re ference/filters/gradient.asp If anyone asks for a radial gradient, punch them. :) ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Click and Double Click
Hi, I have a problem wit the click and dblclick event: var myClickFunction = function() { $(this).toggleClass(backcolor2); } var myDblClickFunction = function() { alert('DoubleClick'); } both are bind to the same object. When I do a click on the object, the myClickFunction function is executed. When I do a double click, first the myDblClickFunction is executed, than the myClickFunction function. Why? Is there a way, that on a double click only the myDblClickFunction is executed? I'm using the stable version of jQuery. Michael ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] jquery 1st space bug while working with classes
i need some script that works with elements classNames, i used heavily jquery's addClass, removeClass, toggleClass to get tricky combinations of classes, and that's what i discovered: in Opera 9 strange space appears in the beginning of complex classNames... for example: while in FF elements className after series of events states:"white active" in Opera the same element after same events has classNames: " active white" so in Opera this styles won't apply for this element (while FF behaves as expected): td.white.active{ background:#FFF; border-color:#F00; } right now for temporarily solution i changed the jquery lib source code: jQuery.className = {add: function(o,c){if (jQuery.hasWord(o,c)) return;o.className += ( o.className ? " " : "" ) + c;// ltrim:while (o.className.substring(0,1) == ' '){o.className = o.className.substring(1, o.className.length);}},remove: function(o,c){o.className = !c ? "" :o.className.replace(new RegExp("(^|\\s*\\b[^-])"+c+"($|\\b(?=[^-]))", "g"), "");// ltrim:while (o.className.substring(0,1) == ' '){o.className = o.className.substring(1, o.className.length);}}}; but maybe, you will take it into consideration, do some cross-browser tests andremove this bug... P.S. - i'm not sure, but i guess the same bug appears in IE either ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] attr() not working in IE anymore?
Actually, this works: var button = document.createElement('input'); button.type = 'submit'; button.value = 'The button'; document.getElementById('test').appendChild(button); yes, sure, it isn't a button element. button elements can take html as children, span for example which allows for some advanced styling. and they even look the same in safari... -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Mouse Down/Alternating Colors on Tables
Man, if anyone ever tries to measure jQuery productivity in lines of code we are *totally* screwed. ;-) Haha, good one ;-) --John ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] can animate() accept units?
Can I request animate() in FxModule accept units such like em? I just found I could use any units in animate() and the default is px. I don't think this is a good idea for designers. Definitely. Although, it probably won't happen until after 1.0. I want to animate percentages, for example. --John ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Click and Double Click
This may work: var myDblClickFunction = function(e) { e.stopPropagation(); alert('DoubleClick'); } but if it works, it will not work in IE. don't you think it is important to support IE, wether one likes it or not? i have found quite often on this list, that code simply isn't tested in IE. i don't like IE either by the way, but its a necessity to support in real world. -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Horiz. Menu
Title: Horiz. Menu I have a horizontal row of divs. So far.. the divs change color onmouseover. How would I get a layer to show up when I rollover say id='home' ?? Sample JQuery: script type=text/_javascript_ $(document).ready(function(){ $('.divLeft').hover(function(){ $(this).addClass('highlighted');},function(){ $(this).removeClass('highlighted'); }); }); /script Sample Code: div id='home' class='divLeft menuTopDiv' a href="" style='display: block;'HOME/a /div * This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies. * ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jquery 1st space bug while working with classes
ok, but it'll require some time to create simplest testcase That's a weird one, do you think you could create a bug report for it? http://proj.jquery.com/dev/bugs/new/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jquery 1st space bug while working with classes
td.white.active{ background:#FFF; border-color:#F00; } P.S. - i'm not sure, but i guess the same bug appears in IE either IE does not support the multiple class selector .white.active. It may seem so somehow, because here it applies these styles as if you had written td.active But if you have another rule in your style sheet after this rule that goes like td.red.active { background: red; border-color: #f00; } the background of every element with the class active would become red in IE. Oh, another hint: class names like white, red, small etc. are purely presentational. if the background shall be changed sometime, you will have to change the class name as well to let it still make sense. and that's what css isn't about. so you better use semantic class names that are not derived from the current (!) look, but from the function or structural meaning of that element (for example important, subtotal etc.) Regards, Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jquery 1st space bug while working with classes
while in FF elements className after series of events states: white active in Opera the same element after same events has classNames: active white so in Opera this styles won't apply for this element (while FF behaves as expected): td.white.active{ background:#FFF; border-color:#F00; } To clarify: This is because multiple classes do also cascade. Thus class=white active isn't the same as class=active white. If both classes one and two of an element define the same properties, the later class overwrites the first: .one { color: green; } .two { color: blue; } p class=one twoBlue text/p p class=two oneGreen text/p And thus the selector .white.active does not match class=active white. Regards, Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Interview with John Resig
Thanks. Looking forward to reading it. !//--andy matthewsweb developercertified advanced coldfusion programmerICGLink, Inc.[EMAIL PROTECTED]615.370.1530 x737--//- -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Rik LomasSent: Tuesday, August 08, 2006 2:00 PMTo: discuss@jquery.comSubject: [jQuery] Interview with John ResigHi guys,I recently interviewed John Resig for the British web design magazine, .net, and thought you'd be interesting in the extended version of my interview with him, in which I ask about the future of jQuery and _javascript_, and his thoughts on the other _javascript_ libraries. http://rikrikrik.com/log/jquery-interviewThanks-- Rik Lomashttp://rikrikrik.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] cant parseInt
On Tue, 8 Aug 2006, Rafael Santos wrote: i just want to increase a value... by jQuery: var cont = $(#img_counter).val(); //its an input value cont = parseInt(cont + 5); $(#img_counter).val(cont); ... =( where am i wrong? You want: cont = parseInt(cont) + 5 The input value is a string. To ensure that it is treated like a number, you have to convert it before you use the + operator, since + is overloaded for numbers and strings. -- .. Dave Benjamin - Software Developer - ramenlabs.com .. AIM: ramenlabs / MSN: [EMAIL PROTECTED] ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Loading a thickbox from a link retrieved by AJAX
Ahh.. i wasnt looking at the code close enough, i had TB_Init(); (capital i) when it should have been TB_init();... Thanks anyways!On 8/8/06, Jonathan Howard [EMAIL PROTECTED] wrote:Thickbox does some initialization on links. You'll need to redo this after getting your link from ajax, because the events won't have been attached to your new link. You should be able to recall the thickbox setup function in the ajax callback procedure. (I believe it's something like TB_Setup(), but check the .js file) ~Jonathan On 8/7/06, Matt Stith [EMAIL PROTECTED] wrote: No not really.. Heres a simple test page:http://mebluedragon.com/jQuery/tests/ajax_tb.php ___jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___jQuery mailing listdiscuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] TablePager: A small demo of thing to come.
stylo~ wrote: Performance is great, but I can't figure out what is being sorted. The column sorts should only sort the displayed data, not the hidden data. (And otherwise the page indicator is wrong also.) From everything I've seen in paging systems: You might consider bringing in a few pages of data, then using ajazz to query for extra sets before needed. By having an extra page onhand, the next page displays instantly and you are always be one page ahead of the user. When he shows the last page, you fetch the next two in advance for him. This way you can handle infinite sets easily. I love your sorter, by the way. Please consider a real speadsheet look, ala webfx tablesorter. Very professional looking. A lurker waiting for 1.0! As of the current implementation it sorts the hole table data. So if your on lets say page 10 and decide to sort on field email ascending the plugin will sort all data and not just the current page. And the result will be that the user is taken back to the first page. This on the other hand could be an optional parameter! So you could have the best of two worlds... As of Ajax i'm still a bit uncertain, because one key feature of the plugin is to work on top of existing html structures. Best regards christian ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] IE leaks memory on loading jquery-svn.js rev.169.
Tuesday, August 8, 2006, 11:50:58 PM, Mikage wrote: IE leaks memory on loading jquery-svn.js rev.169. Also noticed Opera 9 bails with a syntax error eval-ing the latest compressed dev release. -- Steve http://mrclay.org/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/