-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I have a place in my code where I am dynamically creating and adding
subviews to a view in response to data retrieved from a dataset. The
code looks like this (where stamppot is a custom class that extends View):
<method name="loadSuccess"><![CDATA[
// Test to response code to see if the server indicated success (100)
var node =
stampsRequest.getElementsByTagName("response")[0].getElementsByTagName("code")[0].childNodes[0];
if (node.data == "100") {
var nodes =
stampsRequest.getElementsByTagName("response")[0].getElementsByTagName("stampList")[0].childNodes;
for (n in nodes) {
var bg = new stamppot(this.stampdisplay);
bg.stampid =
nodes[n].getElementsByTagName("id")[0].childNodes[0].data;
bg.stamppath =
nodes[n].getElementsByTagName("dataPath")[0].childNodes[0].data;
bg.stampicon.setAttribute('src',
nodes[n].getElementsByTagName("iconPath")[0].childNodes[0].data);
}
Debug.write('Stamps Loaded successful');
} else {
Debug.write('Stamps load failed');
Debug.write('Response data: ' + stampsRequest.serialize());
}
]]></method>
I need to be able to clear out the stampdisplay view or at least delete
stamppot subviews from stampdisplay. Any help would be appreciated.
Thanks,
- --
Philip A. Chapman
Desktop and Web Application Development:
Java, .NET, PostgreSQL, MySQL, MSSQL
Linux, Windows 2000, Windows XP
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHfTlqAdpynRSGw3URAkU5AKCIpI9Fhp+jzZaY72PD5xc4NlEX+wCfe58x
/sO1AFwe4QPQVb1Hq9uczUM=
=towH
-----END PGP SIGNATURE-----