On 1/15/2009 10:36 PM, P T Withington wrote:
Getting closer, but I still have some issues:
1) Is this supposed to work in swf9? Eventually?
2) There is no scope parameter to html/callJavascript
Do you mean you want to be able to define a scope or is it just about
the wrong doc for "callJavascript" which needs to be removed?
(In [1], I proposed to Max that he shouldn't include a scope parameter.)
[1] http://www.openlaszlo.org/pipermail/laszlo-dev/2009-January/019005.html
3) I'm bothered by the use of eval when really we just want to
dereference a path. There is a simple path evaluator in debugger.lzx,
perhaps we should make that more generally available and use it here.
On 2009-01-14, at 23:49EST, Max Carlson wrote:
Change 20090114-maxcarlson-Q by [email protected] on 2009-01-14
20:43:59 PST
in /Users/maxcarlson/openlaszlo/trunk-clean
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: UPDATED: Provide an 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], ptw
QA Reviewer: [email protected]
Doc Reviewer: liorio
Details: html.lzx - Add callJavascript() and documentation for
scrollTo().
iframemanager.js - Add implementation of callJavascript().
test/html.lzx - Add tests for scrollTo() and callJavascript()
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/20090114-maxcarlson-Q.tar