diff --git a/_posts/2016-05-24-iframe-api.md b/_posts/2016-05-24-iframe-api.md index 65d4e53..092c5d4 100644 --- a/_posts/2016-05-24-iframe-api.md +++ b/_posts/2016-05-24-iframe-api.md @@ -45,114 +45,136 @@ After the script is executed, a new global `Mergado` variable containing a singl The `Mergado` object has a number of methods which can be used to better your application, improve its usability or overcome any limitations that are the result of strict handling of sandboxed `IFRAME`s by web browsers.
| Method | -Parameters | -Description | -
|---|---|---|
| Method | +Parameters | +Description | +
-
- |
- url: Target URL to start download from |
- A new mini window will be popped up having target URL as its location. The window will be closed - after 10 seconds; until then the target server has time to make a proper response. In this case most - probably in a form of a file download. - | -
| Example | -||
-
- |
- ||
-
- |
- url: Target page URL |
- A new browser window will be opened having the target URL as its location. This window will NOT - automatically close itself. - | -
| - Example: + + | ||
+
+ |
+ url: Target URL to start download from |
+ A new mini window will be popped up having target URL as its location. The window will be closed + after 10 seconds; until then the target server has time to make a proper response. In this case most + probably in a form of a file download. + | +
| Example | +||
+
+ |
+ ||
+
+ |
+
+ url: Target page URL+ target: Open URL in new or same browser window.
+ Possible options are the same as the target attribute for
+ HTML link
+ |
+ A new browser window will be opened having the target URL as its location. This window will NOT + automatically close itself. + | +
| Example: | +||
- |
- ||
-
- |
- topInPixels: Vertical scroll value, relative to app’s
- IFRAME viewport. Must be set in pixels.
- |
- The browser’s absolute vertical scroll will be calculated automatically. Just set this Y value relative to - your page. - | -
- Example:
-
- |
- ||
-
- |
- fullAppRoute: Complete app route e.g.
- eshop/1/project/2/help/ |
- The fullAppRoute parameter is than via JS method
- history.replaceState() apended into mergado URL as
- route query string. And if this URL is then invoked, this part is
- appended after app URL in IFRAME src attribute.
- |
-
|
- Example: -
|
- ||
-
- |
- heightInPixels (optional): Can be set in pixels,
- 0 or undefined |
- DEPRECATED The wrapper page will set height of app’s viewport - IFRAME to this number of pixels. If no height is passed, it will be
- determined automatically.For newly created apps since Mergado redesign in Spring 2018 this is no - longer necessary, as the app’s iframe spans almost entire browser viewport and uses its own scrolling. - |
-
- Example:
-
- |
- ||
+
+ |
+ topInPixels: Vertical scroll value, relative to app’s
+ IFRAME viewport. Must be set in pixels.
+ |
+ The browser’s absolute vertical scroll will be calculated automatically. Just set this Y value relative to + your page. + | +
| Example: | +||
+
+ |
+ ||
+
+ |
+ fullAppRoute: Complete app route e.g.
+ eshop/1/project/2/help/ |
+ The fullAppRoute parameter is than via JS method
+ history.replaceState() apended into mergado URL as
+ route query string. And if this URL is then invoked, this part is
+ appended after app URL in IFRAME src attribute.
+ |
+
| Example: | +||
+
|
+ ||
+
+ |
+ heightInPixels (optional): Can be set in pixels,
+ 0 or undefined |
+ DEPRECATED The wrapper page will set height of app’s viewport + IFRAME to this number of pixels. If no height is passed, it will be
+ determined automatically.For newly created apps since Mergado redesign in Spring 2018 this is no + longer necessary, as the app’s iframe spans almost entire browser viewport and uses its own scrolling. + |
+
| Example: | +||
+
+ |
+