Jquery :: Copy Item In Sortable?

Jul 23, 2009

I have 2 sortable lists, #pieces and #grid. I want to drag items from #pieces and add them to #grid without removing them from #pieces. That way I could add any number of any item in #pieces to #grid. The current code i have is:

<script type="text/javascript">
$(function() {
$("#peices, #grid).sortable({
connectWith: '.column'

[Code]....

View 1 Replies


ADVERTISEMENT

Jquery :: Sortable: Determine The Id Of The Item Replaced By The Dragged Item

May 11, 2010

$(document).ready(function(index){
$(connectSort).each(function(index, obj){
$("." + this).sortable({
connectWith: ".connectedSortable_" + this,

[Code]....

the first function(start: function ..) displays an attribute (title) of the dragged item once the sorting starts. supposedly, the second function (stop: function ..) would display the same attribute but of the item replaced by the dragged item once the sorting stops.

I have tried a lot of things already, but none seems to work.

View 2 Replies View Related

JQuery :: UI Sortable - Limit Drag To Item Header?

Jun 21, 2009

how I can limit the "dragability" of an sortable item, to ex. a element inside the item. Meaning, I only want the item to sort when the header of the item is draged. Is there a simple way to do this, or do I have to modify core code/ create a helper to accomplish this functionallity? Have read the docs, but haven't found anything that mentions this..

View 1 Replies View Related

Jquery :: Sortable Item InnerHTML On Form Submit?

Jul 28, 2009

I have a sortable with has nested content in each sortable item:

<ul id="sortable">
<li id="item_1">item 1<div>content i want to get</div></li>
<li id="item_1">item 2<div>content i want to getss</div></li>
<li id="item_1">item 3<div>content i want to get changed</div></li>
</ul>

I have a submit button which serilizes the sortable so I can save the changes of the order. I also want to save the changes I have made in the div's but that information doesn't seem to get passed, only the
ids of the items. So, the question, how can I get the inner html of the items?

View 1 Replies View Related

Sortable List / Data No Longer Sortable

Jul 9, 2007

My script is the same as this http://www.w3schools.com/php/php_ajax_database.asp

When the data comes back to me its using

document.getElementById("txtHint").innerHTML=xmlHttp.responseText

I get the data back fine. However inside getuser.php my data is in a sortable list. If i use this code above. My data comes back but I can no longer sort my list and move things around (I'm guessing because its returned as HTML only). Can anybody give me a solution of what i need to change so my list is also sortable again?

View 3 Replies View Related

JQuery :: Find Out If Next Item Is Equal To Last Item?

Apr 7, 2010

I have some js code in which a click on a nav arrow causes list to be walked up or down and hilighted. Partial code is below. The problem is that when I get to the end of the list (e.g. there IS no next()), I want to skip this part of the code and actually hide the right arrow. I have no problem with the hiding part - I just want to set a flag when I have traversed the list to the last item.

[Code]...

View 4 Replies View Related

Copy Functionality W/o Using Copy/Paste Buffer

Nov 28, 2006

From any page, I want to be able to call a JS function that will do the
equivelant of select all, and copy. This data will then be posted to a
page that will log it.

This would be easy using copy/paste functionality but I don't want to
screw-up users copy/paste buffer. Anyone have an example of how to
retrieve all text with similar formatting of copying page to notepad
without using copy/paste functionality?

View 2 Replies View Related

JQuery :: How To Use Sortable Tables

Jan 13, 2011

i am new to Html and i am helping run a website for virtual golf. we were thinking of adding a Statistics page but would need the table used to be sortable so by hitting the header the column sorts the figures in order, the tablw would only be 50 rows and 8 columns. i have looked at the website [URL]../docs/but cant seem to sort out where to place things. a step by step guide would very much be appriciated.

View 6 Replies View Related

JQuery :: Sortable Not Working In IE9?

Oct 21, 2011

Anyone had any luck getting sortable working correctly in IE9?

[URL]

I don't see anything in the bug tracker regarding this, anyone else experience this? Anyone have 5 seconds to fire up IE9 and try the above demo?

View 5 Replies View Related

JQuery :: Adding A Draggable To A Sortable

Mar 3, 2011

How to add a draggable to sortable programatically ?

<script>
$(function() {
$( "#sortable" ).sortable({
revert: true
});
});
[Code]....

In the above code i have a list of sortables, i want to add the draggable($obj) to a sortable, even though i add to the sortable in the add method, that gets added but does not play as a draggable,Do i need to call any method of sortable after adding the draggable ?

View 3 Replies View Related

JQuery :: UI Sortable Based On DIVs?

Aug 3, 2009

have such a structure in HTML which finally looks like shown on this

[Code]...

View 5 Replies View Related

JQuery :: Sortable Accordion-like Widget?

May 14, 2009

its an accordion like tool. It functions just how Ineed it, except id love to make it sortable.with the codeupdate?jQuery :

$(function() {
$("#accordion1").addClass("ui-accordion ui-widget ui-helper-reset")
.find("h3")

[code]....

View 1 Replies View Related

JQuery :: Get The Element That Received The Sortable?

Oct 19, 2009

I'm implementing a drag and drop newsletter, where my users can drag content to different areas of a template. Depending on where they drop the content, I need to add different HTML attributes to some of the code (essentially need to make the images float:left if they're dropped into a certain box). I've achieved a basic version of this using this code:

$('.review_list').sortable({
receive: function(event, ui) {
// somehow need to make this only apply to competition/
mainfeature

[Code].....

This adds align="left" vspace="4" hspace="4" onto any image dropped into an element with the 'review_list' class (I know I said it was float:left but this code will be emailed so I have to do it old school style...). Anyway: is there a way that I can get the element that has received the sortable item? It could be one of three in my case, and I only want this code to be added for two of them. I guess I could run a cleanup function when submitting that removed this addition for images in the other element, but this seems messier - I had assumed that the 'receive' event would return the receiving element.

View 1 Replies View Related

JQuery :: Sortable Inside An Accordion?

Sep 15, 2009

I'm trying to place a sortable list inside an accordion and it isn'tworkig. The list appears outside, below the accordion.

View 2 Replies View Related

JQuery :: Load A File And Use Sortable?

Apr 29, 2010

I'm working on a project and got stuck on this tiny script

I load some data from a file and I put in one div:

function getloadedfile (fileurl){
$.ajax({
url : fileurl,
dataType: "html",

[Code].....

The sortable only works then I don't load it as aseparatefile

View 4 Replies View Related

JQuery :: Applying Sortable To Images?

Nov 10, 2011

I've take the standard Demo code from 'm trying to make the images within the Trash container sortable.Despite attempts for the last couple if hours and a number of different combination, I'm still unable to get it working

View 2 Replies View Related

JQuery :: Sortable Get Its Embedded Fired Again?

May 11, 2010

<ul
id
=

[code]...

View 4 Replies View Related

JQuery :: Use Sortable For Multiple Columns?

Aug 9, 2010

In my design for admin panel, i wanna drag and drop modules. i have a php array with module names, and i need to save them sql like this[code]...

i can list right and left, but when i drag and drop something from one to another, it's not working.

is there any way to do that in jquery? can i get the information about where is the < li > ? how or where can i get the "where" columun?

View 2 Replies View Related

JQuery :: Click To Know The Position In Sortable List?

Feb 17, 2011

i have the following code to get the change of position, I dont know how to make the list tell me the position of aspecific elementwhen i click it.

[Code]...

View 2 Replies View Related

JQuery :: Display Sortable List With New Order?

Jul 3, 2009

i am trying to use jquery UI sortable on my webpage to displaytoolbars. what i want is, let people sort these toolbars in the waythey like. i have named toolbars with id "1","2","3","4", and i savedsorted order to database via toArray method. i was wondering how icould display these toolbars with new order when people browser mysite next time, is there any method that supports it?

View 4 Replies View Related

JQuery :: Make Sortable List Draggable?

Nov 2, 2010

I'm new to this jquery and still learning, i having a question on how to make sortable list draggable? For e.g drag a list from sortable list to droppable zone and drop it, after drag or drop the list will back to sortable list.

View 2 Replies View Related

JQuery :: Handle Sortable To Get And Post Indexes?

Oct 1, 2011

I have this sort of image gallery where you can drag and drop images around. CLients should be able to do this in order to determine the order in which images are shown on their website. All images have a unique id and a order number. It is my first time I use jquery, the sortable part was easy to find out but then what happens? I have to find out how to get the 'new order' and how to store it in database. I am using ColdFusion. My idea, either I store the new order each time one moves an image around either I let them move like they want to and ask them to click a button to confirm. The structure of the document is a <ul id=sortable> then each image is <li>.

View 1 Replies View Related

Jquery :: Sortable List Shows Empty

Oct 8, 2011

I am using jquery ui to have two connected sortable lists. The first list is available numbers, and the second is selected numbers. Everything with the jquery is working fine. The problem i am having is when i try to get the contents of the selected numbers box, it is empty, even though the sortables are or were dragged to that list. I tried using this.

var response = $("#selected_numbers_box").val();
alert( response );
and I also tried this..
var response = $("#selected_numbers_box").html();
alert( response );

both are empty. What i am trying to do is retrieve the values of the new list "Selected numbers Box".

View 3 Replies View Related

JQuery :: Adding Objects To UI Sortable List?

Feb 25, 2011

I hava sortable list using jQuery UI Sortable. When the items are re-ordered the new order is written to the database. All working fine � however, if I use jquery to add a new item ....

[Code]..

View 4 Replies View Related

JQuery :: Sortable Table And Class Applying?

Nov 23, 2010

I have a jquery function for loading links from my navigation on the left to the content div on the right. I also have a function for applying a class called active to that anchor link's list item parent. I later found that going through other included files in the template that there was already a function for adding that class in one of the included files (js/titanium.js) however when I take off my add class function it doesn't apply it. I thought the function from the titanium.js file would apply it but it doesn't. I have all the included javascript files included in the head of my page but for some reason it's still not using what's inside them I guess.

Another issue is that in the template file there is a jquery sortable function for any table, also included in another javascript file, and I'm not sure why its not working with my tables to make them sortable? [URL]

View 1 Replies View Related

JQuery :: Drag And Drop Between Multiple Lists And Sortable

May 27, 2009

Any plugin/website that is jQuery, which will do what this Dojo example does, i.e: [URL]. I am wanting something similar to this as I would like to use as a means of allowing a user to administer a menu structure.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved