SafeURL() - Is a Hashtable/Map , for holding to activity and Parameters.
put() - for Inserting the Key and value pairs.
toURL() method is for calling the Ajax request.
Make Sure for the Activity you are calling, In security tab - Allow direct invocation from the client or a service is checked.
var strWorkURL = new SafeURL();
var strOut1 = httpRequestAsynch(strWorkURL.toURL());
Thank for your quick reply, I can do as your guide. I got the problem that how the activity return value to the ajax call. Could you show me the activity GetWorkByID, I would like to know what should be done in the activity to return value back to the AJAX call.