on 04-22-2013 2:57 PM
I'm try to get my first xsjs to work
I have made it very simple.
var md = $.request.parameters.get('CALMONTH');
$.response.setBody("Procedure success! CALMONTH = " + md);
$.response.setContentType("text/html");
$.response.setReturnCode($.net.http.OK);
But when it comes back
So even if i were to return something meaning full i wouldnt be able to use it.
Anybody knows what I might be missing.
Best Regards
Rasmus
That isn't the correct syntax for setting the HTTP status return code. Here is the correct syntax:
$.response.status = $.net.http.OK;
Your content type is also not correct. It should be:
$.response.contentType = 'text/plain';
You seem to be using an old syntax from the unreleased SPS4 version of the XSJS APIs. This was changed before XSJS was released in SPS5.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.