had a bit more research on weekend and got the solution. For request REST service better use esri.request (esri namespace method).For example of the submit a form request, ESRI has provide some code examples here:http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/namespace_esri.htmhttp://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp_start.htm#jshelp/inside_esri_request....