Hi All.
I'm picking up some old code in version 0.6.1 by the looks.
There is one big multi-tab page that is loaded on startup. On one of these
tabs, is an iFrame that loads a simple PHP file, but qooxdoo is also send a
unique record id when loading.
var corr_iframe = new qx.ui.embed.Iframe('email/email_start_page.php');
corr_iframe.setTop(25);
corr_iframe.setLeft(0);
corr_iframe.setBottom(45);
corr_iframe.setRight(0);
edit_email_iframe = corr_iframe; // Pass the iFrame object to a globally
available variable
var btnEmailRetrieve = new qx.ui.form.Button("Retrieve Email",
"icon/16/reload.png");
btnEmailRetrieve.setBottom(5);
btnEmailRetrieve.setWidth(140);
btnEmailRetrieve.setHorizontalChildrenAlign('left');
btnEmailRetrieve.name = 'emailRetrieve';
btnEmailRetrieve.addEventListener("execute", function(e) {
var corr_booking_number = edit_txt_booking_number.getValue();
corr_iframe.setSource('email/email_parser.php?booking_number='+edit_booking_id);
corr_iframe.reload();
});
The user has the ability to close this multi-tab page and go to a list,
which when a record on the list is clicked, the multi-tab page re-opens with
the relevant information populated for the selection.
The trouble here is that the iFrame source persists from the first record
that was open.
I have tried the following on the close button click:
edit_email_iframe.setSource('email/email_start_page.php');
edit_email_iframe.reload();
But it doesn't work and I get this error in firebug (which I have tried to
find in Google):
this.getIframeNode() is null
http://www.domain.com/qooxdoo/script/qx.js
Line 1
Any ideas? It appears that this multi-tab page is not de-constructed or
anything. Just hidden, cleaned up of the last data, and re-populated as
needed.
Cheers
Aaron
--
View this message in context:
http://www.nabble.com/Trying-to-update-and-reload-an-iFrame-source-on-event-tp22114181p22114181.html
Sent from the qooxdoo-devel mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel