'callMethod' seems like the wrong name. Isn't this really calling a Javascript function, and doesn't it more closely parallel lz.Browser.callJS? So maybe it should have the same name? Maybe the name of both of those should be `callJavascript` instead of `callJS`, so they are more obvious?

On 2009-01-09, at 08:54EST, Max Carlson wrote:

Change 20090109-maxcarlson-i by [email protected] on 2009-01-09 04:58:45 PST
   in /Users/maxcarlson/openlaszlo/trunk-clean
   for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Provide a callMethod API on the html component to call JavaScript methods in the iframe

Bugs Fixed: LPP-7595 - Provide a callMethod API on the html component to call JavaScript methods in the iframe

Technical Reviewer: [email protected]
QA Reviewer: [email protected]
Doc Reviewer: liorio

Details: html.lzx - Add callMethod() and document it, and scrollTo().

iframemanager.js - Add implementation of callMethod().

test/html.lzx - Add tests for scrollTo() and callMethod()

test/html-callmethod.lzx - Testcase for html method callbacks

test/html-test.html - HTML page loaded by html.lzx and html- callMethod.lzx


Tests: test-callmethod.lzx runs consistently across all runtimes.

Files:
M      lps/components/extensions/test/html.lzx
A      lps/components/extensions/test/html-test.html
A      lps/components/extensions/test/html-callmethod.lzx
M      lps/components/extensions/html.lzx
M      lps/includes/source/iframemanager.js

Changeset: 
http://svn.openlaszlo.org/openlaszlo/patches/20090109-maxcarlson-i.tar

Reply via email to