Tom Ramcigam (magicmarmot) wrote,
Tom Ramcigam
magicmarmot

  • Mood:
  • Music:

generic update

Went to 'Sconsin for a film shoot yesterday. I don't travel over to the Dark Side very often-- it's like going to Czechoslovakia-- and last night was no exception. They are apparently very strict about the speed limit over there, and although I didn't get a ticket, I did get a flash of the bubblegum for 58 in a 55.

The shoot was pretty uneventful. I set up lighting in record time, and the director loved it. I wanted to tweak it a little more, but hey, if she's happy, it's her movie. We shot for 2 hours in a bakery where donuts were being made by the lead actress. It was kinda funny, because she was really too small to be able to cut the dough properly.

Playing with more javascript. Found some interesting and annoying things trying to access HTML values with javascript methods.


In this case, I have a set of radio buttons. With the group, the button selected is given a value: edited for appearance

INPUT type=radio value=1 name=q9
INPUT type=radio value=2 name=q9
INPUT type=radio value=3 name=q9
INPUT type=radio value=4 name=q9

You would think that value would be a numerical value since it's not encased in quotes. Nope. It's *text*.

Now in javascript, the typing of a variable is very loose. So if I have a numeric variable (var thing = 0) and I add the value from the HTML buttons to it, the javascript variable appends the value as a text string. For instance if thing = 10 and value = 4, thing += value = 104 concatenated as a text string. Wow, is that annoying.

OTOH, it is leading me to separate the input handling from the processing, which is good design practice.


Today, I am eating healthy. Salad for lunch. And working on more javascript. I don't know if it's a marketable skill, but it's more for personal growth anyway.

Tra-la!
Subscribe
  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 0 comments