[jQuery] explain the e in function
Hi I cant find any generall documentation for the e in functions, for exampel: $().click( function(e) { }) Here I can get the position lite this e.pageY But what else can I get fron the e? Can someone please post a generall explanation on the e all the best // johannes -- View this message in context: http://www.nabble.com/explain-the-%22e%22-in-function-tp23132897s27240p23132897.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] function after each -loop
Hi Need som smart advice here, I have a eachloop like this. $(inp...@name='category']).each(function(){ }); And then I want to run a function after the each i done Is that possible? all the best / johannes
[jQuery] run function when 'each' is done, how?
Hi jquery is fantastic :-) My problem: I have a simple each-loop and after the loop I want to run a js-function. How can I determine when the each-loop is done in a more elegant way then this! - var flag = false; $('span.countdown').each(function(){ flag = true; }); // when the loop is done, run 'updateCounter()' if(flag == true){ updateCounter(); } all the best / johannes -- View this message in context: http://www.nabble.com/run-function-when-%27each%27-is-done%2C-how--tp21621320s27240p21621320.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] First add new row, ther re-stripe
Hi I have a table, that I re-render after a click, like this. $(document).ready(function() { $('input[name=category]').click(renderTable); }); Then I remove all existing rows, get new ones, and add the to the table, works fine! // remove old rows $('tbody.tbody_class').children().remove(); // add the new rows $('tbody.tbody_class').html(newTable); Now want to re-stripe the table after the new row are added, how do I do that? any clues? all the best / johannes -- View this message in context: http://www.nabble.com/First-add-new-row%2C-ther-re-stripe-tp20911676s27240p20911676.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] re[jQuery] -bind, only on first add
Hi I have some problem to re-bind after adding data to a page using append and a click-function, never used that before! If I add one textTag that one can use the removeTag but if I add more then one textTag I get alla the alerts test on the first add and the rest gest none?? Some advise please/ Johannes // globals var i = 0; var tagArr = []; var theTag = ''; // ad new tag $('#addTag').click(function() { // grab the tag var textTag = $(#textTag).val(); if(textTag != ''){ // appand to page $('#theTags').append(textTag + ' \/text/removetag/tagid/' x nbsp; '); // remove tag, inside to re-bind new elements $(a#removeTag).click(function(){ alert('test'); return false; }); // clear gui $('#textTag').val(''); // increase key i++; } $(#textTag).focus(); return false; }); -- View this message in context: http://www.nabble.com/re-bind%2C-only-on-first-%22add%22-tp19706233s27240p19706233.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: re[jQuery] -bind, only on first add
hmm, I just found out that if I use after insted of append, things are working... like this: $('#theTags').after(textTag + ' a href=\/text/removetag/tagid/' + i + '\ id=\removeTag\ class=\underline\ x /a '); how to explain that? / johannes -- View this message in context: http://www.nabble.com/re-bind%2C-only-on-first-%22add%22-tp19706233s27240p19706420.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] jQuery Coding Standards
Hello I'm looking for coding standards for jQuery but find it difficult to find any. Does someone have any suggestions on how our dev-team sould write the code in best practice, name variables, objects and so on? best regards / johannes -- View this message in context: http://www.nabble.com/jQuery-Coding-Standards-tp19156680s27240p19156680.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] jqModal clear fields
Hi all I use the jqModal, and I want to clear some fields in the modal window after opening. Cant get it to work so some advise would be perfect. Like this var open = function(hash){ $(#myFiled).val('').show(); }; $('#dialog').jqm({ overlay: 8, onShow: open }); / johannes