[jQuery] Re: appendingTo a just created element

2009-01-31 Thread Nicky
Sorry, to be more specific by 'code' I mean HTML. :) -Nicky On Jan 31, 4:41 pm, Nicky wrote: > Hi All, > > Thanks for the great responses, jsbin is great. I've figured out the > problem and things seem to be working smoothly at the moment. > > If I may, le

[jQuery] Re: appendingTo a just created element

2009-01-31 Thread Nicky
large amounts of code to a page through javascript/jQuery without foregoing the DOM or is this pretty much my best option? Thanks again, Nicky On Jan 31, 1:47 pm, Stephan Veigl wrote: > Hi Nicky, > > where do the variables elm, and serial come from? > > Your posted code snipped looks

[jQuery] Re: appendingTo a just created element

2009-01-31 Thread Nicky
27;+serial) .insertBefore(elm); $('') .appendTo('#ntww-'+serial); Sorry about that and thanks for the reply! -Nicky On Jan 31, 9:28 am, Stephan Veigl wrote: > the selector for an id is #, sou you should use "#someID" instead of > "someID&qu

[jQuery] appendingTo a just created element

2009-01-31 Thread Nicky
Hi All, I'm fairly new to jQuery so I apologize if I'm missing something straightforward but doing this: $('') .attr('id', 'someID') .insertBefore(elm); $('') .appendTo('someID'); Seems to give me errors. If I change "appendTo('someID')" to a different element's ID, it w

[jQuery] how to release the focus point?

2009-01-25 Thread nicky
hi all, I am using jQuery.autocomplete package to write a jsp. When I finished the input box by "autocomplete",The focus point can't be released. Then I can't continue to use another js plugin. my codes r follows: function getTermno(){ var orgId = document.getElementById("org

[jQuery] Re: jquery ui tabs - screen jumps to top when clicked

2008-10-31 Thread Nicky
Thanks Klaus! It didn't fix the problem for me, my example still jumps to the top: http://www.sandstream.se/tabs_test3.html As you say one solution might be to make the tabs the same hight by putting content of the same size in them. If you find another solution please let me know. //Sandstrea

[jQuery] Re: jquery ui tabs - screen jumps to top when clicked

2008-10-30 Thread Nicky
I think I know what's wrong with the Tabs-script, but not where and what needs to be done. The problem seems to be tabs that contains less text and doesn't need the vertical scrollbar. When you have both large and small tabs the error occurs. See this page for more info: http://www.sandstream.se

[jQuery] Re: jquery ui tabs - screen jumps to top when clicked

2008-10-30 Thread Nicky
I have the exact same problem as Ed: When clicking a tab the screen jumps to the top. See this for an example: http://www.sandstream.se/tabs_test2.html Scroll down so the tabs is on top of the screen and click tab "Two". The screen jumps to the top. //Sandstream On 26 Okt, 03:16, Ed <[EMAIL PRO