Loading...
Copy code
Close
Permalink
Close
Please tell us why you want to mark the subject as inappropriate.
(Maximum 200 characters)
Report Inappropriate
Cancel
Private Message
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Cancel
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Update
Cancel
Feedback
Email ID
Subject :
Comments :
Send
Cancel
Private Message
Type the characters you see in the picture below.
Type the characters you see in the picture below.
Attach files
Desktop
Zoho Docs
Google Docs
Each Attachment size should not exceed 1MB.
Max no of attachments : 3
Loading User Profile...
guest
Response title
This is preview!
Attachments
Publish
Back to edit
Cancel
(
)
Sign In
New to this Portal? Click here to
Sign up
You can also use the below options to login
Login with Facebook
Login with Google
Login with Yahoo
jQuery
Plugins
UI
Meetups
Forum
Blog
About
Donate
All Forums
Recent Posts
Log In
Search
jQuery
Search
jQuery Forum
Screen name:
smartech.karthik
smartech.karthik's Profile
1
Posts
0
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Ideas
Problems
Expanded view
List view
Private Message
drag and drop works only once with jquery
[0Replies]
21-Dec-2012 09:48 AM
Forum:
Using jQuery UI
I am working on drag and drop in salesforce using jquery.It works only once when i drag and drop, if i try next time it doesn't drag . this is the code , i have worked
$(document).ready(function() {
$(".ui-widget-content").draggable({
revert:'invalid'
});
$(".tabHoldClass").droppable({
drop:function(event,ui){
updateTask(ui.draggable.attr("id") ,$(this).attr("id"));
}
} );
In sales force
public void updateTask() {
string dragId= ApexPages.currentPage().getParameters().get('dragId');
string dropId= ApexPages.currentPage().getParameters().get('dropId');
Project_Task__c projectUpdateTask = [select Name,Deadline__c,Status__c from Project_Task__c where Id=:dragId];
projectUpdateTask.List__c = dropId;
update projectUpdateTask;
holdProject = null;
prioritizeProject = null;
startedProject = null;
finishedProject = null;
}
.
where actually issues occur.
holdProject = null;
prioritizeProject = null;
startedProject = null;
finishedProject = null;
given for null list
list is
list<Project_Task__c> holdProject;
public list<Project_Task__c> getholdProject(){
System.Debug('message');
system.debug('newMessage');
if(holdProject==null){
holdProject=[select Id,Name,Deadline__c,Status__c from Project_Task__c where List__c = 'Holding'];
// holdProject=[select Name,Deadline__c,Status__c from Project_Task__c where List__c = 'Holding'];
}
return holdProject;
}
«Prev
Next »
Moderate user : smartech.karthik
Forum