Section 3.30. We need two request objects


3.30. We need two request objects!

 Time to dig back into your JavaScript again. HTML form JavaScript PHP script 

  1. When Jim places his order and your code sends a reuest to use the first coffee maker...

    ...you should use your first request object... we'll call this request1.

     This request object will only worry about orders made using the first coffee maker. Request Object coffeemaker.php 

  2. When Bob places his order, you need to use the second coffee maker...

    ...and the second request object. Let's call this request object request2.

     This request object takes care of all orders made using the second coffee maker. Request Object coffeemaker.php 

Now you can keep up with both coffee orders.

  1. Jim's order

  2. Bob's order




Head Rush Ajax
Head Rush Ajax (Head First)
ISBN: 0596102259
EAN: 2147483647
Year: 2004
Pages: 241

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net