[CB-3744] InAppBrowser docs errors / cleanup
Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/dd291644 Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/dd291644 Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/dd291644 Branch: refs/heads/2.7.x Commit: dd291644ac61906b73c1bf9835264f92b3ac0fd0 Parents: 0dbc647 Author: Shazron Abdullah <[email protected]> Authored: Mon Jun 24 16:03:09 2013 -0700 Committer: Shazron Abdullah <[email protected]> Committed: Mon Jun 24 16:03:09 2013 -0700 ---------------------------------------------------------------------- docs/en/2.7.0/cordova/inappbrowser/inappbrowser.md | 6 +++--- docs/en/edge/cordova/inappbrowser/inappbrowser.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dd291644/docs/en/2.7.0/cordova/inappbrowser/inappbrowser.md ---------------------------------------------------------------------- diff --git a/docs/en/2.7.0/cordova/inappbrowser/inappbrowser.md b/docs/en/2.7.0/cordova/inappbrowser/inappbrowser.md index 8850593..ba955a6 100644 --- a/docs/en/2.7.0/cordova/inappbrowser/inappbrowser.md +++ b/docs/en/2.7.0/cordova/inappbrowser/inappbrowser.md @@ -353,7 +353,7 @@ insertCSS ref.insertCSS(details, callback); - __ref:__ reference to the InAppBrowser window (`InAppBrowser`) -- __injectDetails:__ details of the script ot run (`Object`) +- __injectDetails:__ details of the script to run (`Object`) - Supported keys: (exactly one of "file" or "code" should be present) "file" - URL of the stylesheet to inject @@ -381,7 +381,7 @@ Full Example <!DOCTYPE html> <html> <head> - <title>InAppBrowser.executeScript Example</title> + <title>InAppBrowser.insertCSS Example</title> <script type="text/javascript" charset="utf-8" src="cordova-2.5.0.js"></script> <script type="text/javascript" charset="utf-8"> @@ -396,7 +396,7 @@ Full Example // Inject our custom CSS into the InAppBrowser window // function changeBackgroundColor() { - iabRef.executeScript({ + iabRef.insertCSS({ code: "body { background: #ffff00" }, function() { alert("Styles Altered"); http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dd291644/docs/en/edge/cordova/inappbrowser/inappbrowser.md ---------------------------------------------------------------------- diff --git a/docs/en/edge/cordova/inappbrowser/inappbrowser.md b/docs/en/edge/cordova/inappbrowser/inappbrowser.md index 8850593..ba955a6 100644 --- a/docs/en/edge/cordova/inappbrowser/inappbrowser.md +++ b/docs/en/edge/cordova/inappbrowser/inappbrowser.md @@ -353,7 +353,7 @@ insertCSS ref.insertCSS(details, callback); - __ref:__ reference to the InAppBrowser window (`InAppBrowser`) -- __injectDetails:__ details of the script ot run (`Object`) +- __injectDetails:__ details of the script to run (`Object`) - Supported keys: (exactly one of "file" or "code" should be present) "file" - URL of the stylesheet to inject @@ -381,7 +381,7 @@ Full Example <!DOCTYPE html> <html> <head> - <title>InAppBrowser.executeScript Example</title> + <title>InAppBrowser.insertCSS Example</title> <script type="text/javascript" charset="utf-8" src="cordova-2.5.0.js"></script> <script type="text/javascript" charset="utf-8"> @@ -396,7 +396,7 @@ Full Example // Inject our custom CSS into the InAppBrowser window // function changeBackgroundColor() { - iabRef.executeScript({ + iabRef.insertCSS({ code: "body { background: #ffff00" }, function() { alert("Styles Altered");
