Hi I am trying to use a RemoteAction
function from js remoting
.The remote function accepts a custom object,so I need to pass it from javascript.For this I m creating a javascript object with all fields of custom object.
function my_object__c(){
this.id = null;
this.name = null
------------
more fields here
------------
}
The values of id, name and all other fields are binded to vf page's inputFields like this :
<apex:inputfield value="{!myObj.Name}"></apex:inputfield>
is there a easier way to access these values and use them in js object my_object__c
.I can only think of travesering the dom
and get these based on ids.
Second,can the RemoteFunction
accept multiple parameters ?