Link to home
Start Free TrialLog in
Avatar of johnecollins
johnecollinsFlag for United Kingdom of Great Britain and Northern Ireland

asked on

What tools do I need to be able to create tabbed web pages that allow db forms to create entries concurrently

I would like to create a web page that has tabs that allow concurrent connections to a database such that I can, have tab 1 is say for creating purchase orders and tab 2 is for creating products.

When creating an order I discover that the thing I would like to order does not exist in my product list. So I would like to switch to tab 2 create the missing item switch back to tab 1 and continue with the order adding the new product.

I could achieve this by opening the web app twice and using windows to swap between the two apps.

I am using HTML, PHP and MySql, I would like to know if I have everyting I need or if I need to get something else javascript, CSS or whatever.

Thank you very much for having the fortitude to read all this and I will be extremely grateful for your help

Cheers

John
Avatar of maha1984
maha1984

You can use the tool Iron Speed Designer to quickly design Add, edit , Delete and report data straight from Database
www.ironspeed.com
For the tabs, I would look at the JQuery UI for tabs.  Very easy to implement.
http://jqueryui.com/demos/tabs/


Then use AJAX to add the product on tab 2 and simultaneously update tab 1.  
You have "everything" in the native functionality of PHP + MySQL.  PHP is used to generate HTML, JavaScript and CSS, or to call these things from other libraries.

What you describe is easily achievable with simple if / else logic.  Concurrent connections to the data base are irrelevant.  HTTP requests typically complete in sub-second time and the data base connections do not need to persist across requests.

Just curious... How would the process of creating an order work?  Example of what I am asking about.  Let's say I go to Amazon.com and try to order the book named "Plud and Gort at Play."  This book does not exist, so Amazon would tell me.  And if I wanted to sell the book, the process of getting it into the data base for sale is entirely different from the process of buying it (not to mention the business practices that underpin the computer processes).  I am confused by the idea of switching from tab 2 back to tab 1.

Am I helping here?  If not please clarify a little bit, thanks. ~Ray
Avatar of johnecollins

ASKER

Hi Ray,

How are you?

I am writing an app for a service organisation, that deals with IT equipment so we have a pro0duct list of PCs, servers, printers etc.

We create a sales order for products from the list and it may be that we don't have a particular piece of equipment in the list.

Rather than coming out of the order line page, I would like to switch to another page enter the missing product and continue where I left off in the order line page.

I hope that explains it

Ask away if not

Cheers

John
Hi, John.  Usually equipment that is inventoried is tracked by some kind of code (in cars, this is the Vehicle Identification Number or VIN).  When you're dealing with outside equipment, not in your inventory, it's a bit harder to track the products exactly.  Specifics and details about configurable products like PCs are important (example: USB-1 vs USB-2) so there are usually "feature tables" that accompany the item numbers.

Here is a design thing you might want to consider.  It's just the "way it works" so plan for it in the design phase.

When your client machine requests the order page, the server will produce the response and send it.  That is the end of the process; the page is complete.  Now let's say your client switches to the product page and adds a product.  The data base gets updated, but the order page is unchanged because the client has not requested a new page from the server.  So when the client switches back to the order page, it will be necessary to refresh the view to see the data base change.

Browsers facilitate this functionality with "Open in new Tab/Window"
ASKER CERTIFIED SOLUTION
Avatar of carsRST
carsRST
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Cheers thanks both of you