if you do something like

<script>

        currObj = "";

        function doSomething () {
                currObj = "hello";
                }
</script>

because the currObj var has been created outside the function, it actually
belongs to the document and is avaliable everywhere

Steve

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Chad
Renando
Sent: Wednesday, August 03, 2005 1:34 PM
To: CFAussie Mailing List
Subject: [cfaussie] OT: Setting a persistant variable in Javascript


I have this cool table thing where the rows go different colours when
I roll over and when I click on the row.

But now when I click a row I want to "turn off" the other clicked row.

Still feeling my way around JavaScript.  Is there a way such that when
I click, I assign the selected row and its default colour to a
variable that is available in other functions?

Chad
who gets funny looks when he feels his way around programming languages

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
[EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/



---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to