• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Hidden Frames

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to rid my application of all pop up windows and streamline transactions. Is there a recognized pattern or framework for using a hidden frame and recognizing state of the visible frame? I have several functions where I need to do two or three processes in sequence.
 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not sure there's a pattern expressly for this purpose. Obviously, constantly looking up each and everything in the HTML DOM is too awkward for the apparent complexity you're dealing with.

When I recently had an app of similar complexity, I took the MVC pattern to the client side. My form state was pure Javascript, and each object in it had the ability to write itself into the HTML DOM, setting up event handlers as needed. The javascript object graph was model and controller, the HTML DOM was view.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You may want to get rid of the hidden frames and look into the XMLHttpRequest object since it is more reliable in that you know if a request is returned with or without an error. It is harder to do this with frames.

Eric
 
reply
    Bookmark Topic Watch Topic
  • New Topic