3,407 questions
0
votes
0
answers
55
views
Jquery sortable grid with different height boxes
I want to make a jquery sortable dashboard for my users. The dashboard has blocks with different sizes. However if I move small blocks on the right of a big block, they sort correct, but the other ...
0
votes
1
answer
48
views
Sortable toArray() occasionally creates list with a duplicate at the end
I want to use a form to let users rank a list of items and store the ranking in a form field called ranking. I am using "Sortable" to and "toArray" for this:
<ul id="items&...
1
vote
0
answers
51
views
Get JQuery to give me the elements of an array from a list
I have an unodered list which uses JQuery to reorder the list. Each list item is made up of several parts:-
switch ($categ) {
case 'P':
$p1 = 'C';
$p2 = 'E';
break;
...
1
vote
1
answer
93
views
Detect the table where the sortable item comes from
I have two tables where I can drag and drop items between tables and drag and drop items within the same table. I want to detect the table from which the item is coming.
Receive event only fires when ...
0
votes
1
answer
31
views
How to create a reactive Ranklist that changes with an action button?
I want to create a number of boxes that increases when the user click an action button.
I tried to create a counter, initialized it on 1 and linked it to an action button. When I try to use the ...
0
votes
1
answer
317
views
symfony 6 sortable row with sortable.js
In my view I have
<table class="table table-striped bg-white table-sm">
<thead>
<tr>
<th scope="col">Název</th>
...
0
votes
0
answers
35
views
sending mutiple arrays with ajax and updating SQL from sortable connected lists
I have been struggling with sending 3 arrays to a PHP update script with ajax. The goal is to have three lists on the page (employee, manager, admn) and when the user drags an item from one list to ...
-1
votes
1
answer
68
views
sort list by number of characters in title
This is an exercise from the book "Learn jQuery 3".
I need to change the code so when i click on the title title the books are sorted by number of characters in the title not alphabetically ...
0
votes
2
answers
867
views
Kyslik/column-sortable in laravel 10
I have project in laravel 10 with kyslik/column-sortable.
When I get route:
Route::get("/test", [searchEngineController::class, 'sort']);
and in searchEngineController::sort:
public ...
1
vote
0
answers
677
views
how can i freely sort cards in drag and drop layout - jquery bootstrap - where multiple cards can be placed in one row across multiple columns
i want to have drag and drop sortable layout for my bootstrap cards. i did dowith sortable jquery plugin but it is draging and droping in a row. i want that if i have card 1 that is bigger height col-...
1
vote
1
answer
336
views
how to get position of Draggable element relative to Droppable that isOver? in Sortable too
IMAGE
What I want to achieve:
when draggable element is over a droppable, I want to know how far away my mouse is from center/top border/ bottom border of that droppable. For example:
if proximity of ...
0
votes
0
answers
56
views
Flask, sqlalchemy, jinja2, Jquery: Adding same item to cart displays title only for last item, the rest are blank
I have three tables. User, listitem and Song. User and listitem have Many-to-Many relationship with a table songcart. and listitem has one to many relationship with Song. whenever I add a listitem to ...
1
vote
1
answer
88
views
Cannot add sortable::rank_list() inside of a shinyalert or modal
I am trying to add a rank_list from the sortable library in a Shiny application. This seems to work fine if the input is in the fluid page part of the UI. When I add it to a shinyalert() or a modal, ...
1
vote
1
answer
100
views
Renaming and sorting columns of a dataset using the sortable package in Shiny
I have been following the solution provided in this post to update the names and column order of a dataset in a Shiny app. The original solution used a dummy dataset, but now I want to extend this ...
1
vote
1
answer
200
views
adding custom class by row in RShiny using jQuery
This question is just an extention of this question
The following code consists of two containers or divs or bucket_lists from the sortable R package and each bucket_list consists of two add_rank_list ...
1
vote
0
answers
54
views
Only checked li should move at a time with sortable
I've a list of items and with this I've give checkbox. I've use sortable function of jQuery for drag & drop that item. When I check item only that item should be move at a time how could I do this ...
0
votes
1
answer
135
views
JQuery sortable moving rows having different heights
I got a table with 3 rows on which I enable sorting like this:
$('#table').sortable( {
items: '> tbody > tr',
handle: 'td:not(.no-drag)',
cursor: 'pointer'...
0
votes
1
answer
540
views
ASP.NET Core MVC - VIew is not updated correctly - Ajax?
I have an ASP.NET Core 6 MVC application.
On one page I have a table; I want to support drag'n'drop for its rows. Afterwards the User is able to click on "Submit" and make the changes ...
0
votes
1
answer
92
views
Jquery sortable, connectWith, find receiving container
I am building a sortable where items can be dragged among day containers. The number of days will vary. When an item is dragged from one day to another, I am trying to get the container of the new day....
1
vote
1
answer
203
views
How to avoid a draggable element to be dropped in a certain sortable location in jquery?
I have a page where two drag and drop functionalities are working. Suppose A and B are draggable components and C and D are droppable regions. But I have to restrict A being dropped in location D ...
0
votes
0
answers
72
views
JQuery Droppable in Drop-Function wait until Button is klicked
i use sortable's & Droppables to receive elements from a draggable list. As soon as the update function is executed a modal opens. I want to achieve that the update function is interrupted and ...
0
votes
1
answer
213
views
alert button for drag and drop table rows without saving not appearing
I have a table which I have made sortable(rows can be dragged and dropped using jquery) , I want that if the user drags and drops the rows and forgets to click on update button and tries to navigate ...
1
vote
0
answers
77
views
JQuery UI Sortable - Grab shift when zooming
I was trying to use JQuery UI Sortable plugin for multiple tables. The idea was to grab and drop elements in cells of a table, by connecting all <td> tags with this plugin.
It looks like this: ...
0
votes
1
answer
2k
views
How to Update order in sql of Jquery table after dragging and dropping
I have a jquery table , which I have made sortable( can drag and drop items) using below code.
$("#tblLookup1 tbody").sortable({
items: 'tr',
cursor: 'pointer',
...
1
vote
0
answers
48
views
Links are not working in Sortable container (in Android )
In the image below is my sortable container and individual image can be dragged and dropped to sort. But the action links(icons) in the box are not working on the android browser because of the Js. ...