Professional Web Applications Themes

JavaScript - click on image, select radio button - Macromedia Dreamweaver

Having a brain-dead day here and can't seem to get this working. How would you do it so that when an image is clicked a corresponding radio button is selected? -- Dave ----------------------------------------------------------------- If I were half as smart as people think I am... I'd be twice as smart as I was before I forgot everything. (Official victim of CRAFT Syndrome) =======================...

  1. #1

    Default JavaScript - click on image, select radio button

    Having a brain-dead day here and can't seem to get this working.

    How would you do it so that when an image is clicked a corresponding radio button is selected?

    --

    Dave
    -----------------------------------------------------------------
    If I were half as smart as people think I am...
    I'd be twice as smart as I was before I forgot everything.
    (Official victim of CRAFT Syndrome)

    =======================


    David Guest

  2. #2

    Default Re: JavaScript - click on image, select radio button

    onclick=doent.formName.radiobutton[0].checked=true


    Mick

    "David R. Wheeler" wrote:
     

    mick_white Guest

  3. #3

    Default Re: JavaScript - click on image, select radio button

    oops.
    Mick

    "David R. Wheeler" wrote:
     

    mick_white Guest

  4. #4

    Default Re: JavaScript - click on image, select radio button

    Thanks anyway, Mick.

    Actually that's what I was using but I kept getting a "method not supported" error. This is what wound up working

    onclick="if(radLayout(0).status==false){radLayout( 0).status=true};return false"

    --

    Dave
    -----------------------------------------------------------------
    If I were half as smart as people think I am...
    I'd be twice as smart as I was before I forgot everything.
    (Official victim of CRAFT Syndrome)

    =======================


    "mick_white" <com> wrote in message news:com... 
    >[/ref]
    David Guest

  5. #5

    Default Re: JavaScript - click on image, select radio button

    Works for me, I'm not sure about your method, looks like IE Windows only to me.

    http://www.mickweb.com/projects/radio.html

    Mick

    "David R. Wheeler" wrote:
     
    > >[/ref][/ref]

    mick_white Guest

  6. #6

    Default Re: JavaScript - click on image, select radio button


    No form tags?

    Mick


    "David R. Wheeler" wrote:
     

    mick_white Guest

  7. #7

    Default Re: JavaScript - click on image, select radio button

    Nested table... the whole page is in form tags.

    --

    Dave
    -----------------------------------------------------------------
    If I were half as smart as people think I am...
    I'd be twice as smart as I was before I forgot everything.
    (Official victim of CRAFT Syndrome)

    =======================


    David Guest

  8. #8

    Default Re: JavaScript - click on image, select radio button

    Got it working w/ your method.

    I don't understand the difference but what I did was change the null link from # to javascript:; and removed the return false

    Now it's x-browser :)

    Thanks Mick - much appreciated.

    --

    Dave
    -----------------------------------------------------------------
    If I were half as smart as people think I am...
    I'd be twice as smart as I was before I forgot everything.
    (Official victim of CRAFT Syndrome)

    =======================


    David Guest

  9. #9

    Default Re: JavaScript - click on image, select radio button

    np, but the null link should have worked, ah well.
    Mick

    "David R. Wheeler" wrote:
     

    mick_white Guest

Similar Threads

  1. Select All radio buttons
    By Ken Mosley in forum Coldfusion - Advanced Techniques
    Replies: 1
    Last Post: February 16th, 09:40 PM
  2. WWW::Mechanize click($button) not finding right button to click
    By Bart Swordfish in forum PERL Modules
    Replies: 5
    Last Post: June 18th, 07:40 AM
  3. how to add single select radio button in datagrid... URGENT
    By Sriram in forum ASP.NET Data Grid Control
    Replies: 3
    Last Post: June 9th, 03:41 PM
  4. Replies: 2
    Last Post: May 28th, 06:23 AM

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
  •  

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