JavaScript client-side cart
Project ID: 1228523632
Project Details
  • Status:
    Closed (Cancelled)
  • Posted:
    12/5/2008 at 19:33 EST
  • Cancelled:
    12/28/2008 at 0:36 EST
  • Project Creator:
    (No Feedback Yet)
  • Budget:
    N/A
  • Description:
    Using JavaScript and DHTML languages, built a warehouse web site called MyBusiness. The main page will include all information about the warehouse and all links to various departments, like HR Dept., IT Dept., etc, plus Shopping Cart.

    1. index.htm: This is the main page and user can view and click on all other pages including the Shopping Cart page from the main page . By clicking on the shopping cart page, user can view the images and prices or each product along with two options, one “add to shopping cart” and one to “remove from shopping cart”.
    When user clicks on add or remove link, a window message must be prompt to tell a user that selecting product has been either added or removed.
    2. basket.htm: By clinking on Check out link on Index.htm page will show to user a new page with the products has been selected and the total price. Make sure that use still has the option to add more or to remove the product from this page.
    3. cookie.js: The isCookieEnabled ()function is used to test that the browser and user allow cookies to be stored before attempting to store any further cookies. The isCookiesEnable() function makes use of the navigator object's cookieEnabled property supported in Internet Explorer.

    If the document object supports the all property (in other words, the browser being used is Internet Explorer), then the value of the cookieEnabled property is returned.

    For browsers that don't support the cookieEnabled property, a test cookie is stored and retrieved, and its value is compared with the current time. A new navigator object property (cookeiEnabled) is then generated with the results of this test, along with another property (tested), which is set to true to indicate that this test does not need to be performed again:

    function isCookieEnabled() {
    if (document.all || navigator.tested)
    return navigator.cookieEnabled;
    setCookie('testcookie',today.getTime());
    navigator.tested = true;
    navigator.cookieEnabled = (getCookie('testcookie') = = today.getTime());
    return navigator.cookieEnabled;
    }

    Beside of this function you need to create functions to getCookie (), setCookie () and deleteCookie ().
    4. shopping.js: The shopping.js library uses the cookie.js library to hold all the items in the shopping basket in a cookie. A global expiryDate variable is initialized to 14 days from the current date :

    var today = new Date();
    var expiryDate = new Date(today.getTime() + (2 * Cookie.week));

    a totamt local variable is declared. This is used to hold the total price of all the products currently held in the shopping basket: var totamt;

    A global Boolean basket variable is declared and initialized to false. This is used to indicate whether the shopping.js library is being used to capture of display the shopping basket contents:

    var basket = false;

    To hold the individual items for sale, I create a product object constructor. The product () function accepts six parameters, each of which become a property of the new product object:
    an identification number (pid), a product name, URL of an image (img), the width and height of the image (w and h), and a product price. The constructor initializes an additional quantity property and declares two methods - add () and remove (), which you need to create these two functions beside more functions you thing are needed like, Array object, setAmt (), of individual index, setAmt () of indexes, showmsg(), saveBasket (), getBasket (), etc.
  • Tags:
Project Bids
Programmer Bid Delivery Time Time of Bid Rating  
digitalsoft $130 5 days 12/7/2008 at 14:05 EST 7.60/10
(15 reviews)
Hello sir please check my PM. Thanks Shyam
dragondance $135 2 days 12/7/2008 at 21:55 EST 9.95/10
(156 reviews)
I've done this before.
chell $150 3 days 12/6/2008 at 10:54 EST 10.00/10
(42 reviews)
Here is the JavaScript expert. Please check your PMB for more details. Thanks Chell
aleksandr85 $200 3 days 12/6/2008 at 2:46 EST 10.00/10
(3 reviews)
Hello! Please, review details in PMB. Regards, Aleksandr.
ebottech08 $225 3 days 12/6/2008 at 7:48 EST 10.00/10
(7 reviews)
Hi, We have JS experts who can accomplish it easily. Thanks, Prakash
alpeshpatel $250 5 days 12/6/2008 at 4:17 EST (No Feedback Yet)
i can deliver the best. i bid the best and deliver the best.