The way i've done it, i have an iframe with 0 width/height, and load a url into it. e.g. iframe1.location='additem.do?code=item1';
Daniel. -----Original Message----- From: Nimmons, Buster [mailto:[EMAIL PROTECTED] Sent: 12 May 2004 14:49 To: 'Struts Users Mailing List' Subject: RE: Design Issue/Question We use this solutions quite a bit... in fact we have the form in a hidden iframe which the user does not see but appears for developers for debbuging purposes.. when the action completes javascript in the iframe page updates a message box on the main page alerting the user to the fact that the selection was saved (or not in case of error) this has worked extremely well for us -----Original Message----- From: Brad Balmer [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 12, 2004 8:47 AM To: Struts Users Mailing List Subject: Re: Design Issue/Question So I would create a frame on my page that has a form with the action that I need to call? Then my javascript (onclick) would just reference the new frame and call the submit on the frame? Is this correct? If so, by submitting the frame there would be no perceived effect on the page that the customer is currently looking at? Thanks. Daniel Perry wrote: >I've done similar things before. >Use javascript to open an action to add it to the database. This can be in >a new window, in another frame, or in a hidden iframe! > > >Daniel. > >-----Original Message----- >From: Brad Balmer [mailto:[EMAIL PROTECTED] >Sent: 12 May 2004 13:46 >To: Struts Users Mailing List >Subject: Design Issue/Question > > >I have an application where a user is adding items for a customer. The >form where the user will be on will have a list of products to choose >from, and can add a product for the customer by clicking on the checkbox. > >The issue I am having is that I need to have the application do an >insert into the database when the user clicks on a checkbox. What I >can't have is for the form to do a submit for each check (because of the >time it would take to re-display the page) and I can't have the user >click on all of their items and do one big submit at the end (requirements). > >Is this even possible within the web and struts framework? (To have >some sort of javascript kick off to tell something to do a database >insert without submitting the form and without the user being redirected >to another page). > >Thanks to anybody who may have any insight into if there is anything I >can do. > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]