Pixelsilk API function to update the content of a webbox
webboxName: the name of the webbox control in the site
value: the actual content to update the webbox with
path: the path to the section (page) relative to the root

setWebboxContent returns a string containing the updated content for the webbox

C# Example:
string content = SetWebboxContent(webboxName, value, path);
Note the capital first letter of the C# method.

HTTP Example:
Request Headers:
POST /api2/setWebboxContent HTTP/1.1
Content-Length: 206
Content-Type: application/x-www-form-urlencoded
Cookie: auth=FA9325C869E1...211AAAD23E69

Request Data:
Unencoded Data:
   "value":"This is the initial content.",

Url-encoded Data:

Response Headers:
HTTP/1.1 200 OK
Set-Cookie: auth=9B821B496D76...1EAD3CF18AD; path=/
Content-Type: text/javascript; charset=UTF-8
Content-Length: 30

Response Data:
"This is the initial content."

JavaScript Example:
Method Call:
pixelsilk2.setWebboxContent(input, callback)

Input Object:
    value:"This is the initial content modified.",

Returned Data:
"This is the initial content modified."

Back to Content »