Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-30-2004, 11:41 PM   PM User | #1
davidklonski
New Coder

 
Join Date: Mar 2004
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
davidklonski is an unknown quantity at this point
Edit page infrustructure - design questions

Hello

I am trying to design an infrustructure that I plan to use in modal dialog windows that will be used as edit pages in my application.
Content is always read-only in a regular window and edited in a modal dialog window (AKA edit window).
I am looking for the right way of implementing the interaction with the server in the edit window.
An edit window is always composed of 3 frames:
* top frame for a header strip
* a middle frame which contains all the components of the edit window (text controls, buttons, etc...), AKA main panel
* a bottom frame for placing action buttons such as: "Cancel", "Save"

When the user clicks on "Save" button, the content of the main panel should be sent to the server where the database will be updated.
However, some of the settings that the user can play with in the main panel may require interaction with the server (for example, the user can upload an image from the local file system. Once the image is loaded, I want it to be displayed in the main panel after being manipulated in the server).

I am looking for a smart way of implementing this.
I thought about adding an additional invisible iframe in the edit window which will be responsible of interacting with the server. Whenever a user adjusts a component in the main panel which requires an interaction with the server, I will perform the interaction via the invisible iframe; sending the necessary data to the server in a form that will be hidden there.
Once data is returned to the iframe from the server, it will communicate with the visible main panel and update its apppearance on the client-side.

Can anyone think of a better solution for the problem.
I am trying to prevent the entire edit window from being redrawn everytime an interaction with the server is needed.

thanks for the help
David
davidklonski is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:25 PM.


Advertisement
Log in to turn off these ads.