aspose file tools*
The moose likes Struts and the fly likes Alternative to Iframes? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Alternative to Iframes?" Watch "Alternative to Iframes?" New topic
Author

Alternative to Iframes?

Terri Layman
Greenhorn

Joined: Nov 03, 2008
Posts: 25
I have a production dashboard that tracks, in table format, various production items in the company.

However, since some of the data is unrelated to other parts, (also for modularity) I created each "category" of data in it's own module. Eg; quoted shopping carts are in one /action.do, and the number of units shipped is in another. These are all loaded via IFRAME into a "master" page.

Now we want to change the site and make it more dynamic and user friendly. We're looking at implementing the portal system found in Yahoo's YUI suite (info: http://developer.yahoo.com/yui/3/examples/dd/portal-drag.html). It doesn't seem to like Iframes being loaded into it's modules (drops functionality, and won't populate the module menu if all the items are iframes)

I found an IncludeAction thing, but I don't think that's ultimately going to work for me.

Does anyone else have any idea on what alternates to the Iframe solution currently in place there might be?

Thanks,
-Terri
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

That looks like simple Ajax-oriented stuff; if the contents of the draggable windows are Ajax requests then just use the Struts actions as the request targets and put the resulting HTML into a target div.
Terri Layman
Greenhorn

Joined: Nov 03, 2008
Posts: 25
David Newton wrote:That looks like simple Ajax-oriented stuff; if the contents of the draggable windows are Ajax requests then just use the Struts actions as the request targets and put the resulting HTML into a target div.


I'm not too up on AJAX. So, uh... how would you do that?

Thanks.
-Terri (the clueless, apparently)
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

The short answer is "it depends." The long answer is in any of those books on Ajax...

There are a tremendous number of ways it could be done, if using AJAX ends up meeting your requirements. You could just use the YUI, with Struts actions being the target--I've only used YUI a little bit, so I have no idea how you'd do that. (The demo you linked to probably has source code that could be used as a starting point.) Or you could use any of the other JavaScript libraries (Prototype, jQuery, Ext, yadda yadda yadda) somehow. Or something like AjaxParts (part of Java Web Parts). The solution space is *huge*--it's difficult to give a simple answer.

Roberto Hernandez
Ranch Hand

Joined: Apr 29, 2009
Posts: 33
I guess you could use something like a Scrollable DIV instead of iFrame. Just throwing this out!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Alternative to Iframes?
 
Similar Threads
Problem with Iframes
how to order the load component of page
Sharing authentication between application servers?
onreadystate change not working for iframe
IFRAME -> Whole page