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

Mixing apex and ajax. How to store data , just after a database query?



how to store data , after a database query, for using this data in a Ajax script.


I have a custom object. Called "Calendar".


I need to store, to collect data from this custom object "Calendar", but i don't know how ???


I need to have my data in this 'format' :


{ResourceId: 'LastName FirstName', Type : 'Type_1', Title : 'Type_title', Ip : 'LastName FirstName',  NBapprenants : '10', StartDate : '2011-08-15 09:00:00', EndDate : '2011-08-15 18:00:00'},



I can display this data with a Controller and a Visualforce using apex tags, but i need to store this data for an ajax application.



If somebody would help ?





France (sorry if my english is limited)