| This section of the SlidingMenu Corner will focus
primarily on helping you putting the new Client API into action. Also the examples in this
section is not about eye candy, but about understanding, if you want eye candy,
go to the example section. In fact the examples provided here are as clean as possible, each example illustrating points of a narrow scope. | |
|
| The Client Script emitted by the SlidingMenu can basically be
divided in SlidingMenu Client Core and SlidingMenu Client
API, the Client API added to the SlidingMenu at version 2.0. Then
manipulating the SlidingMenu client side, it is wise to do so through
the Client API for 2 reasons: 1) I try to secure backward compatibility with respect to the Client API only and 2) the Client Core is not identically in different browsers potentially raising errors in SlidingMenu downlevel browsers (see note). |
|
Remember then developing with the Client API to make SlidingMenu emit Client API in development mode. One way to do that is in the FIRST SlidingMenu on your page to write: <SlidingMenuStyle ClientAPIInclude="ExpandedWithDevelopmentInfo" ... /> |
|
| For a more rigorous reference of the Client API objects, see the Client API Documentation. |
|
Then you see the clipboard image, you can download ALL relevant code, typically divided in XML/HTML and JavaScript. If you don't care to read the examples but are more into "give me the code", just download it by clicking the clipboard button (you will see a small browser window open and then the code is in your clipboard the browser window will alert you and close by itself). |
|
| Note: the Client API apply to
SlidingMenu uplevel browsers only, which at current is IE5+, however all the
code are downlevel safe, meaning that the code will not prevent downlevel browsers in displaying information then programming against the Client API. |