[jQuery] toggleClass with Duration

2009-10-22 Thread TH Lim
Hi, I used toggleClass method to toggle the colors of my message when the user clicks a button. toggleClass() worked well if I didn't specify any duration i.e. instanteous switch from white background to red background. The problem arises when I added a duration of ,say, 2s. If the user clicked

[jQuery] Block Closes Abruptly With animate(...) Function

2009-07-29 Thread TH Lim
Hi, Earlier I found that treepluginview, http://groups.google.com/group/jquery-en/browse_thread/thread/773d6c6307eff840/ec8062b88f745e60?lnk=gstq=treeview+collaspse#ec8062b88f745e60, didn't work well with IE7 or rather IE8 with IE7 mode. I traced it thru and the problem lies with animate(...)

[jQuery] Re: Collapsed tree will flash before collapsing. Anyway to avoid it?

2009-07-29 Thread TH Lim
What I did was hide the menu until the DOM is loaded then show the menu again. On Jul 29, 7:39 pm, Pablo gom...@gmail.com wrote: Hi Guys, I'm using the treeview jQuery plugin (http://bassistance.de/jquery- plugins/jquery-plugin-treeview/) to display the sitemap for a site. My customer

[jQuery] Re: Menu Collapses Instantaneously with Animation

2009-07-28 Thread TH Lim
I found the problem lies with the height. If the height of the div or ul is set to a specific value e.g. 200px. The menu will collapse in animated fashion if it is set to auto. Here is the test code. !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.1//EN http://www.w3.org/ TR/xhtml11/DTD/xhtml11.dtd

[jQuery] [treeview] Menu Collapses Instantaneously with Animation

2009-07-27 Thread TH Lim
Hi, I was trying out http://jquery.bassistance.de/treeview/demo/ Sample 2 with IE 8 in IE 7 mode. The menu animates and opens. When I click to close, the menu collapsed instantaneously. However, it is working perfectly in IE8 mode i.e. the menu animates while closing up. How do I fix this for

[jQuery] [treeview] How To Forget Previous Menu Item Position

2009-06-30 Thread TH Lim
Hi, To make it simple, say I have 2 menu items on each level and there are 3 levels each, A1 +-A2 | +-A3 | +-B1 +-B2 +-B3 where A3 and B3 are href. How treeview behaves now is when you click on item A1 then A2, you will see A1 +-A2 | +-A3 | +-B1 and subsequent clicking B1, A1