function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Greg Palmer 13Greg Palmer 13 

Best practice for Ajax updating of data

Hi All,

I'm totally new to Salesforce so I apologise if this has been asked before.

I'm currently creating a visual force page that will display a list of tasks that one of out teams have outstanding, it works in a very similar way to https://teamweek.com/ - Creating the page is not a problem as I can query the database, obtain the relevant details and build the page. What I would like to happen is if someone drags a task to another date then the task details are updated in the database. Do I need to create another VF page which solely deals with the Ajax requests, or is there a better way of achieving this within salesforce?

Many Thanks

Greg
Shashikant SharmaShashikant Sharma
Hi Greg,

You could try with this simple example for Ajax : http://sfdcsrini.blogspot.in/2014/08/simple-ajax-example-using-visualforce.html

To achieve the functionality you could even try Java Script remoting : https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_js_remoting_example.htm

Thanks
Shashikant