Don't forget to check in iframemanager-library.lzs (I made my own so you
don't need to send it to me).
Approved!
On Thu, Aug 19, 2010 at 1:13 PM, Max Carlson wrote:
Change maxcarlson-20100819-xQj by maxcarl...@friendly on 2010-08-19
09:39:53 PDT
in /Users/maxcarlson/openlaszlo/trunk-clean
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Clean up iframe/app communication
Bugs Fixed: LPP-9307
Technical Reviewer: promanik
Details: This is in preparation for adding pmrpc support to the HTML
component.
Tests: rte.lzx - Add this, lzrte.rtemanager -> lz.rte.manager.
rtewrapper - Use a single script include, lzrte.rtemanager ->
lz.rte.manager.
build - Add build target for iframestub, which handles callbacks to
the containing html component. Use rtemanager-library for rtemanager
build.
rtemanager-library - Include iframestub in rtemanager build.
rtemanager.js - lzrte.rtemanager -> lz.rte.manager, lzrte.util ->
lz.rte.util. Use lz.iframeid from iframestub.js instead of tracking
ID explicitly, use lz.sendEvent() to send events to the html
component.
iframemanager - Add getIDFromWindow() API, call from iframestub to get
the iframe component ID.
iframestub - Add top-level lz namespace, store frame id in lz.frameid,
add lz.sendEvent() to send events to the html component controlling
the frame.
RTE, HTML examples all work like before.
Files:
M lps/components/extensions/rte.lzx
M lps/includes/rtewrapper.html
M lps/includes/source/build.xml
A lps/includes/source/rtemanager-library.lzs
M lps/includes/source/rtemanager.js
M lps/includes/source/iframemanager.js
A lps/includes/source/iframestub.js
Changeset:
http://svn.openlaszlo.org/openlaszlo/patches/maxcarlson-20100819-xQj.tar