Current location: Hot Scripts Forums » General Web Coding » JavaScript » Edit page infrustructure - design questions


Edit page infrustructure - design questions

Reply
  #1 (permalink)  
Old 06-30-04, 05:42 PM
davidklonski davidklonski is offline
Newbie Coder
 
Join Date: Apr 2004
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #2 (permalink)  
Old 06-30-04, 05:47 PM
infinitylimit's Avatar
infinitylimit infinitylimit is offline
Code Guru
 
Join Date: Jun 2004
Location: Oregon
Posts: 758
Thanks: 0
Thanked 0 Times in 0 Posts
Sounds like you are on the right track. I might to not use frames and one giant form but if you decide to go the route you are talking about here is a couple good sites regarding what you are going to try which is known as RMI

http://code.jenseng.com/jenChat/
http://developer.apple.com/internet/...pt/iframe.html
http://www.oreillynet.com/pub/a/java...08/iframe.html
__________________
Hawk Enterprises -- Home to PHP games, open-source code, tutorials and free downloads
Reply With Quote
  #3 (permalink)  
Old 06-30-04, 05:54 PM
davidklonski davidklonski is offline
Newbie Coder
 
Join Date: Apr 2004
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
The reason I have started this thread is to hear suggestions from people who might have an excellent idea on how this should be done.

I would love to hear how you would go about doing this.
I am fairly new to DHTML and so I am learning as I go alone.

Also this infrustructure should be strong and flexible enough as it is going to be used in all of the edit pages in the application. So, it is best to do it rigth from the beginning.

thanks
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Classified Ads skipper23 Perl 3 11-22-05 02:22 AM
Paginating problem,extra empty page morrowind PHP 2 05-03-04 03:32 AM
page browsing problem mivec PHP 3 04-17-04 03:43 AM
Classified Ads skipper23 Perl 2 12-30-03 03:43 AM
edit page kelas PHP 3 09-20-03 03:36 AM


All times are GMT -5. The time now is 10:25 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.