show image when done

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jay

    #1

    show image when done

    Difficult to explain but....

    I have a form. Inside the form is a table (2 columns).
    1st column has text. Click on the text and a hidden div appears in the 2nd
    column and contains a textarea.
    (pause)
    This form has a lot of textareas so rather than have a long ugly form I
    decided to use 10 hidden divs each one containing a different textarea. Each
    hidden div has the same positioning...

    The thing is... as the user goes down the 10 rows, clicking on each and
    typing in each textarea, it becomes hard to remember which links have been
    clicked on. What I want to achieve is to have an image (of a tick) appear
    next to the text after it has been clicked and the text provided.
    Is this making sense?

    table
    click to enter some text (tick) | table cell where div/textareas appears
    click to enter some text | div/textareas appears

    The first row shows a tick.gif to the right of the text as the user has
    already clicked here and entered some text.
    The textarea/div is hidden when the user clicks some text in the hidden
    div... the div id is passed to the function so maybe another line in the
    function to achieve?

    The more I type the less I think I'm explaining so I'll stop!
    Any ideas?

    Jay


  • Jay

    #2
    Re: show image when done


    "Jay" <jazemail@gmail .com> wrote in message
    news:O0J8e.1965 5$1S4.1953971@n ews.xtra.co.nz. ..

    had a thought.. it would be acceptable if it was one image and it moved it's
    way down the rows showing the last text clicked.
    click some text in table cell 2 - the div in table cell 2 reverts to hidden
    and an image (tick.gif) appears in table cell 1 (to the right of the text
    already resident in cell 1)



    Comment

    • Matthew Lock

      #3
      Re: show image when done

      You could have a hidden image of a tick and display it when the user
      started typing in the textarea. You can tell when they started typing
      with the onchange event.

      Comment

      • Jay

        #4
        Re: show image when done


        "Matthew Lock" <lockster@gmail .com> wrote in message
        news:1113815407 .428499.67030@f 14g2000cwb.goog legroups.com...[color=blue]
        > You could have a hidden image of a tick and display it when the user
        > started typing in the textarea. You can tell when they started typing
        > with the onchange event.[/color]

        How do you hide an image?
        How can I turn it from hidden to visible (or do you mean width=0, height=0?)
        onClick of the text calls a function and passes the LayerID to on/off the
        visibility of a given layer.
        Is the built-in that comes with Macromedia Fireworks 4.
        Can I tack something onto the end of this to control the width height of a
        given image?


        Comment

        • Matthew Lock

          #5
          Re: show image when done


          Jay wrote:[color=blue]
          > How do you hide an image?
          > How can I turn it from hidden to visible (or do you mean width=0,[/color]
          height=0?)[color=blue]
          > onClick of the text calls a function and passes the LayerID to on/off[/color]
          the[color=blue]
          > visibility of a given layer.[/color]

          You can use Javascript to control the visibility through CSS. Read
          these:





          Comment

          • Jay

            #6
            Re: show image when done


            "Matthew Lock" <lockster@gmail .com> wrote in message
            news:1113871628 .338229.182060@ f14g2000cwb.goo glegroups.com.. .[color=blue]
            >
            > Jay wrote:[color=green]
            >> How do you hide an image?
            >> How can I turn it from hidden to visible (or do you mean width=0,[/color]
            > height=0?)[color=green]
            >> onClick of the text calls a function and passes the LayerID to on/off[/color]
            > the[color=green]
            >> visibility of a given layer.[/color]
            >
            > You can use Javascript to control the visibility through CSS. Read
            > these:
            >
            > http://groups-beta.google.com/group/...64defa3f93a580
            >
            > http://groups-beta.google.com/group/...cfaee4452940fc[/color]

            What I ended up doing was having 6 instances of the same image
            (strategically placed) and having the w and h set to 0
            onClick would call my function and also set the named instance to w and h =
            12.
            job done.

            Jay


            Comment

            Working...