Online restaurant order scheme

Posted on 2010-04-08
Medium Priority
Last Modified: 2012-05-09
I'd like to implement a restaurant online ordering project as simply as possible. My thought is to have each item on the menu call a jQuery function designed just for that item.  The function will plug the correct name of the item into a new cookie and put up a mini-form that will let the user select dressing, etc.This information will be added to the cookie for this item, along with a text field where the user can enter special instructions. After all the items have been ordered and the user clicks submit, all the cookies are dumped into a large text field of the form and sent to the server.

The server will email the text form data, as is, to a fax service, which will fax it to the restaurant.

The part that I'm concerned with (there may be other parts that I should be concerned about  but don't know it yet)  is the mini-form that each items jQuery function  puts up to get specific information about the item. Can I put up something with check boxes, drop-down menus,  and a text field that the jQuery code can read directly and add to the item's cookie, without going through a whole submit thing to the server?

Thanks for any ideas

Question by:steva
  • 2
  • 2
LVL 15

Expert Comment

ID: 30174774
Yes, you can use simple modal windows to show the users and add them to cookies. Finally send them to the server using a textbox.

Author Comment

ID: 30215729
A "modal" window to me means a window that keeps the focus until it closes.  It seems that  just a popup window would work here.  But I haven't found any code where someone opens a new popup window, populates it with  dropdown menus and check boxes, and uses  the data placed in those inputs in the main window. The popup windows I've seen so far just have some text to explain a field in a form on the main window.

LVL 15

Accepted Solution

StealthyDev earned 2000 total points
ID: 30502539
Sorry, am not clear with your question.

For cookies with JQuery, please try the below link:

If you are concerned with the parent-child window handling, please try the link below:

If this does'nt help you, please explain your question much clearly.

Please Revert.

Author Comment

ID: 30521528
Thanks.  That's what I was looking for.  I gave you the points.

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Suggested Courses

593 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question