Get saved window position and size
LiveContent S1000D allows a user to save the position and size of his or her client windows. This information is stored in the user's profile and persists between sessions. If this user has selected that this information should be stored, this API grants access to those values.
Example API call
/servlets3/wietmsd?id=1459841714575&book=s1000d_bike_41&collection=default&time=1459841713212&target=main&action=get_position&users=admin
Parameters
| Parameter | Description |
|---|---|
target | main |
action | get_position |
id | A session ID that was retrieved with or without a specific collection and publication combination |
book | The name of the publication, such as s1000d_bike_41. |
collection | The name of the collection that the publication is registered in, such as default. |
time | To prevent browser-side caching of data, especially with AJAX requests, it is important to make a URL unique. The most effective technique to accomplish this is to include a time parameter that is based on the time at which the call is made. |
users | Username of the user whose preferences should be loaded and displayed. |
Returns
- On success
-
<result save_position="1" left_x="784" left_y="12" height="746" width="1116"/> - On failure
-
If a parameter is missing, username is wrong, or other issues persist, the API call always returns:
<result save_position="0" left_x="0" left_y="0" height="0" width="0" />