[jQuery] explain the "e" in function

2009-04-20 Thread johannesf
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 t

[jQuery] function after "each" -loop

2009-01-28 Thread johannesF
Hi Need som smart advice here, I have a "each"loop 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?

2009-01-23 Thread johannesf
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; $('sp

[jQuery] First add new row, ther re-stripe

2008-12-09 Thread johannesf
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().re

[jQuery] Re: re[jQuery] -bind, only on first "add"

2008-09-27 Thread johannesf
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

[jQuery] re[jQuery] -bind, only on first "add"

2008-09-27 Thread johannesf
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 advi

[jQuery] jQuery Coding Standards

2008-08-26 Thread johannesf
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

[jQuery] jqModal clear fields

2008-07-16 Thread johannesF
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({ ove