Changing Icon on Input

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Changing Icon on Input

    Hi,
    What I would like to do is when a user enters new information to a
    table in a database by submitting a form, the icon that was used to
    open up the page to let them provide that input should be temporarily
    changed. I have everything set up except how to change the icon. I
    really don't have any ideas on how this is done so if anyone can start
    me in the right direction I'd appreciate it. If anyone knows a web
    site with this kind of information that would be a big help too.
    Thanks a lot!
    RENIE 83
    Renie83 Guest

  2. Similar Questions and Discussions

    1. Changing pdf file icon to Adobe icon
      I was wondering if you could help me change my icons to Adobe! My platform is Windows NT 4.0 Server. I had Adobe Reader v5, and then I installed...
    2. Changing icon in windowed mode
      When creating a windowed projector, I get a "Director" logo next to the projector title in the title bar for my windows projector. Is there a way...
    3. Changing the Magnetic Lasso tool icon
      I seem to remember that you can change the icon for the Magnetic Lasso tool from that ungainly hanger-like form with a magnet hanging off it, to a...
    4. Changing the icon on MX projector
      Can anyone give me any advice on this? I use Microangelo, but i've just used it with an mx projector for the first time and everytime i update the...
    5. Changing projector icon
      Hi I've made a CD with Dir 8.5 on Win 2000. All seemed to work fine. But.. When I've changed the projec23.skl icon to insert my app icon, the...
  3. #2

    Default Re: Changing Icon on Input

    What icon are you talking about?

    Ray at work

    "Renie83" <renie83@lycos.com> wrote in message
    news:8e153bdf.0307220805.6f7e3694@posting.google.c om...
    > Hi,
    > What I would like to do is when a user enters new information to a
    > table in a database by submitting a form, the icon that was used to
    > open up the page to let them provide that input should be temporarily
    > changed. I have everything set up except how to change the icon. I
    > really don't have any ideas on how this is done so if anyone can start
    > me in the right direction I'd appreciate it. If anyone knows a web
    > site with this kind of information that would be a big help too.
    > Thanks a lot!
    > RENIE 83

    Ray at Guest

  4. #3

    Default Re: Changing Icon on Input

    Hi Ray,
    What I have is a little x icon with a link that a user clicks on to
    bring up a form.This form lets the user enter some input that will be
    sent off to a table. When the user enters input with the submit button
    I would like the little x to change to a check mark that does not have
    a link to it so no one can change that record. Right now I have the x
    icon with it's link inside a span and also the check mark icon in a
    span on hidden. They are both contained within a cell of a table. One
    thing, I can't seem to get them right on top of eachother, maybe it
    has something to do with being inside the cell. I have to have those
    icons in the table, because they go along with certain rows in the
    table. Another thing is that I only want the check mark to be up for a
    certain period of time. It will need to change back to an x after a
    set amount of time. I hope you can give me some ideas as to where to
    go with this. Thanks a lot!
    RENIE83

    "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message news:<OA9VPvGUDHA.1364@TK2MSFTNGP10.phx.gbl>...
    > What icon are you talking about?
    >
    > Ray at work
    >
    > "Renie83" <renie83@lycos.com> wrote in message
    > news:8e153bdf.0307220805.6f7e3694@posting.google.c om...
    > > Hi,
    > > What I would like to do is when a user enters new information to a
    > > table in a database by submitting a form, the icon that was used to
    > > open up the page to let them provide that input should be temporarily
    > > changed. I have everything set up except how to change the icon. I
    > > really don't have any ideas on how this is done so if anyone can start
    > > me in the right direction I'd appreciate it. If anyone knows a web
    > > site with this kind of information that would be a big help too.
    > > Thanks a lot!
    > > RENIE 83
    Renie83 Guest

  5. #4

    Default Re: Changing Icon on Input

    Hi RENIE83,

    You'd want to change your images based on whatever condition you want it to
    be based on. Like, if you want it to be image2 from the last time the
    record was updated until midnight of that night, you could do something
    like:

    sLastUpdated = "1/1/1904" '' or some other old date - doesn't matter
    sID = Request.Querystring("id")
    sSQL = "SELECT [lastUpdated] FROM [theTable] WHERE [theRecordID]=" & sID
    Set rsDate = objADO.Execute(sSQL)
    If Not rsDate.EOF Then sLastUpdated = rsDate.Fields(0).Value
    rsDate.Close
    Set rsDate = Nothing
    objADO.Close
    Set objADO = Nothing



    If DateDiff("d", sLastUpdate, Now()) > 0 Then
    sImgSource = "/images/updatedalreadytoday.gif"
    Else
    sImgSource = "/images/clickheretoupdate.gif"
    End If

    That will just check to see if there was an update today (according to the
    server's date) and if so, set a different image source.

    Ray at work



    "Renie83" <renie83@lycos.com> wrote in message
    news:8e153bdf.0307230422.3a78a828@posting.google.c om...
    > Hi Ray,
    > What I have is a little x icon with a link that a user clicks on to
    > bring up a form.This form lets the user enter some input that will be
    > sent off to a table. When the user enters input with the submit button
    > I would like the little x to change to a check mark that does not have
    > a link to it so no one can change that record. Right now I have the x
    > icon with it's link inside a span and also the check mark icon in a
    > span on hidden. They are both contained within a cell of a table. One
    > thing, I can't seem to get them right on top of eachother, maybe it
    > has something to do with being inside the cell. I have to have those
    > icons in the table, because they go along with certain rows in the
    > table. Another thing is that I only want the check mark to be up for a
    > certain period of time. It will need to change back to an x after a
    > set amount of time. I hope you can give me some ideas as to where to
    > go with this. Thanks a lot!
    > RENIE83
    >
    > "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
    news:<OA9VPvGUDHA.1364@TK2MSFTNGP10.phx.gbl>...
    > > What icon are you talking about?
    > >
    > > Ray at work
    > >
    > > "Renie83" <renie83@lycos.com> wrote in message
    > > news:8e153bdf.0307220805.6f7e3694@posting.google.c om...
    > > > Hi,
    > > > What I would like to do is when a user enters new information to a
    > > > table in a database by submitting a form, the icon that was used to
    > > > open up the page to let them provide that input should be temporarily
    > > > changed. I have everything set up except how to change the icon. I
    > > > really don't have any ideas on how this is done so if anyone can start
    > > > me in the right direction I'd appreciate it. If anyone knows a web
    > > > site with this kind of information that would be a big help too.
    > > > Thanks a lot!
    > > > RENIE 83

    Ray at Guest

  6. #5

    Default Re: Changing Icon on Input

    There isn't really any simple way for the page to know until after the
    second user submits the form. (This is not entirely true, as you could use
    some client-side code to hit the server every n seconds or something, but
    that probably is not the best method.) What you'll have to do is check the
    record before the data is entered by the user, like:

    sSQL = "SELECT [lastUpdated] FROM [theTable] WHERE [theRecordID]=" & sID
    Set rsDate = objADO.Execute(sSQL)
    If Not rsDate.EOF Then sLastUpdated = rsDate.Fields(0).Value
    rsDate.Close
    Set rsDate = Nothing
    objADO.Close
    Set objADO = Nothing

    If DateDiff("d", sLastUpdate, Now()) = 0 Then
    response.write "This record was already updated today."
    response.end
    Else
    '''normal code that goes ahead and updates.
    End If

    Ray at home

    --
    Will trade ASP help for SQL Server help


    "Renie83" <renie83@lycos.com> wrote in message
    news:8e153bdf.0307231129.76762432@posting.google.c om...
    > That seems like a better way of doing it than I was trying to. The
    > only thing is that say two people are on the same page at the same
    > time. How can I make sure that as soon as that information is
    > submitted there is no way the other person can enter information until
    > the time has elaspsed. Is this even possible? Thanks a lot! I really
    > appreciate all your help!
    >
    >
    > Renie83
    > "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
    news:<epIjZuRUDHA.1576@TK2MSFTNGP12.phx.gbl>...
    > > Hi RENIE83,
    > >
    > > You'd want to change your images based on whatever condition you want it
    to
    > > be based on. Like, if you want it to be image2 from the last time the
    > > record was updated until midnight of that night, you could do something
    > > like:
    > >
    > > sLastUpdated = "1/1/1904" '' or some other old date - doesn't matter
    > > sID = Request.Querystring("id")
    > > sSQL = "SELECT [lastUpdated] FROM [theTable] WHERE [theRecordID]=" & sID
    > > Set rsDate = objADO.Execute(sSQL)
    > > If Not rsDate.EOF Then sLastUpdated = rsDate.Fields(0).Value
    > > rsDate.Close
    > > Set rsDate = Nothing
    > > objADO.Close
    > > Set objADO = Nothing
    > >
    > >
    > >
    > > If DateDiff("d", sLastUpdate, Now()) > 0 Then
    > > sImgSource = "/images/updatedalreadytoday.gif"
    > > Else
    > > sImgSource = "/images/clickheretoupdate.gif"
    > > End If
    > >
    > > That will just check to see if there was an update today (according to
    the
    > > server's date) and if so, set a different image source.
    > >
    > > Ray at work
    > >
    > >
    > >
    > > "Renie83" <renie83@lycos.com> wrote in message
    > > news:8e153bdf.0307230422.3a78a828@posting.google.c om...
    > > > Hi Ray,
    > > > What I have is a little x icon with a link that a user clicks on to
    > > > bring up a form.This form lets the user enter some input that will be
    > > > sent off to a table. When the user enters input with the submit button
    > > > I would like the little x to change to a check mark that does not have
    > > > a link to it so no one can change that record. Right now I have the x
    > > > icon with it's link inside a span and also the check mark icon in a
    > > > span on hidden. They are both contained within a cell of a table. One
    > > > thing, I can't seem to get them right on top of eachother, maybe it
    > > > has something to do with being inside the cell. I have to have those
    > > > icons in the table, because they go along with certain rows in the
    > > > table. Another thing is that I only want the check mark to be up for a
    > > > certain period of time. It will need to change back to an x after a
    > > > set amount of time. I hope you can give me some ideas as to where to
    > > > go with this. Thanks a lot!
    > > > RENIE83
    > > >
    > > > "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in
    message
    > > news:<OA9VPvGUDHA.1364@TK2MSFTNGP10.phx.gbl>...
    > > > > What icon are you talking about?
    > > > >
    > > > > Ray at work
    > > > >
    > > > > "Renie83" <renie83@lycos.com> wrote in message
    > > > > news:8e153bdf.0307220805.6f7e3694@posting.google.c om...
    > > > > > Hi,
    > > > > > What I would like to do is when a user enters new information to a
    > > > > > table in a database by submitting a form, the icon that was used
    to
    > > > > > open up the page to let them provide that input should be
    temporarily
    > > > > > changed. I have everything set up except how to change the icon. I
    > > > > > really don't have any ideas on how this is done so if anyone can
    start
    > > > > > me in the right direction I'd appreciate it. If anyone knows a web
    > > > > > site with this kind of information that would be a big help too.
    > > > > > Thanks a lot!
    > > > > > RENIE 83

    Ray at Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139