Topic awaiting preservation: Using Shorthand Conditional |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: NZ |
posted 05-21-2003 05:03
Hi, guys. I am trying to understand Using Shorthand conditional! |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 05-21-2003 05:27
Well I've never seen the &{ ... } bit so I don't know what that is but usually you need to return something for that to work. |
Paranoid (IV) Inmate From: NZ |
posted 05-21-2003 06:07
Hi, bitdamaged. |
Paranoid (IV) Inmate From: France |
posted 05-21-2003 12:01
Like Bitdamaged, I've never seen the &{foo} syntax. I've searched in the Javascript 1.3 Client References ( Javascript 1.3 was introduced in Navigator 4.06, so it covers the features of 3rd generation browsers ), and there's no sign of the &{foo} thingy. code: <html> Thus, the only way to do what you want, is to send the name/id of the image you wanna change to a function and then update the src attribute. |
Paranoid (IV) Inmate From: Lebanon |
posted 05-21-2003 13:46
Hello, |
Bipolar (III) Inmate From: |
posted 05-21-2003 22:22
How to use "Shorthand Conditional" |
Paranoid (IV) Inmate From: France |
posted 05-22-2003 00:29
RoyW: LOL, your solution is quite easy. I always forget the document.write function mainly 'coz I consider it as a "Middle Age" tool in those times of DOM, and also 'coz I've had some really bad suprises with it in NN4 ( e.g. the code generated in a document.write overwrote the code being in the current tag and its siblings. Crazy. ) |
Bipolar (III) Inmate From: |
posted 05-22-2003 06:37
hi poi, |
Paranoid (IV) Inmate From: France |
posted 05-22-2003 10:39
RoyW: The weird behavior of document.write I mentionned made me add many lines of HTML comments to make sure the document.write wouldn't crush some useful tags. |
Bipolar (III) Inmate From: |
posted 05-23-2003 20:13
Hi poi, |