Pass server side variable back to datatable page
Pass server side variable back to datatable page
lincolncbennett
Posts: 25Questions: 11Answers: 1
in Editor
Hi, I am using postEdit event on serverside url to send a SOAP request to a web service which returns a response.
Response:
$return = simplexml_load_string($response_xml);
After the editor has submitted the data I am wanting to open an alert on the editor page with the response ($return) inside.
I am just wondering what the best way is to do this?
This discussion has been closed.
Answers
You could do it in
postSubmit
, but I'd actually suggest using the browser's "Network" inspector instead. The instructions at this tech note show how you get see the return from the server (even if that specific error message might not apply to you).Allan
Hi Allan, thanks for your reply.
My problem is that I am trying to return the Soap request from the Server side page either to the Network inspector or an alert on the editor page just for testing purposes. Just to clarify I am using 2 pages, an editor page and server side page. My process is as follows;
I open editor and complete fields, then submit editor. On server side page I am using postEdit event to submit Soap request to a web service using the data passed in editor. the web service is then returning the soap response ie. success or error message with extensive detail. I am just wanting to see the response from the web service either in alert or in the Network inspector.
Here is my postEdit code. I am saving a couple of the response elements to a database already but I am just after a way to view entire $response = curl_exec($ch) from the editor page so I can fix any validation errors with the request.
I'm afraid I don't quite understand - the "Network Inspector" in your browser should show the response from the server.
Could you give me a link to your page so I can take a look please?
Thanks,
Allan