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
Shai Ben-YehudaShai Ben-Yehuda 

building rich ajax UI with Visualforce - working with javascrip/xml on the client

I am trying to build a rich ajax client for the account & contact objects.

I would like to use javascript to work directly with the xml represting the account.
I prefer to have minimal metadata noise. Means, get all relevant data in a strcutured xml with minimal code.

Can I use a simple controler to generate xml for my javascript code? should I use the API?
Can I get all the strcuture in one query without specifying the fields?

Can I write back this xml?

thanks,

Shai
Ron HessRon Hess
You could create a webservice using Apex Code , this service would generate the XML/ Soap in the format you require.
then you could create another that accepts the changed XML and writes it back.

however, what you are describing sounds like the AJAX toolkit , this may save you considerable effort if it will work for you.

We've tried to build Visualforce to remove much of this effort and still build rich UI's, so i'm curious, could you describe what UI you are building and why it's easier in JavaScript?

thanks