[jQuery] Why doesn't this work (a short one)

2007-11-05 Thread [EMAIL PROTECTED]
The following code works perfectly fine: 1. Checks if a certain textarea exists. 2. Adds an input box straight after it. 3. Counts the number of characters in the textarea either (a) when it becomes available or (b) on the keyup event. $(textarea#MessageBody) .after(input

[jQuery] Re: Select Option (find class of option)

2007-11-05 Thread Wizzud
This is all you need inside the change() function... $('#' + $('option:selected', this).attr('class')).show(); On Nov 5, 1:38 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: $(document).ready(function() { $('div.hidden').hide(); $('#node-58

[jQuery] Re: Why doesn't this work (a short one)

2007-11-05 Thread Wizzud
ready() is a replacement for window.onload and is therefore only intended to be used against document. $(document.ready(){ // jquery code goes inside the ready()... // eg . $(textarea#MessageBody) .after(input id=\CharCounter\/) .each(function(){CharCounter(this);})

[jQuery] Re: jQuery Challenge

2007-11-05 Thread Paul Bakaus
That's right, FX/Enchant will feature class animations as well as stylesheet animations. You can already test class animations if you check out trunk/fx. On Nov 4, 10:46 pm, Benjamin Sterling [EMAIL PROTECTED] wrote: Sean, I actually think it will be in the fx library, but I could be wrong.

[jQuery] Re: Error jqgrid

2007-11-05 Thread Tony
David, If You try the jqGrid before, please try to clear the Cache in FF. I have updated the jqGrid on 04/11. Tony On 4 Ноем, 16:09, David [EMAIL PROTECTED] wrote: i use jqgrid for test,but i have this error: uncaught exception: Permission denied to call method XMLHttpRequest.open when

[jQuery] This is an easy one

2007-11-05 Thread [EMAIL PROTECTED]
I've updated my code since the previous post, here's where I'm at - though it still doesn't work! I think the problem is around my each() function call? script type='text/javascript' $(document).ready(function() { $('div.hidden').hide();

[jQuery] Problems with Accordion seems to be with jQuere itself

2007-11-05 Thread Mark Lacas
I have been doing some dynamic things with accordion and have found some areas that don't work. After some rather extensive debugging it appears that the problem lies in jQuery. I'm doing some very dynamics things with the content that lives in the accordion. The problems I've found seem to

[jQuery] Selectors

2007-11-05 Thread Olaf Gleba
Hi. I have a reference to 'this', which is a href tag. This href contains as the only child a image. I want to select only this image, to modify his src attribute. This works: // 'e' is my reference to 'this' var i = $(e).children(); $(i).attr({src: path/to/image}); But i think

[jQuery] Re: Store meta data in jQuery?

2007-11-05 Thread boermans
Wizzud that is _exactly_ what I was looking for! Thank-you! I see this being particularly useful for storing references to other DOM elements. For example to store a reference on each paragraph to it's previous sibling: !-- HTML -- pItem 1/p pItem 2/p !-- save ref to item 1 --

[jQuery] Re: Selectors

2007-11-05 Thread boermans
Perhaps this: $('img',e).attr({src: path/to/image}); Where img is the tag for your image and the comma ',' after the 'img' indicates that this selector is relative to 'e' (i.e. inside it). BTW there is no such beast as a href tag - href is an attribute of an a tag. In the same way 'src' is an

[jQuery] Re: Problems with Accordion seems to be with jQuere itself

2007-11-05 Thread Dan G. Switzer, II
Mark, I have been doing some dynamic things with accordion and have found some areas that don't work. After some rather extensive debugging it appears that the problem lies in jQuery. I'm doing some very dynamics things with the content that lives in the accordion. The problems I've found

[jQuery] Re: Selectors

2007-11-05 Thread Olaf Gleba
Am 05.11.2007 um 14:02 schrieb boermans: Perhaps this: $('img',e).attr({src: path/to/image}); Brilliant. And of course you are right - href is likewise src an attribute, not a tag ;) typo... thx a lot Olaf

[jQuery] ClueTip only working on first class instance

2007-11-05 Thread Ben Hays
Hi, I've tried a few varieties, but I can't get the ClueTip to show up on more than one instance of a class in a page. I'm using the first JTip example and code from the demo with no luck. Did I miss anything? Using class=jt in various a href calls with the following jQuery:

[jQuery] Re: SITE SUBMISSION: pvponline.com

2007-11-05 Thread Andy Matthews
That's pretty funny. Whomever designed this site isn't really thinking that smart. They're using jQuery AND Prototype. Most likely just using jQuery to be able to use Thickbox. Why not just use Lightbox then and save yourself the load of jQuery? andy -Original Message- From:

[jQuery] Re: Event binding memory leak

2007-11-05 Thread Brandon Aaron
This is fixed in the latest SVN. -- Brandon Aaron On Nov 4, 8:48 pm, tim connor [EMAIL PROTECTED] wrote: When a page is unloaded, jQuery is not unbinding any bound events causing a memory leak in IE6. Below is a very simple test page. If it is opened in IE6 you can see the memory usage

[jQuery] Re: jQuery UI Datepicker v3.0 Released! (Previously named jQuery Calendar)

2007-11-05 Thread wick
@Micha - If you look closer at popwincal the differences, I think it's a bit more complicated than that. I agree with Graeme - the thing I like best about popwincal is the simpler/slicker header area, mainly the fact that popwincal fits the important date controls onto one, clean thin control

[jQuery] Jquery Sortable plugin and Flash content problem

2007-11-05 Thread jamietssg
Hello, I am using the jquery and te sortable plugin. The sortable items are dics that contain object and embed tags to a flash file. In FF when I drag the divs around the flash movie appears smooth and as you would expect. However in IE 6 and IE7 when I drag the div around the flash movie will

[jQuery] Jquery Sortable plugin and Flash content problem

2007-11-05 Thread jamietssg
Hello, I am using the jquery and te sortable plugin. The sortable items are dics that contain object and embed tags to a flash file. In FF when I drag the divs around the flash movie appears smooth and as you would expect. However in IE 6 and IE7 when I drag the div around the flash movie will

[jQuery] Dojo Jquery

2007-11-05 Thread [EMAIL PROTECTED]
Is anyone using Dojo jQuery together? If so, are there any issues?

[jQuery] Re: Custom function called in toogle()

2007-11-05 Thread Snook
Sorry Wizzud, but your code didn't works either, the checkbox is checked every time. I have also try in different way like this and this make me crazy !: function myToggle(toggleElem, showHideElem){ var showHide = $(showHideElem); $(toggleElem).toggle(

[jQuery] Re: SITE SUBMISSION: pvponline.com

2007-11-05 Thread Jake McGraw
What I love is the bullocks (I've been watching too much Gordon Ramsey's Kitchen Nightmares) these guys have (http://thinslice.net/) have, from their website: Crap. The stuff that so many web experts hurl at their clients without mercy. They promise style, they promise substance. But

[jQuery] Re: Custom function called in toogle()

2007-11-05 Thread Snook
I also have tried, like you suggested, to use the .each() function. function myToggle(toggleElem, showHideElem){ var showHide = $(showHideElem); $(toggleElem).toggle( function(){ showHide.show('slow');}, function(){ showHide.hide('slow');}

[jQuery] Re: Drastically reducing jQuery load time

2007-11-05 Thread eferraiuolo
Just use the minified version and send it over the wire gzipped and be done with it. The eval of packed jQuery does take some time, so even if the file is cached it probably will be slightly slower than the cached minified variation. Check this out:

[jQuery] Re: Dojo Jquery

2007-11-05 Thread Yehuda Katz
jQuery and Dojo are both in the interop camp (one global object; no modifying native objects) so it should be fine :) Sent from my iPhone On Nov 5, 2007, at 7:08 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Is anyone using Dojo jQuery together? If so, are there any issues?

[jQuery] Re: Release: jQuery Validation plugin 1.1.1

2007-11-05 Thread wattaka
Hi Jörn! Is 1.1.2 out yet? Thanks On Oct 18, 11:08 pm, Jörn Zaefferer [EMAIL PROTECTED] wrote: wattaka schrieb: I think something went wrong with the code merging The metadata had a bugix a while back, it was just named metadata.js instead of jquery.metadata The validation plugin has

[jQuery] hiding elements via stylesheet

2007-11-05 Thread ekallevig
I'm a little confused about jquery and prototype's hide/show methods. In the prototype api, it says that Element.show cannot display elements hidden via CSS stylesheets. Note that this is not a Prototype limitation but a consequence of how the CSS display property works. I know that if you set

[jQuery] Re: Advanced Problem - Any takers?

2007-11-05 Thread ja
Here is is... pretty big, but this is all of it. div style=border: 1px dotted rgb(108, 123, 139); margin: 0px; padding: 0px; text-align: center; font-family: Arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: 1.2em; font-size-adjust: none;

[jQuery] Best way to switch code between pages

2007-11-05 Thread galen
I have a header file that includes the jquery.js and a custom.js in all of my pages. In the custom.js what is the best way to switch between current pages. For example if index page loads do this if contact page loads do that. i have a unique id in the body of each page. But can't seem to find

[jQuery] parsers[i] has no properties

2007-11-05 Thread [EMAIL PROTECTED]
Has anyone been seeing the following in the firefox error console when sorting a tablesorter: parsers[i] has no properties line:482 It happens whenever a sort is run (on init, user input, or ajax). I assumed it was my custom parsers, so I removed them from my code but I'm still getting this

[jQuery] Re: Overwrite div with .load()

2007-11-05 Thread ryanfitzer
Well, I figured it out but had to do a bit of reworking and compromising. I'm now calling all the needed pages upfront using load() instead of putting them in the click() handler. The solution is not the most efficient but it's a good starting place. If anyone has a better way I'd love to see it.

[jQuery] Re: Jquery Sortable plugin and Flash content problem

2007-11-05 Thread jamietssg
I've uploaded an example, try drag the box containing the flash game in IE http://weeatbricks.com/test/sortable_flash.html Thanks Jamie On Nov 5, 2:10 pm, jamietssg [EMAIL PROTECTED] wrote: Hello, I am using the jquery and te sortable plugin. The sortable items are dics that contain

[jQuery] Initialization of jCarousel with too few elements.

2007-11-05 Thread Glenn Nilsson
Hi everyone, I'm trying to figure out if I'm doing something wrong or if there's a bug in jCarousel. The number of items in my jcarousel is dynamic, and i have a 'live filtering' feature on the client side too, so the number of items may change in runtime, and the only working way I've gotten

[jQuery] Re: ClueTip only working on first class instance

2007-11-05 Thread bhays
Just realized the whole eq(0) thing is the issue. Time to brush up on jQuery... On Nov 5, 8:25 pm, Ben Hays [EMAIL PROTECTED] wrote: Hi, I've tried a few varieties, but I can't get the ClueTip to show up on more than one instance of a class in a page. I'm using the first JTip example and

[jQuery] Re: parsers[i] has no properties

2007-11-05 Thread Christian Bach
Hi Joe, Are you passing any sorter options to tablesorter? /christian 2007/11/5, [EMAIL PROTECTED] [EMAIL PROTECTED]: Has anyone been seeing the following in the firefox error console when sorting a tablesorter: parsers[i] has no properties line:482 It happens whenever a sort is run

[jQuery] Tabs plugin: Clicking on tabs makes page to scroll

2007-11-05 Thread pigeonpoop
It happens when i load the page and scroll down before i click any of the tabs. The 3rd tab of the group is the one that always bounces the page(way more than the others) to the scroll height it chooses. Strange right? Each of the divs associated with Tabs can be of varying lengths. Are there

[jQuery] Re: Livequery and History / Remote togehter. Help.

2007-11-05 Thread Carl Anderson
I too would like to get an idea of the use of History/Remote and Live Query. I don't know if I can divorce Live Query from my existing solution, so I very much need to have an idea of how to use these two plugins together successfully. If anyone has any insight, no matter how small, I'd love to

[jQuery] JSON + JQUERY Problem! Need help ASAP toJSONString not a function

2007-11-05 Thread Bryank
Hi Everyone, First time poster on this group. We use JSON for various projects and one thing I am beginning to implement are some Jquery lightbox effects. Well, sure enough Jquery and JSON don't play nice in this regard. If I try one of the JSON No Augmenting JS files out on the web, that

[jQuery] Re: Best way to switch code between pages

2007-11-05 Thread Karl Swedberg
If you're just checking for the presence of an element with and ID, you can use .length, but it should be inside the document ready: $(document).ready(function() { if ( $('#home').length ) { // insert code here } }); Another, slightly unconventional, way of doing this is to wrap

[jQuery] $('.class1,.class2').filter(':first') always finds first .class1

2007-11-05 Thread Pyrolupus
Basically, what I want to do is find the first element that matches either class1 OR class2. However, using the syntax from the subject line: var $jqElem = $('.class1,.class2').filter(':first'); $jqElem is always the first element that has class1 (i.e., the first class specified), rather

[jQuery] Re: $('.class1,.class2').filter(':first') always finds first .class1

2007-11-05 Thread Erik Beeson
Your issue doesn't actually have anything to do with the filter, it's the selection. $('.class1,.class2') selects all class1, then all class2. So even if class2 appears before class1, class one will still get selected first (since you specified it first in the selector), and your filter will

[jQuery] Re: Custom function called in toogle()

2007-11-05 Thread Wizzud
Yeah, it was a bit thoughtless of me to suggest it (tired!). Try this instead...(untested)... function myToggle(toggleElem, showHideElem){ var showHide = $(showHideElem); $(toggleElem).toggle( function(){ showHide.show('slow'); toggleElem.checked = ! toggleElem.checked; },

[jQuery] Re: parsers[i] has no properties

2007-11-05 Thread [EMAIL PROTECTED]
No, just zebra: $(#example).tablesorter({widgets: ['zebra']}); Previously I was using the following: headers: {0: {sorter: false}, 3: {sorter: 'cut'}, 5: {sorter: 'clarity'}, 6: {sorter: 'generic'}, 7: {sorter: 'generic'}, 9: {sorter:

[jQuery] Re: JSON + JQUERY Problem! Need help ASAP toJSONString not a function

2007-11-05 Thread Penner, Matthew
Hi Bryan, We had this problem as well. The solution was to use jQuery's JSON functions $.toJSON() .parseJSON() instead of those built into the JSON library. Matt Penner -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Bryank Sent: Monday,

[jQuery] Re: Best way to switch code between pages

2007-11-05 Thread galen
Works good. Thanks a lot Karl. I appreciate your help =] Galen On Nov 5, 12:56 pm, Karl Swedberg [EMAIL PROTECTED] wrote: If you're just checking for the presence of an element with and ID, you can use .length, but it should be inside the document ready: $(document).ready(function() {

[jQuery] Re: Livequery and History / Remote togehter. Help.

2007-11-05 Thread Klaus Hartl
On Nov 5, 5:53 pm, Carl Anderson [EMAIL PROTECTED] wrote: I too would like to get an idea of the use of History/Remote and Live Query. I don't know if I can divorce Live Query from my existing solution, so I very much need to have an idea of how to use these two plugins together

[jQuery] Re: Tabs plugin: Clicking on tabs makes page to scroll

2007-11-05 Thread Klaus Hartl
On Nov 5, 5:10 pm, pigeonpoop [EMAIL PROTECTED] wrote: It happens when i load the page and scroll down before i click any of the tabs. The 3rd tab of the group is the one that always bounces the page(way more than the others) to the scroll height it chooses. Strange right? Each of the divs

[jQuery] Scripts at the bottom of the page

2007-11-05 Thread Sean Catchpole
Is there a good reason why placing scripts at the bottom of a page is a bad idea? By placing them in the head all javascript files must be downloaded before the rest of the page can render. This seems odd since most of the time the javascript needs to wait for the page to be loaded anyway. Other

[jQuery] Find first matching previous element relative to (this)

2007-11-05 Thread nemozob
Hi, I'm trying to target the closets instance of an element with a class name target but I'm having trouble figuring out how to do this. So given this HTML p class=targethow are you?/p phello/p p class=targethow are you?/p -- want to target this paragraph pI am fine/p div div

[jQuery] Re: Find first matching previous element relative to (this)

2007-11-05 Thread Jonathan Sharp
.find() only searches down the tree (so child elements of .btn). You may need some combination of .parents() or .siblings(). Cheers, -Jonathan On 11/5/07, nemozob [EMAIL PROTECTED] wrote: Hi, I'm trying to target the closets instance of an element with a class name target but I'm having

[jQuery] Re: Parent Selectors + this?

2007-11-05 Thread Chris Beaven
Try something like: function () { // get all table ancestors var tables = $(this).parents('table'); // get the inner-most table var table = $(tables[tables.length-1]); $('.extended', table).toggleClass('hidden'); } Alternately, you could just use dom traversal:

[jQuery] Re: Scripts at the bottom of the page

2007-11-05 Thread Chris Beaven
On Nov 6, 9:05 am, Sean Catchpole [EMAIL PROTECTED] wrote: Is there a good reason why placing scripts at the bottom of a page is a bad idea? The bad practice here is that where you place the script shouldn't really matter. Your scripts should usually be made non-intrusive enough to wait for

[jQuery] Re: Scripts at the bottom of the page

2007-11-05 Thread Mike Alsup
Not true. Browsers usually pull linked files in asynchronously. Not scripts. All script elements are evaluated in order as the document is loaded. How else would you be able to have script dependencies? :-)

[jQuery] Re: Find first matching previous element relative to (this)

2007-11-05 Thread Karl Swedberg
If you're using jQuery 1.2, you can do it like this: $(.btn).click(function(){ $(this).parent().prevAll(.target:first).css('color','red'); }); --Karl On Nov 5, 2007, at 3:18 PM, Jonathan Sharp wrote: .find() only searches down the tree (so child elements of .btn). You may need some

[jQuery] jQuery.easing[this.options.easing || (jQuery.easing.swing ? swing : linear)] is not a function

2007-11-05 Thread Daemach
After upgrading to jquery 1.2.1 I'm getting the error above on a regular basis. Has anyone else seen this?

[jQuery] preferred method for controlling a plugin from outside

2007-11-05 Thread Mateusz Misiorny
Hi, I need to control my accordion from outside, i.e. I need to be able to open a specific part on some event. I have came up with this: jQuery.fn.accordion = function () { this.find('dd:not(:first)').hide(); return this.each(function() {

[jQuery] Re: jQuery UI Datepicker v3.0 Released! (Previously named jQuery Calendar)

2007-11-05 Thread wick
I was just looking through the code noticed my a config option to turn off the day-of-the-week links feature request is already implemented. Nice! I missed it in the option documentation. On Nov 5, 8:59 am, wick [EMAIL PROTECTED] wrote: @Micha - If you look closer at popwincal the

[jQuery] Re: Scripts at the bottom of the page

2007-11-05 Thread Guy Fraser
Sean Catchpole wrote: Is there a good reason why placing scripts at the bottom of a page is a bad idea? By placing them in the head all javascript files must be downloaded before the rest of the page can render. This seems odd since most of the time the javascript needs to wait for the page

[jQuery] Re: Tabs plugin: Clicking on tabs makes page to scroll

2007-11-05 Thread pigeonpoop
Hey Klaus, Great plugin!.. ..OK, I'm using 2.7.3. There are no callbacks. Firebug shows no errors. And the page scrolling/jumping happens on all browsers :( I thought this was the most recent version.. You just released Tabs 3 about a week ago it seems. Ha!. Let me give that a try.. On Nov 5,

[jQuery] Re: Tabs plugin: Clicking on tabs makes page to scroll

2007-11-05 Thread pigeonpoop
I tried to update to Tabs 3 just now. I just selected 'Tabs' from the UI downloader but i got 2 errors when i tried to use this file instead of the tabs 2.7 file. Something about $.ui has no properties. I then took the JS from your Tabs 3 demo page to try instead. That got rid of the js errors

[jQuery] Re: Livequery and History / Remote togehter. Help.

2007-11-05 Thread Carl Anderson
Thanks Klaus. Incidentally, is there a way to--somehow!--use the history/remote plugin while using one's own Ajax code? I've got a fully built system in place, and the only thing missing is the history bits. Any suggestions? --Carl On Nov 5, 12:29 pm, Klaus Hartl [EMAIL PROTECTED] wrote: On

[jQuery] Calling jquery in an other function?

2007-11-05 Thread Moonwalker
Hi, I'm using AJAX to update data in my database. Right now I'm using this code: [code] function accept(id, action){ var indicator = document.getElementById(indicator).style; var naamInput = document.getElementById('naam');

[jQuery] Re: $('.class1,.class2').filter(':first') always finds first .class1

2007-11-05 Thread Pyrolupus
Thank you for the explanation and the suggestion, but elements are already (potentially) sporting multiple classes, due to multiple types of validation occurring on the fields. Oversimplified pseudo-psuedocode example: // // begin code // if (requiredField $.trim(requiredField.val()).length ==

[jQuery] Re: Select Option (find class of option)

2007-11-05 Thread [EMAIL PROTECTED]
Cheers for that! It doesn't work though. I should point out that the divs with the IDs are elsewhere in the document, not near the select - but that shouldn't matter should it? Is there some way I can debug it to print out the ID so I can make sure it's doing what I want it to do? On Nov 5,

[jQuery] Re: $('.class1,.class2').filter(':first') always finds first .class1

2007-11-05 Thread Erik Beeson
Your issue doesn't actually have anything to do with the filter, it's the selection. $('.class1,.class2') selects all class1, then all class2. This totally explains why I have the issue, and I thank you for describing it. I expected the select element statement to behave something

[jQuery] Re: Calling jquery in an other function?

2007-11-05 Thread Mike Alsup
$(document).ready(function(){ $(a).click(function () { $(#info+id).slideUp(slow); }); }); For some reason I can't get the ID of the link I just updated. Any Idea how to do this? Unless id is a global variable it is undefined in your click handler. You could simply

[jQuery] Re: Find first matching previous element relative to (this)

2007-11-05 Thread nemozob
Thanks. This works. I realized what I'm really trying to do is find the first instance of '.target' regardless of whether it's a parent or sibling. Is this possible? The script you suggested will only find it if it's a sibling of the parent. Thoughts? On Nov 5, 1:23 pm, Karl Swedberg [EMAIL

[jQuery] Re: Select Option (find class of option)

2007-11-05 Thread [EMAIL PROTECTED]
Oh got it, nevermind. On Nov 6, 9:06 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Cheers for that! It doesn't work though. I should point out that the divs with the IDs are elsewhere in the document, not near the select - but that shouldn't matter should it? Is there some way I can debug

[jQuery] Moo based Calendar widget

2007-11-05 Thread Erik Beeson
Here's a very slick calendar widget built on mootools: http://moomonth.com/ Demo here: http://moomonth.com/demo/index.html It looks like it also has a number of handy additions to the Date object that might be useful outside of mootools: http://moomonth.com/docs/index.html --Erik

[jQuery] Re: Overwrite div with .load()

2007-11-05 Thread cjiang
Hi, I think your code should work if you change the $('tabs-content').load(content+' .entry'); to $('.tabs-content').load(content+' .entry'); On Nov 4, 2:24 pm, ryanfitzer [EMAIL PROTECTED] wrote: I'm trying to create tabbed content (without a plugin for now) via .load(). The initial page

[jQuery] jQuery 1.2.1 errors with Interface

2007-11-05 Thread Nicolae Namolovan
I'm doing $('#some').SlideInRight(500); The effect is working, but after I start to get millions of the same errors into console: this.options.curAnim has no properties ../js/jquery-1.2.1.js Line 2833 this.options.curAnim has no properties ../js/jquery-1.2.1.js Line 2833 this.options.curAnim

[jQuery] Re: Moo based Calendar widget

2007-11-05 Thread Benjamin Sterling
That is really nice. Wonder who will bring the first jQuery version to life? On 11/5/07, Erik Beeson [EMAIL PROTECTED] wrote: Here's a very slick calendar widget built on mootools: http://moomonth.com/ Demo here: http://moomonth.com/demo/index.html It looks like it also has a number

[jQuery] Dynamically created input/button not responding to click event

2007-11-05 Thread Slantedview
I'm using javascript and Jquery to dynamically create an input button and attempt to respond to a click even for that button. Unfortunately, I can't get the click handler to work. I am creating the button like this: var removeButton = document.createElement(INPUT); removeButton.type = button;

[jQuery] Execution of Javascript code in Ajax response in IE and Safari (http://dev.jquery.com/ticket/1598)

2007-11-05 Thread cjiang
This is filed as Ticket #1598, and supposedly it is fixed in release 1.2.1 version. But I still couldn't get it work with 1.2.1. until I patched the JQuery with the patch submitted for Ticket #1698. http://dev.jquery.com/ticket/1698. Does anyone know if this bug has been fixed or not in release

[jQuery] Re: Dynamically created input/button not responding to click event

2007-11-05 Thread Mike Alsup
var removeButton = document.createElement(INPUT); removeButton.type = button; removeButton.value = Remove; $(removeButton).addClass(removeButtonClass); $(myDiv).append(removeButton); My event handler looks like this: $(function(){ $(.removeButtonClass).click(function() {

[jQuery] Re: Dynamically created input/button not responding to click event

2007-11-05 Thread cjiang
My guess is that when you dynamically create a new button, the click event handler won't be bound to it. So if you use livequery plugin, it may work. Something like this: $(function(){ $(.removeButtonClass).livequery('click', function() { alert(handler worked); })

[jQuery] PROBLEM: Adding hover to table rows on large tables

2007-11-05 Thread [EMAIL PROTECTED]
The following code works fine on small tables: $(table tbody tr).mouseover(function(){$(this).addClass(over);}).mouseout(function(){$(this).removeClass(over);}); But on tables with 5,000-10,000 rows, it throws the A script on this page may be busy, or it may have stopped responding. You