J.P.A.L.

 

addPage

Page history last edited by Anonymous 2 yrs ago

addPage

 

Encapsulates the API AddPage function, which allows you to create a page and specify its contents.

 

jpal.addPage(page,data,handler,locked,hidden,note)

 

page is the name of the page

data is the text data that will go in the page

handler is the function that will receive the return data

locked is a boolean. True to lock the page. Optional (default is false)

hidden is a bolean. True to hide the page. Optional (default is false)

note is a short text message that you can attach to the page. Optional.

 

The returned object (called by handler) will contain pageURL if successful, error and errCode set otherwise.

 

Example:

 

function checkAddSuccess(result) {
if (result.error && result.errCode)
alert('Error ' + result.errCode + ': ' + result.error);
}
jpal.addPage('MyAlphabet','ABCDEFG',checkAddSuccess);

Comments (0)

You don't have permission to comment on this page.