[jQuery] Re: strange position by using "after"
ps: this happened only when I move the cursor.gif from left side of 1 to the right side of 1. Here 1 is the last td of the row.
[jQuery] strange position by using "after"
screenshot: http://tinypic.com/view.php?pic=2hd4f7l&s=4 currently I've implement a key listen for moving the cursor (a gif actually) between each digits. my code looks like : var cursor = jQuery("#cursor"); var current=... //current jquery element before cursor gif. if(keycode=){ current.after(cursor); } everything works fine with other numbers in the digit. except the last "1" in the numerator of the fraction. As shown in the screenshot, once we called "current.after(cursor)" here, the gif is rendered below the 321, which should be at the right side of 321. It's really wierd that, even in the firebugs, this td which contains the cursor.gif is already the last element of the tr. So it shoule be in the same line... But it doesn't actually... anyone knows why? it's tested in firefox 3.5.1
[jQuery] Re: select the parent recursively
great, it works. Big thx, dude. On 22 Jan., 12:06, Stephan Veigl wrote: > try: > var input = $("input"); > var parent = input.parents("span[xmlns]"); > > by(e) > Stephan
[jQuery] select the parent recursively
current we have the html like following and I always want get element: started from the element : or so the only fixed element in this html is the input element and input has a far far parent . Now if I want select this , can I use some recursive method like: var $replace=jQuery("input"); while($replace.attr("xmlns")!="asa"){ $replace=$replace.parent(); alert($replace.attr("xmlns")); } apparently this code above doesn't work, but it's my idea. Anyone could help?
[jQuery] how could I select the applet node in jquery
currently I have a node with random names and ids everytime in my velocity page. I wonder if we have some selectors to select this element
[jQuery] JQuery with Flash
I don't know if I could handle flash with Jquery. Currently I have a div embedde with a flv video in my page.I want detect when the current flash is finished playing. To be exact, when the flash is finished playing I want jump back to my index page. I wonder if I could do this?
[jQuery] different views between windows firefox and mac firefox ?
http://skitch.com/dreamramon/p19i/demo4 http://skitch.com/dreamramon/p192/demo4 2 screenshots. My code works nice on mac safari, windows ie and firefox. But for firefox on mac, it gets an error. Check the 1st sceenshot, i think the js get the right responding JSON, how does it reports an error! anyone could help ?
[jQuery] different view under ffox and ie?
http://img3.imagebanana.com/view/neg8qni8/ff3.JPG http://img3.imagebanana.com/view/nio7sjj/ie.JPG the same code, attached in the following. In the HTML, I've defined 2 div: the div view will use ajax() to get the sample data (ex: a;b;c )from server and display it in a table. And after clicked edit , it will add a table into div:edit. But everything's only work in ffox. Anybody know why? var datalist; var i; var editdata; $(document).ready(function() { refresh(); }); function refresh(){ formremove(); formbuild(); }; function formremove(){ $("#list").remove(); }; function formbuild(){ $("#view").append("User Defined Variables"); $.ajax({ url: 'servlet/demo', error: function() { alert('Ajax request failed'); }, success: function(response) { datalist=response.split(';'); for ( i=0;i"+datalist[i]+""); } } }); $("#list").append(""); $("#list").append(""); }; function editForm(){ $("#edit").append(""); $("#userdata").append("ValuesDelete"); for ( i=0;i"); }; $("#userdata").append(""); $("#userdata").append(""); $("#userdata").append(""); }; function editFormclose(){ $("body #userdata").remove(); refresh(); }; function addRow(){ $("#editlist").append(""); }; function deleteRow(elem) { var row = $(elem).parent().parent(); row.fadeOut('normal', function() { row.remove(); }); }; function saveAll(){ editdata=null; var l=$("#editlist").find(":text").length; for (i=0;i