Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. mpwright

    Doubling up on inputs

    Right im getting there, ive now sorted out the doubling up on inputs problem by putting the following in viewcart.asp: <input size=2 maxlength=5 name="item<%=counter%>" value="<%=rs("quantity")%>"> </font></div> </td> <td...
  2. mpwright

    Doubling up on inputs

    Well, ive been playing about with the above code but it now just freezes completley whenever I try to update the shopping cart, even if I only have one item in there. Does anyone have any ideas? Cheers Mark
  3. mpwright

    Doubling up on inputs

    Ignore my last post, ive found where I need to put it. But when I try to update the quantities box it freezes the browser and eventually displays: Error Type: Active Server Pages, ASP 0113 (0x80004005) The maximum amount of time for a script to execute was exceeded. You can change this limit by...
  4. mpwright

    Doubling up on inputs

    when i put the above code in I get the following: Error Type: (0x80020009) Exception occurred. /asp/qtyupd.asp, line 25 Im not sure where abouts I need to put your code (the counter = 1 code) is it in the first bit of code I pasted or the second?, does it replace something thats already in...
  5. mpwright

    Doubling up on inputs

    ok, so instead of using: <input size=2 maxlength=5 name="item" value="<%=rs("quantity")%>"> I need to use: <input size=2 maxlength=5 name="item<%=counter%> value="<%=rs("quantity")%>"> Is that right? Also how do I add counting logic into the asp code? Ive never really used asp before but...
  6. mpwright

    Doubling up on inputs

    Hi, Ive just moved into a new job & have been asked to modify a asp shopping cart site. I asked a few questions in the ASP part of this site & got some good advice, but the following post has left me a bit stumped as I only have some very basic html knowledge. Below is what another user has...
  7. mpwright

    Shopping cart problem

    Hi, Thanks for the info, Im not sure where I need to put the code that Drexor said, could someone point me in the right direction please. Regards Mark
  8. mpwright

    Shopping cart problem

    to be honest im not sure why there are 2 inputs with the same name. Im picking this site up from where my (more experienced)predecessor left it so Im fairly new to both HTML, ASP & Java In this thread: http://www.tek-tips.com/viewthread.cfm?qid=931335 I was helped along & managed to get rid of...
  9. mpwright

    Shopping cart problem

    Heres the code I modified, sorry about the questions but im fairly new to asp & learning as I go. <% Response.Cookies("modified") = "true" Response.Expires=0 queries = 0 Set conn = Server.CreateObject("ADODB.Connection") Conn.Open ("driver={Microsoft Access Driver (*.mdb)};DBQ=" &...
  10. mpwright

    Shopping cart problem

    Using the above I get the error: Error Type: Microsoft VBScript runtime (0x800A000D) Type mismatch: 'CLng' /asp/qtyupd.asp, line 18
  11. mpwright

    Shopping cart problem

    Hi, I am making an ASP shopping cart site and Ive used data valadation to check that valid quantities are in an "update quantities" input box. But when I hit the update quantities button I get: Error Type: Microsoft VBScript runtime (0x800A000D) Type mismatch: '[string: "1, 2"]'...
  12. mpwright

    Data Valadation

    Hi, Thanks for your advise, when I change that line I get the error: Error Type: Microsoft VBScript runtime (0x800A000D) Type mismatch: '[string: "1, 2"]' /asp/qtyupd.asp, line 21 Ive pasted the code to the stated file qtyupd.asp incase you can see anything I need to change in there: <%...
  13. mpwright

    Data Valadation

    Hi there, Iv recently started a new job & have been asked to ammened a website the person who used to work here had made. It's a small company site with a shopping cart system. There are a few problems that I need to address but ive know idea how as I only have a basic understanding of HTML &...
  14. mpwright

    Data Valadation

    Using: newquantity = Request.QueryString("item") Response.write(newquantity) I can update the quantity using positive numbers, and I cant update when I put a letter or a minus number in. Which is what I want, the only problem with it now is that if I add more than one item to the cart & try to...
  15. mpwright

    Data Valadation

    Ok, ive nearly got it! It now gives an error when I enter a negative number or a letter in the quantities box, which is correct. But when I put a valid entry in, ie a positive number, it empties the cart. This is the code im using: var justValidating = true function validateForm(f){ var val =...
  16. mpwright

    Data Valadation

    Makes 2 of us mate! Im stumped, thanks for your help though
  17. mpwright

    Data Valadation

    No luck, I tried using a different name but still no joy
  18. mpwright

    Data Valadation

    Dave, So for example, if I swap the word "Item" with "Qty" & replace every example of the word item in my code with the word qty? That should work? I'll give it a try.....
  19. mpwright

    Data Valadation

    using the cint line I get the following when I enter an invalid quantity, ie a letter (a valid works fine, also minus quantities work when they shouldnt?) Error Type: Microsoft VBScript runtime (0x800A000D) Type mismatch: 'cint' /asp/qtyupd.asp, line 18
  20. mpwright

    Data Valadation

    newquantity = Request.QueryString(cstr(rs("item"))) this is the line ive been using in a file called qtyupd.asp, the above line is line 20, the one it's refering to. And this is the validation code that im using: <!-- hide JS code var justValidating = true function validateForm(f){ var val...

Part and Inventory Search

Back
Top