dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: Problem with Dynamic field name. Thanks

  1. #1
    Join Date
    Apr 2003
    Posts
    5

    Problem with Dynamic field name. Thanks

    Hello,

    Here is the problem I am currently having.

    I have a javascrit function that when adding to the shopping it updates a layer in the HTML with a page of the shopping cart. In the querystring is the quantity that needs to be added. The quantity is there from a from field. Please look at the following page to see an example.

    http://207.21.250.51/shop/stores_app...Text=soy+crisp

    The problem is that when adding to the shopping cart, it does not pass the value in the quantity field to the left of it, it is sending undefined instead. The page it is supposed to be updating is to the right of it (where the shopping cart summary is)

    Any help in this matter is greatly appreciated. I have exausted all different variations of the code.

  2. #2
    Join Date
    Jan 2003
    Location
    Texas
    Posts
    10,413
    function addToCart(sfound){
    surl = 'cart_action.asp?add=1&item_id='+sfound+'&qty=' + document.add.sfound.value;
    content.location.replace(surl);
    }

  3. #3
    Join Date
    Apr 2003
    Posts
    5

    Thank for the reply... Doesn't work though

    Hi,

    I was away for a few days and was happy to see that I received a response to my question. I went ahead and tried the code that was given by Dave Clark. To my despair, it did not work. Please look at the page again and let me know what I am doing wrong.

    http://207.21.250.51/shop/stores_app...Text=soy+crisp

    Thank you again for all your help.

  4. #4
    Join Date
    Apr 2003
    Posts
    5
    If you look at the code, I gave the field a name.

    Thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles