Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Alternative to Iframes?

 
Terri Layman
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess you could use something like a Scrollable DIV instead of iFrame. Just throwing this out!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic