|
Function Overriding
|
Jun 2 2008, 7:39 PM EDT |
|
edit |
8 words added
4 words deleted
|
Change:
if(if( WPCAPI ) { WPCAPI.processLogin = function() { // Do stuff... }; }2. What is the difference between an overloadable function and an event handler? An event handler is traditionally identified in JavaScript with an oneventname naming convention. It is still
View changes from previous version.
(Word count: 410)
View all updates.
|
|
WPCAPI.onpagerestore
|
Jun 2 2008, 7:35 PM EDT |
|
edit |
2 words added
|
Change:
) {var params ="cellID=" + encodeURIComponent(cellID)+ "&message=" + encodeURIComponent(message);var request = new XMLHttpRequest();request.open( "POST", "/path/to/restorePage" );request.onreadystatechange = function() {if( request.readyState == 4 )WPCAPI.onpagerestore_Callback( request.status == 200 , request.statusText );};request.send(params);return null;};}
View changes from previous version.
(Word count: 123)
View all updates.
|
|
WPCAPI.onpagerename
|
Jun 2 2008, 7:34 PM EDT |
|
edit |
2 words added
|
Change:
params ="cellID=" + encodeURIComponent(cellID)+ "&title=" + encodeURIComponent(title)+ "&message=" + encodeURIComponent(message);var request = new XMLHttpRequest();request.open( "PUT", "/path/to/renamePage" );request.onreadystatechange = function() {if( request.readyState == 4 )WPCAPI.onpagerename_Callback( request.status == 200 , request.statusText );};request.send(params);return null;};}
View changes from previous version.
(Word count: 135)
View all updates.
|
|
WPCAPI.onpagedelete
|
Jun 2 2008, 7:34 PM EDT |
|
edit |
2 words added
|
Change:
{var params ="cellID=" + encodeURIComponent(cellID)+ "&message=" + encodeURIComponent(message);var request = new XMLHttpRequest();request.open( "DELETE", "/path/to/deletePage?" + params );request.onreadystatechange = function() {if( request.readyState == 4 )WPCAPI.onpagedelete_Callback( request.status == 200 , request.statusText );};request.send(null);return null;};}
View changes from previous version.
(Word count: 123)
View all updates.
|
|
WPCAPI.onpagecreate
|
Jun 2 2008, 7:34 PM EDT |
|
edit |
2 words added
|
Change:
encodeURIComponent(title)+ "&tags=" + encodeURIComponent(tags)+ "&cellID=" + encodeURIComponent(cellID)+ "&cellURL=" + encodeURIComponent(cellURL);var request = new XMLHttpRequest();request.open( "POST", "/path/to/addPage" );request.onreadystatechange = function() {if( request.readyState == 4 )WPCAPI.onpagecreate_Callback( request.status == 200 , request.statusText );};request.send(params);return null;};}
View changes from previous version.
(Word count: 161)
View all updates.
|
|
WPCAPI.onpagecreate
|
May 21 2008, 5:22 PM EDT |
|
edit |
2 words deleted
|
Change:
'?'+ "?parentID=" + encodeURIComponent(parentID)+ "&title=" + encodeURIComponent(title)+ "&tags=" + encodeURIComponent(tags)+ "&cellID=" + encodeURIComponent(cellID)+ "&cellURL=" + encodeURIComponent(cellURL);var request = new XMLHttpRequest();request.open( "POST", "/path/to/addPage" );request.onreadystatechange = function() {if( request.readyState == 4 )WPCAPI.onpagecreate_Callback( request.status == 200 );};
View changes from previous version.
(Word count: 159)
View all updates.
|
|
WPCAPI.onpagedelete
|
May 21 2008, 5:21 PM EDT |
|
edit |
|
Change:
There were only format changes (bold, italics, etc.) in this version. See this version for details.
(Word count: 121)
View all updates.
|
|
WPCAPI.onpagecreate
|
May 21 2008, 5:21 PM EDT |
|
edit |
4 words added
2 words deleted
|
Change:
encodeURIComponent(title)+ "&tags=" + encodeURIComponent(tags)+ "&cellID=" + encodeURIComponent(cellID)+ "&cellURL=" + encodeURIComponent(cellURL);var request = new XMLHttpRequest();request.open( "/path/to/addPage""POST", "POST""/path/to/addPage" );request.onreadystatechange = function() {if( request.readyState == 4 )WPCAPI.onpagecreate_Callback( request.status == 200 );};request.send(params);return null;};}
View changes from previous version.
(Word count: 159)
View all updates.
|
|
WPCAPI.generateCellURL
|
May 21 2008, 5:20 PM EDT |
|
edit |
2 words added
2 words deleted
|
Change:
"GET", "/path/to/generateURL/action" + params, "GET", true );request.onreadystatechange = function() {if( request.readyState == 4 ) {var response = request.responseXML; // Format: <cell url="..."/>var url = response ? response.getAttribute("url") : null;WPCAPI.generateCellURL_Callback(url);}};request.send(null);return null;};
View changes from previous version.
(Word count: 174)
View all updates.
|
|
WPCAPI.generateCellID
|
May 21 2008, 5:20 PM EDT |
|
edit |
3 words added
2 words deleted
|
Change:
"GET","/path/to/addPage/action" + params, "GET"params );request.onreadystatechange = function() {if( request.readyState == 4 ) {var response = request.responseXML; // Format: <cell id="..."/>var id = response ? response.getAttribute("id") : null;WPCAPI.generateCellID_Callback(id);}};request.send(null);return null;};}
View changes from previous version.
(Word count: 179)
View all updates.
|
|
WPCAPI.generateTicket
|
May 21 2008, 5:19 PM EDT |
|
edit |
4 words added
2 words deleted
|
Change:
XMLHttpRequest();request.open( "/your/ticket/service""GET", "GET""/your/ticket/service" );request.onreadystatechange = function() {if( request.readyState == 4 ) {var ticket = null;if( request.status == 200 ) ticket = request.responseXML.getElementsByTagName("ticket")[0];WPCAPI.generateTicket_Callback(ticket);}};request.send(null);return null;};}
View changes from previous version.
(Word count: 160)
View all updates.
|
|
WPCAPI.onpagerestore
|
May 21 2008, 5:19 PM EDT |
|
edit |
4 words added
2 words deleted
|
Change:
) {var params ="cellID=" + encodeURIComponent(cellID)+ "&message=" + encodeURIComponent(message);var request = new XMLHttpRequest();request.open( "/path/to/restorePage""POST", "POST""/path/to/restorePage" );request.onreadystatechange = function() {if( request.readyState == 4 )WPCAPI.onpagerestore_Callback( request.status == 200 );};request.send(params);return null;};}
View changes from previous version.
(Word count: 121)
View all updates.
|
|
WPCAPI.onpagerename
|
May 21 2008, 5:18 PM EDT |
|
edit |
4 words added
2 words deleted
|
Change:
params ="cellID=" + encodeURIComponent(cellID)+ "&title=" + encodeURIComponent(title)+ "&message=" + encodeURIComponent(message);var request = new XMLHttpRequest();request.open( "/path/to/renamePage""PUT", "PUT""/path/to/renamePage" );request.onreadystatechange = function() {if( request.readyState == 4 )WPCAPI.onpagerename_Callback( request.status == 200 );};request.send(params);return null;};}
View changes from previous version.
(Word count: 133)
View all updates.
|
|
WPCAPI.onpagedelete
|
May 21 2008, 5:17 PM EDT |
|
edit |
2 words added
2 words deleted
|
Change:
{var params ="cellID=" + encodeURIComponent(cellID)+ "&message=" + encodeURIComponent(message);var request = new XMLHttpRequest();request.open( "DELETE", "/path/to/deletePage?" + params , "DELETE" );request.onreadystatechange = function() {if( request.readyState == 4 )WPCAPI.onpagedelete_Callback( request.status == 200 );};request.send(null);return null;};}
View changes from previous version.
(Word count: 121)
View all updates.
|
|
CellService.getCellWithChildren
|
May 18 2008, 2:25 AM EDT |
|
edit |
1 word added
1 word deleted
|
Change:
cell.template.idcell.templateIdIf specified and the cell has no content, the response will include the content of the specified template.cell.displayNameThe default cell display name to return if the cell specified by cell.cellId does not currently exist. If the cell exists,
View changes from previous version.
(Word count: 203)
View all updates.
|
|
CellService.getCell
|
May 18 2008, 2:25 AM EDT |
|
edit |
1 word added
1 word deleted
|
Change:
cell.template.idcell.templateIdIf specified and the cell has no content, the response will include the content of the specified template.cell.displayNameThe default cell display name to return if the cell specified by cell.cellId does not currently exist. If the cell exists,
View changes from previous version.
(Word count: 196)
View all updates.
|
|
WPCAPI.showAddPageDialog
|
May 8 2008, 12:57 PM EDT |
|
edit |
|
Change:
There were only format changes (bold, italics, etc.) in this version. See this version for details.
(Word count: 172)
View all updates.
|
|
Function Overriding
|
May 6 2008, 2:38 PM EDT |
|
edit |
|
Change:
There were only format changes (bold, italics, etc.) in this version. See this version for details.
(Word count: 410)
View all updates.
|
|
FAQ
|
May 6 2008, 2:35 PM EDT |
|
edit |
16 words added
14 words deleted
|
Change:
Wordpress.How do I change a user's role? For proper security roles (promote, demote, ban)Roles are changed via an API call from your system.system For(actions informationincludepromote, ondemote, roleand ban). pleasePlease see the UserService.login . for information on roles.
View changes from previous version.
(Word count: 189)
View all updates.
|
|
Index
|
May 6 2008, 2:29 PM EDT |
|
edit |
|
Change:
There were only format changes (bold, italics, etc.) in this version. See this version for details.
(Word count: 420)
View all updates.
|