Connecting Tech Pros Worldwide Help | Site Map

jhardman jhardman is offline

Moderator

Visitor Messages

Showing Visitor Messages 1 to 8 of 8
  1. kirkgilbert
    I understand what you’ve written, for the most part. What I don’t seem to be able to do is this:



    Adding the unique ID and passing that to my JavaScript works



    <input name="REVUNPRCE_<%=FO("ID")%>" type="text" id=<%=FO("ID")%> onChange="docopycat(this.id)" value="<%= FormatNumber((0.00),2,-2,-2,-2)%>" size="4">



    However, what it does is use the instance of REVUNPRCE I am on, which is great, but then uses the first instance of GPRICE2 in the calculation and places the result in the first instance of UNPRCE3. I need it to use the same record I am on and not the first record. I am completely stumped.



    function docopycat(x)

    {

    var y=document.getElementById(x).value

    var x=document.getElementById("GPRICE2_<%=FO("ID")%>") .value



    document.getElementById("UNPRCE3_<%=FO("ID")%>").v alue = x- y



    }

    </script>
  2. kirkgilbert
    I made the changes that you suggested. Without applying the loop the page works similar as before. If I have 2 rows of data and lets say I update the second row it is doing the onchange event of row 1. I am still not sure where to apply the loop.
    ************************************************** ***********************************
    <input name="REVUNPRCE_<%=FO("ID")%>" type="text" id="REVUNPRCE_<%=FO("ID")%>" onChange="docopycat(this.id)" value="<%= FormatNumber((0.00),2,-2,-2,-2)%>" size="4">

    ************************************************** ***********************************
    Would it be right after the code displayed above and if so, everytime I ran the page I received an error. And thank you for you patience in this matter
  3. kirkgilbert
    I understand exactly what you are saying, I am just not sure where to apply what you are saying. As stated earlier I am new to ASP, so I am working my way through different projects trying to get the hang of it. Could you please so me in the code I have provide where to apply the loop
  4. kirkgilbert
    I am new to ASP could you show me what you are referring to when you say to place an (x) in the name and ID of the text field and then in the javascript
  5. colinod
    Hi i hope you dont mind me contacting you direct but i have found a problem with the sql you helped me with its at the the following link
    http://bytes.com/topic/asp-classic/a...872039-asp-sql
  6. colinod
    how can i search that session variable so i can change the picture for the button so if it exists in the session variable the button will be different saying already in shortlist

    would it be

    if instr(session("recordsInCart"), ","&request("recordNum") &",")) > 0 then
    <img src="yellow.gif">
    else
    <img src="red.gif">
    end if
  7. jayawardhana
    I installed VS.NET 2005 on my windowsXp mechine successfully but when i try to installed MICROSOFT SQL SERVER 2005, setup windows saying
    "SQL Server 2005 Setup has detected incompatible components from beta versions of Visual Studio, .NET Framework, or SQL Server 2005. Use Add or Remove Programs to remove these components, and then run SQL Server 2005 Setup again. For detailed instructions on uninstalling SQL Server 2005, see the SQL Server 2005 Readme"

    So i first ran SQL Server 2005 cleanup Wizard to uninstall previous versions and tried to install SQL 2005 again but i got same error .i checked add/remove programm list but i didnt find any components of beta version.Where do these files be stored and hw do i recognize them.
    plz help me.
  8. Soniad
    Hello,

    Any solution for calling stored procedure in ASP page !!
    also, i want to know that, i am passing a parameter which has size 8000 , but in SP syntax there is predefined constant advarhar,adlongvarchar which has size around 200. thats y my calling procedure throws an error. how to deal with this ??

    Regards,
    "D"

About Me

  • About jhardman
    Location
    logan, utah
    Interests
    making ice cream at the local gardener's market, reading sci-fi and graphic novels.
    Occupation
    Business Application Engineer
  • Signature
    Outside of a dog, a book is man's best friend. Inside of a dog it is too dark to read. - Groucho Marx

Statistics

Total Posts
Visitor Messages
General Information
  • Last Activity: 1 Day Ago
  • Join Date: Jan 31 '07

Friends

Showing Friends 1 to 7 of 7