Need help of a javascript geek :)

Discussion in 'JavaScript' started by geoiss2004, Oct 13, 2009.

  1. #1
    Hello

    Please see this page: http://studentprops.com/dev/

    The "bedroom" buttons are built with radio buttons. When you click them, they turn light blue. In IE6/7/8 however, they need to be clicked twice for them to turn light blue. I need this fixing ASAP so if anybody can help at all I would be extremely grateful!

    Take a look at the Js file and see if you can help me. If it's going to take some time I'm willing to pay.

    Thanks
     
    geoiss2004, Oct 13, 2009 IP
  2. dimitar christoff

    dimitar christoff Active Member

    Messages:
    882
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    90
    #2
    inputs[a].onchange = Custom.choose;

    could it be that the onchange event in IE does not get fired up for the select until it loses focus? for instance, try clicking on 2 once and then click away - not on another room size. as it loses focus, the event fires and it is selected

    i suggest you rewrite this as

    inputs[a].onclick = this.choose;

    keep in mind that there are also a bunch of other event handlers that don't make an awful lot of sense that could be at fault:
    inputs[a].parentNode.insertBefore(span[a], inputs[a]);
    50 inputs[a].onchange = Custom.clear;
    51 span[a].onmousedown = Custom.pushed;
    52 span[a].onmouseup = Custom.check;
    53 document.onmouseup = Custom.clear; 
    PHP:
    p.s. mate, not being funny but if you think you're being humourous with the whole geek vibe, then you should also consider learning javascript and sorting your own problems :D
     
    Last edited: Oct 14, 2009
    dimitar christoff, Oct 14, 2009 IP
  3. geoiss2004

    geoiss2004 Guest

    Messages:
    1,454
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    0
    #3
    geek is supposed to be taken as a compliment...
     
    geoiss2004, Oct 16, 2009 IP
  4. dimitar christoff

    dimitar christoff Active Member

    Messages:
    882
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    90
    #4
    your idea of complimenting is so '80s 'revenge of the geeks'... that's like telling a woman 'being well rounded suits you'. watch all them geeks whose with their tickled egoes run head over heals to help now... :D
     
    dimitar christoff, Oct 16, 2009 IP
  5. geoiss2004

    geoiss2004 Guest

    Messages:
    1,454
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    0
    #5
    seriously, you're the only geek i've ever met to NOT take it as a compliment. i'm a self-confessed web geek; i love CSS/XHTML, i love web standards and i love reading about usability design.
     
    geoiss2004, Oct 17, 2009 IP
  6. ads2help

    ads2help Peon

    Messages:
    2,142
    Likes Received:
    67
    Best Answers:
    1
    Trophy Points:
    0
    #6
    Not really. I don't feel happy if someone call me that :D
     
    ads2help, Oct 17, 2009 IP
  7. geoiss2004

    geoiss2004 Guest

    Messages:
    1,454
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    0
    #7
    you guys are a bit strange.
     
    geoiss2004, Oct 17, 2009 IP
  8. dimitar christoff

    dimitar christoff Active Member

    Messages:
    882
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    90
    #8
    maybe it is - up north, with all the lumberjacks...
     
    dimitar christoff, Oct 17, 2009 IP
  9. geoiss2004

    geoiss2004 Guest

    Messages:
    1,454
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    0
    #9
    an intelligent observation.
     
    geoiss2004, Oct 17, 2009 IP
  10. dimitar christoff

    dimitar christoff Active Member

    Messages:
    882
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    90
    #10
    and q.e.d. :D
     
    dimitar christoff, Oct 17, 2009 IP
  11. geoiss2004

    geoiss2004 Guest

    Messages:
    1,454
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    0
    #11
    how? because i'm not a javascript geek? :p
     
    geoiss2004, Oct 17, 2009 IP
  12. MMJ

    MMJ Guest

    Messages:
    460
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #12
    I'd take it as a compliment.

    Wouldn't take nerd as a compliment though.
     
    MMJ, Oct 18, 2009 IP
  13. geoiss2004

    geoiss2004 Guest

    Messages:
    1,454
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    0
    #13
    exactly. nerd implies a lack of social skills whereas geek implies intelligent and passionate - but also a bit quirky. ALL good points in my book :)

    I received the help of a freelance dev on this issue, if anybody was wondering!
     
    geoiss2004, Oct 19, 2009 IP