Closed Thread Icon

Topic awaiting preservation: Found this and... (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8352" title="Pages that link to Topic awaiting preservation: Found this and... (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Found this and... <span class="small">(Page 1 of 1)</span>\

 
Dufty
Paranoid (IV) Inmate

From: Where I'm from isn't where I'm at!
Insane since: Jun 2002

posted posted 10-18-2002 12:47

Many of you will already know this, if so - please disregard.
I found this yesterday and thought 'OMG! That's going to save me hours of programming time!'

When referencing elements within a form (JavaScript), instead of typing:
document.myForm.element.value each time - try this:


function myFunction() {
with (document.forms["myForm"]) {

all page elements called in this function are now assumed to belong to document.myForm - e.g. element1.value


}
}

Thought I'd share with those who didn'tknow this existed (like me - before yesterday).

[This message has been edited by Dufty (edited 10-18-2002).]

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 10-18-2002 12:55

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

Dufty
Paranoid (IV) Inmate

From: Where I'm from isn't where I'm at!
Insane since: Jun 2002

posted posted 10-18-2002 13:32

Ahhh... the posibilities for even lazier coding are endless!!!

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 10-18-2002 13:47

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

« BackwardsOnwards »

Show Forum Drop Down Menu