Javascript question

Code:
if(document.form_name.field_name) {
	[i]do stuff[/i]
} else {
	[i]do other stuff[/i]
}

I would set a variable that determines the existance, depending on what I am doing though, I might do something else.
 
Also, I fucking hate IE, because now I have to find a workaround for it. The above script works flawlessly in FF though.
 
orbital 123 said:
why would you be checking if the field exists period? wtf?


some form fields might not be present (this is a web application)

the current thing I'm doing fucking SUCKS though. I have to parse in the values for up to 18 fields, do calculations of them, and then repopulate them...

every time one or two form fields are changed.
 
KombatWombat said:
Not that it matters, but the top 4 threads listed are all started by Falhawk.
i did notice myself and was about to post a thread in regards to limiting the amount of retarded threads someone can post in a morning and/or days span.
 
Dark Volcanic said:
Dynamic forms?

I suppose. I just use other logic to decide while fields to check in that case though. If this is checked then check this field, else check some other field, etc... meh, to each their own.
 
SarcaStick said:
i did notice myself and was about to post a thread in regards to limiting the amount of retarded threads someone can post in a morning and/or days span.

you'd never be able to post again :(
 
your response is all too obvious. everybody and their borther knew what it would be.

so much for originality and cheers to obvious stupidity.
 
SarcaStick said:
your response is all too obvious. everybody and their borther knew what it would be.

so much for originality and cheers to obvious stupidity.

SarcaStick Post Formula:

1.) make outrageous statement or assertion
ex: "I'm out of jail"
2.) refuse to make any more detailed posts about the topic
ex: "I don't have to explain shit to TW"
3.) be the only laughing at the joke that nobody sees.
ex: "Lol you retards are so predictable"

lather, rinse, repeat
 
Falhawk Post Formula:

1. make retarded thread and :mecry: about life
2. make retarded thread and :mecry: about life
3. make retarded thread and :mecry: about life
4. make thread asking for something then :mecry: about life

rinse and repeat
 
shutup man tits, im not a fan of falhawk or anything but get off his nuts about making threads, at least the provoke discussion
 
Back
Top