|
Client Application
|
May 16 2008, 9:50 PM EDT |
|
edit |
71 words added
38 words deleted
|
Change:
Embedding JavaScript event handlers in HTML elements is a very common practice; for example you embedmight specify an eventonClick listenerhandler directlyon inan HTML,"Add somea specialPage" encodingbutton. measuresStandard mustprocedure beis to render the taken.decimal Anyreferences argumentsof
View changes from previous version.
(Word count: 264)
View all updates.
|
|
Single Quotes, JavaScript, and Event Handlers
|
May 16 2008, 9:36 PM EDT |
Rename |
rename |
No content added or deleted. |
Change:
Renamed from JavaScript in Event Handlers by May 16 2008, 9:36 PM EDT for: Rename
View all updates.
|
|
Single Quotes, JavaScript, and Event Handlers
|
May 16 2008, 9:35 PM EDT |
|
edit |
242 words added
127 words deleted
|
Change:
Render a single quote hex reference. URL encoding will convert single quotes to hex references, but an additional JavaScript call will be necessary to decode the string before passing it to the listener.<a href="#addPage" onclick=" WPCAPI.showAddPageDialog( decodeURIComponent(decodeURIComponent('foo'bob'%27sPage')sbar'), decodeURIComponent('The OfficialdecodeURIComponent('Bob
View changes from previous version.
(Word count: 266)
View all updates.
|
|
Single Quotes, JavaScript, and Event Handlers
|
May 16 2008, 8:41 PM EDT |
|
edit |
2 words added
|
Change:
errors in Internet Explorer 6 and 7 as that code is interpreted. Unfortunately this is a problem common across all web user interface development.The solution is to render any arguments at risk for having single quotes
View changes from previous version.
(Word count: 164)
View all updates.
|
|
Single Quotes, JavaScript, and Event Handlers
|
May 16 2008, 8:22 PM EDT |
|
edit |
21 words added
35 words deleted
|
Change:
Incorrect correctrendered usage:code:// $cellId is "thisIs'AQuote",ForSure"//$displayName is "this is 'a quote', for sure"$result .= '<a<a href="#addPage" onclick="WPCAPI.showAddPageDialog( decodeURIComponent('foo'sbar')decodeURIComponent(\'' . urlencode($cellId) ., '\'),decodeURIComponent('The decodeURIComponent(\'' . urlencode($displayName) .Official '\')Foo);'">';s Bar Page'));">Incorrect usage:
View changes from previous version.
(Word count: 162)
View all updates.
|
|
Single Quotes, JavaScript, and Event Handlers
|
May 16 2008, 8:20 PM EDT |
|
edit |
34 words added
|
Change:
Render an "Add Page" link for a cell with the following attributes:cellId: foo'sbarcellDisplayName: The Official Foo's Bar PageCorrect rendered code:<a href="#addPage" onclick="WPCAPI.showAddPageDialog(decodeURIComponent('foo%27sbar'), decodeURIComponent('The%20Official%20Foo%27s%20Bar%20Page'));">Example correct usage:// $cellId is "thisIs'AQuote",ForSure"//$displayName is "this is 'a quote', for sure"$result .=
View changes from previous version.
(Word count: 170)
View all updates.
|
|
Single Quotes, JavaScript, and Event Handlers
|
May 16 2008, 7:57 PM EDT |
|
edit |
133 words added
|
Change:
The solution is to render any arguments at risk for having single quotes as URL encoded. Then, to avoid encoding mismatches with Wetpaint's JavaScript application, wrap the encoded string in JavaScript's decodeURIComponent method so it will be unencoded when passed to the listener.Example correct usage:// $cellId is "thisIs'AQuote",ForSure"
View changes from previous version.
(Word count: 127)
View all updates.
|
|
Function Overriding
|
May 16 2008, 7:32 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.
|
|
Client Application
|
May 16 2008, 7:29 PM EDT |
|
edit |
2 words added
1 word deleted
|
Change:
Event HandlersWhen you embed an event listener directly in HTML, some special encoding measures must be taken. Any arguments passed to the JavaScript listener must be first URL encoded during page compilation, then URL decoded by JavaScript at runtime. Learn more about JavaScript in Event Handlers.Handlers.
View changes from previous version.
(Word count: 230)
View all updates.
|
|
Single Quotes, JavaScript, and Event Handlers
|
May 16 2008, 7:29 PM EDT |
|
create |
No content added or deleted. |
Change:
Created by May 16 2008, 7:29 PM EDT for: no reason given
View all updates.
|
|
Client Application
|
May 16 2008, 7:28 PM EDT |
|
edit |
50 words added
|
Change:
Embedding JavaScript in Event HandlersWhen you embed an event listener directly in HTML, some special encoding measures must be taken. Any arguments passed to the JavaScript listener must be first URL encoded during page compilation, then URL decoded by JavaScript at runtime. Learn more about JavaScript in Event Handlers.
View changes from previous version.
(Word count: 230)
View all updates.
|
|
CellService.getNavigation
|
Apr 25 2008, 8:44 PM EDT |
|
edit |
1 word added
|
Change:
nested HTML unordered lists (UL's), but the HTML is probably NOT suitable for a server-side include. The preferred way to use this request is to specify output=api on the query string. The api output format returns an xml
View changes from previous version.
(Word count: 288)
View all updates.
|
|
Interface Customization
|
Apr 25 2008, 1:00 PM EDT |
|
edit |
|
Change:
There were only format changes (bold, italics, etc.) in this version. See this version for details.
(Word count: 2186)
View all updates.
|
|
Step 2: Request Client Application
|
Apr 25 2008, 12:57 PM EDT |
|
edit |
2 words deleted
|
Change:
//<![CDATA[ if( window.WPCAPI ) { WPCAPI.setLoginTicket("{UserTicket}"); // Only required if the user is logged in WPCAPI.setDeveloperKey("{DeveloperKey}"); WPCAPI.setNamespace("{ContentNamespace}"); } //]]> </script>This is a partial list of site properties; learn about all of the site
View changes from previous version.
(Word count: 164)
View all updates.
|
|
Integration Guide
|
Apr 25 2008, 12:56 PM EDT |
|
edit |
|
Change:
There were only format changes (bold, italics, etc.) in this version. See this version for details.
(Word count: 268)
View all updates.
|
|
Interface Customization
|
Apr 14 2008, 9:08 PM EDT |
|
edit |
1 word added
1 word deleted
|
Change:
"ten"),"fifteen"), the application defaults to 10px.WPCAPI.setFontSize("15px");WPCAPI.setFontSize(20);Available MethodsBasic component appearanceget/setBackgroundColorget/setBorderColorget/setTitleBarFontColorget/setTitleBarFontFamilyget/setTitleBarFontSizeBasic contentget/setFontColor get/setFontFamily get/setFontSizeButtonsget/setButtonBackgroundColorget/setButtonBorderColor get/setButtonFontColorget/setButtonFontFamilyget/setButtonFontSizeget/setCancelButtonBackgroundColorget/setCancelButtonBorderColor get/setCancelButtonFontColorget/setCancelButtonFontFamily get/setCancelButtonFontSize get/setSubmitButtonBackgroundColorget/setSubmitButtonBorderColor get/setSubmitButtonFontColorget/setSubmitButtonFontFamily get/setSubmitButtonFontSizeLinksget/setActiveLinkColorget/setHoverLinkColor get/setLinkColorget/setVisitedFamily getBackgroundColor() Retrieves any
View changes from previous version.
(Word count: 2153)
View all updates.
|
|
Interface Customization
|
Apr 14 2008, 9:08 PM EDT |
|
edit |
4 words added
2 words deleted
|
Change:
in (e.g. "ten"), the application defaults to 10px.WPCAPI.setFontSize("15px");WPCAPI.setFontSize(20);Available MethodsBasic component appearanceget/setBackgroundColorget/setBorderColorget/setTitleBarFontColorget/setTitleBarFontFamilyget/setTitleBarFontSizeBasic contentget/setFontColor get/setFontFamily get/setFontSizeButtonsget/setButtonBackgroundColorget/setButtonBorderColor get/setButtonFontColorget/setButtonFontFamilyget/setButtonFontSizeget/setCancelButtonBackgroundColorget/setCancelButtonBorderColor get/setCancelButtonFontColorget/setCancelButtonFontFamily get/setCancelButtonFontSize get/setSubmitButtonBackgroundColorget/setSubmitButtonBorderColor get/setSubmitButtonFontColorget/setSubmitButtonFontFamily get/setSubmitButtonFontSizeLinksget/setActiveLinkColorget/setHoverLinkColor get/setLinkColorget/setVisitedFamily getBackgroundColor() Retrieves any
View changes from previous version.
(Word count: 2153)
View all updates.
|
|
Interface Customization
|
Apr 14 2008, 9:00 PM EDT |
|
edit |
5 words added
|
Change:
rgb(255, 255, 255)");WPCAPI.setBorderColor("#003366"); WPCAPI.setSubmitButtonColor("#FFF");Font family valuesCan include both specific and generic font families.WPCAPI.setFontFamily("Serif");WPCAPI.setFontFamily("New Century Schoolbook");Size valuesCan be a pixel size between 10px and 30px. Sizes outside that range will
View changes from previous version.
(Word count: 2150)
View all updates.
|
|
Interface Customization
|
Apr 14 2008, 8:58 PM EDT |
|
edit |
12 words added
|
Change:
If an invalid size is passed in, the application defaults to 10px.WPCAPI.setFontSize("15px");WPCAPI.setFontSize(20);Available MethodsBasic component appearanceget/setBackgroundColorget/setBorderColorget/setTitleBarFontColorget/setTitleBarFontFamilyget/setTitleBarFontSizeBasic contentget/setFontColor get/setFontFamily get/setFontSizeButtonsget/setButtonBackgroundColorget/setButtonBorderColor get/setButtonFontColorget/setButtonFontFamilyget/setButtonFontSizeget/setCancelButtonBackgroundColorget/setCancelButtonBorderColor get/setCancelButtonFontColorget/setCancelButtonFontFamily get/setCancelButtonFontSize get/setSubmitButtonBackgroundColorget/setSubmitButtonBorderColor get/setSubmitButtonFontColorget/setSubmitButtonFontFamily get/setSubmitButtonFontSizeLinksget/setActiveLinkColorget/setHoverLinkColor get/setLinkColorget/setVisitedFamily
View changes from previous version.
(Word count: 2141)
View all updates.
|
|
Site Properties
|
Apr 14 2008, 8:46 PM EDT |
|
edit |
1 word added
4 words deleted
|
Change:
ticket.ticket setLoginTicket() Sets the login ticket in the client application. Parameters ticket String User authentication ticket. ReturnsvoidgetDeveloperKey() Retrieves the current developer key from the client application. Parameters None Returns String Developer key.setDeveloperKey() Sets the developer key in the client application. Parameters developerKey String Developer key. Returns
View changes from previous version.
(Word count: 107)
View all updates.
|