[jQuery] Toggle Not Working

2009-06-22 Thread Gercek Karakus

Hi everyone,

I am having problems with Toggle. You can see the jQuery and XHTML
code below. Please let me know if you can see what's going wrong here.

Thanks,



$(document).ready(
function()
{
$('a.toggle').click(function()
{

$(this).parents('div.portlet').children('.portlet_content').toggle
(function(){

$(this).parents('div.portlet').children('.portlet_topper').addClass
('active');
}, function () {
$(this).parents('div.portlet').children
('.portlet_topper').removeClass('active');
});
});
});



div class=portlet
div class=portlet_topper
h31. Most Recent Comments/h3
div class=toggle-containera class=toggle/a/div
/div
div class=portlet_content
pLorem ipsum dolor si ipiscing laoreet nibh. In hac
habitasse platea dictumst. Aliquam erat volutpat. Cum sociis natoque
penatibus et magnis dis parturient montes, nascetur ridiculus mus. In
ut justo. Nulla libero./p
/div
/div


[jQuery] Dashboard - Drag Drop Widgets

2009-06-19 Thread Gercek Karakus

Hi everyone,

I am going to be working on a dashboard for an application that
contains 2 columns and several widgets in these columns. (a widget
will be a block element of various width/heights that will contain
text inside)

What I am looking for is something similar to Wordpress 2.8 Dashboard
where you can drag and drop boxes and your preferences are stored so
that you will see your preferred layout any time you come back to the
site.

Before reinventing the wheel, I was just wondering if any one has seen
any
good plug-ins that might help w/my layout dilemma.

Thanks,

Gercek