View Single Post
Old 12-19-2012, 05:50 PM   PM User | #3
angst
Senior Coder

 
angst's Avatar
 
Join Date: Apr 2004
Location: Toronto, Ontario
Posts: 2,112
Thanks: 15
Thanked 122 Times in 122 Posts
angst is on a distinguished road
this is the drag & drop script;

PHP Code:
        $(function() {
            $( 
".column" ).sortable({
                
connectWith".column"
            
});
     
            $( 
".portlet" ).addClass"ui-widget ui-widget-content ui-helper-clearfix ui-corner-all" )
                .
find".portlet-header" )
                    .
addClass"ui-widget-header ui-corner-all" )
                    .
prepend"<span class='ui-icon ui-icon-minusthick'></span>")
                    .
end()
                .
find".portlet-content" );
     
            $( 
".portlet-header .ui-icon" ).click(function() {
                $( 
this ).toggleClass"ui-icon-minusthick" ).toggleClass"ui-icon-plusthick" );
                $( 
this ).parents".portlet:first" ).find".portlet-content" ).toggle();
            });
     
            $( 
".column" ).disableSelection();
        }); 
and this is what i'm using to check the array;

PHP Code:
echo "<pre>";print_r($SelectedImageArray);echo "</pre>"; exit; 
this is the movable boxes, there would be aleast 3-4 of them;

PHP Code:
<div id='ImageBlock_1' class='ImageBox'>
<
label><input type='checkbox' name='SelectedImage[]' id='SelectedImage' value='http://www.allaxess.com/wp-content/uploads/2011/09/gibson-pic1.jpg' />
Use 
Image<br /><img src='http://www.allaxess.com/wp-content/uploads/2011/09/gibson-pic1.jpg' width='150' id='1' />
</
label
and they are wrapped in a form tag.
angst is offline   Reply With Quote