----- Original Message ----- 
From: "Chris" <[EMAIL PROTECTED]>
To: "ActiveServerPages" <[EMAIL PROTECTED]>
Sent: Tuesday, October 29, 2002 9:24 AM
Subject: RE: passing variable to function


> 
> Alexander, it's still not clear.  Combining your two messages, I should
> guess that the fieldstatus variable is assigned on the server, and
> you're trying to run the LinkClick sub on the client?
> 
> If that's the case then
> 
>   a)  the client never gets fieldstatus, as you've discovered, and

I'm assuming you were right there...


>   b)  why would you send down all the fieldstatus choices with the
> client's LinkClick procedure when you know (on the server serving the
> page) the value of fieldstatus?
> 
> It would be better to use Response.Write to send down only the code
> LinkClick requires when the value of fieldstatus is X, as in


Actually, if you want the page to still dynamically update a field's 
disabled property, you're still going to need the SELECT CASE 
statement, so I can see why he still has that in there.  Of course, 
he'd have to modify his LinkClick function so that it accepts a 
parameter, and doesn't hard-code it inside the function.

Ahhhhh, dynamicism (is that a real word?)

Chris Tifer
http://www.emailajoke.com


---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to