+ Reply to Thread
Results 1 to 3 of 3

Automating IE with xmlhttp, name/value pair is unknown array element/checkbox?

  1. #1
    Registered User
    Join Date
    05-16-2012
    Location
    Conifer
    MS-Off Ver
    Excel 2010
    Posts
    1

    Question Automating IE with xmlhttp, name/value pair is unknown array element/checkbox?

    In Excel VBA, I am using xmlhttp to automate Internet Explorer. I am trying to delete an item from the cart. It is the only item in the cart. The name in the name/value pair is an element in an array. I do not know what the index number of this element is. I have looked at the web page source code and I do not see what the number is. Also this is a checkbox, so I'm not sure if I need a different/extra name/value pair. How can I successfully delete the item from the cart with xmlhttp?


    xmlhttp.Open "POST", "http://www.cricutmachine.com/shopping_cart.php?action=update_product", False
    xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
    xmlhttp.send "cart_delete[]=324" '324 is the product number of the item that is in the cart

    Last edited by xlxml; 05-16-2012 at 04:59 PM. Reason: added info

  2. #2
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Automating IE with xmlhttp, name/value pair is unknown array element/checkbox?

    This seems like a really strange request.

    Directly POSTing to a website with the XML object is completely different from automating internet explorer. The two have nothing to do with each other.

    How are you getting the object into the cart? If by automating ie, then you should automate ie to get it out and forget about the XML object.

    Incidentally the product ID is found in the <a> tag of the item in the cart

  3. #3
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Automating IE with xmlhttp, name/value pair is unknown array element/checkbox?

    Also cross posted here: http://stackoverflow.com/questions/1...p-in-excel-vba

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1