Hi,
I am writing a JSP which hits a database table and draws an HTML table from the data.
When the table contains too many rows (let's say about 200 or greater), the drawing is slow.
In the interests of speeding things up, I am investigating other ways of building the table. For the sake of experimentation, I was thinking of trying some variation on XML and XML Islands.
What I have write now is an IFRAME within a page in which the XML is built via JSP.
In the outer page (parent), I want to gather that XML.
When I use an XML island in the SAME PAGE (i.e., no IFRAME) and source it to a static XML file, I can do a
...to get the island.
Using the IFRAME approach, I was hoping to do something like:
...but this hasn't worked. My xmlObjects array length is 0 after doing this. I have tried other things, but it's just shooting in the dark.
Any ideas on how to grab this dynamically built XML?
I am prepared for this method to NOT be any faster than what I've already tried, but for academic purposes, I figured I'd go through with testing it anyway.
Thanks for your time!
--Dave
I am writing a JSP which hits a database table and draws an HTML table from the data.
When the table contains too many rows (let's say about 200 or greater), the drawing is slow.
In the interests of speeding things up, I am investigating other ways of building the table. For the sake of experimentation, I was thinking of trying some variation on XML and XML Islands.
What I have write now is an IFRAME within a page in which the XML is built via JSP.
In the outer page (parent), I want to gather that XML.
When I use an XML island in the SAME PAGE (i.e., no IFRAME) and source it to a static XML file, I can do a
Code:
var xmlObjects = document.getElementsByTagName("XML");
...to get the island.
Using the IFRAME approach, I was hoping to do something like:
Code:
var xmlObjects = document.frames["xmlFrame"].document.getElementsByTageName("XML");
...but this hasn't worked. My xmlObjects array length is 0 after doing this. I have tried other things, but it's just shooting in the dark.
Any ideas on how to grab this dynamically built XML?
I am prepared for this method to NOT be any faster than what I've already tried, but for academic purposes, I figured I'd go through with testing it anyway.
Thanks for your time!
--Dave