This is a discussion on Quote's Invoices Lists... within the PHP Language forums, part of the PHP Programming Forums category; Hi, I need someone to bounce some ideas off. This is what I'm trying to do, I want to ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
I need someone to bounce some ideas off. This is what I'm trying to do, I want to be able to create a script that will spit out a quote based on the information filled in. The part I'm stuck on is. Entering all the items in. Ok, say I have a form, it starts off where you put in all the details (eg, who the quote is for address phone no etc.) Then there will be a list of items to go onto the quote. Now this is the part I'm stuck on. I'm thinking maybe something like an add new item button that opens a new window and then you enter in the details for each item. This then adds each item to the quote. Each item that is entered can be added directly to the database. So what I'm thinking maybe is a popup window that you fill in the details for each item, you hit submit, and then it goes back to the origional quote page, but now with the item added to the list. Maybe is there java script where you can open a new window and then refresh the parent window when the child is closed? this would then have the items listed. Any ideas on how to make a list for something like this? The same would apply to people who would make invoices receipts etc. James. |
|
|||
|
James Smith wrote:
> Hi, > > I need someone to bounce some ideas off. > [...] > > James. James, it sounds like what you want is to make multiple updates to the same page without having to reload the whole page each time. While you can do this with a popup window and/or JavaScript, a better alternative would be to set it up with a form that submits to an embedded Iframe. This allows you to pseudo-dynamically update the page and avoids the problems that come along with JavaScript. For the sake of usability, it's best to design under the assumption that JavaScript is not available (unless you're coding for a controlled corporate/intranet environment). C.J. |
|
|||
|
James Smith wrote:
> Hi, > > I need someone to bounce some ideas off. > [...] > > James. James, it sounds like what you want is to make multiple updates to the same page without having to reload the whole page each time. While you can do this with a popup window and/or JavaScript, a better alternative would be to set it up with a form that submits to an embedded Iframe. This allows you to pseudo-dynamically update the page and avoids the problems that come along with JavaScript. For the sake of usability, it's best to design under the assumption that JavaScript is not available (unless you're coding for a controlled corporate/intranet environment). C.J. |
|
|||
|
James Smith wrote:
> Hi, > > I need someone to bounce some ideas off. > [...] > > James. James, it sounds like what you want is to make multiple updates to the same page without having to reload the whole page each time. While you can do this with a popup window and/or JavaScript, a better alternative would be to set it up with a form that submits to an embedded Iframe. This allows you to pseudo-dynamically update the page and avoids the problems that come along with JavaScript. For the sake of usability, it's best to design under the assumption that JavaScript is not available (unless you're coding for a controlled corporate/intranet environment). C.J. |
|
|||
|
James Smith wrote:
> Hi, > > I need someone to bounce some ideas off. > [...] > > James. James, it sounds like what you want is to make multiple updates to the same page without having to reload the whole page each time. While you can do this with a popup window and/or JavaScript, a better alternative would be to set it up with a form that submits to an embedded Iframe. This allows you to pseudo-dynamically update the page and avoids the problems that come along with JavaScript. For the sake of usability, it's best to design under the assumption that JavaScript is not available (unless you're coding for a controlled corporate/intranet environment). C.J. |
|
|||
|
James Smith <jncsmith@optusnet.com.au> wrote in message news:<41196996$0$30421$afc38c87@news.optusnet.com. au>...
> Hi, > > I need someone to bounce some ideas off. > > This is what I'm trying to do, I want to be able to create a script that > will spit out a quote based on the information filled in. > > The part I'm stuck on is. Entering all the items in. > > Ok, say I have a form, it starts off where you put in all the details > (eg, who the quote is for address phone no etc.) > > Then there will be a list of items to go onto the quote. > > Now this is the part I'm stuck on. I'm thinking maybe something like an > add new item button that opens a new window and then you enter in the > details for each item. > This then adds each item to the quote. Each item that is entered can be > added directly to the database. So what I'm thinking maybe is a popup > window that you fill in the details for each item, you hit submit, and > then it goes back to the origional quote page, but now with the item > added to the list. > > Maybe is there java script where you can open a new window and then > refresh the parent window when the child is closed? this would then have > the items listed. > > Any ideas on how to make a list for something like this? The same would > apply to people who would make invoices receipts etc. > > James. this is actually a javascript problem, so i just give you a direction here. as far as i understand you, you want put text in a form from a popup. use "opener" to adress the parent window from the pop-up, so no need to refresh. micha |
|
|||
|
James Smith wrote:
> Now this is the part I'm stuck on. I'm thinking maybe something like an > add new item button that opens a new window and then you enter in the > details for each item. > This then adds each item to the quote. Each item that is entered can be > added directly to the database. So what I'm thinking maybe is a popup > window that you fill in the details for each item, you hit submit, and > then it goes back to the origional quote page, but now with the item > added to the list. > Any ideas on how to make a list for something like this? The same would > apply to people who would make invoices receipts etc. Let the user fill in the information one-by-one, and each time submit the form. You save the results in a session and when the user clicks Finish (instead of Next or something like that), you process the data in the session. -- Pieter Nobels |