Topic awaiting preservation: javascript (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: Blackstone, Ma, USA |
posted 09-22-2001 18:28
is there any servers besides the netscape ones that support server side javascript |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 09-22-2001 18:33 |
Paranoid (IV) Inmate From: Blackstone, Ma, USA |
posted 09-23-2001 08:35
when u use jscript with asp does it have the same objects as if u were using vbscript....session etc... |
Paranoid (IV) Inmate From: Blackstone, Ma, USA |
posted 09-23-2001 08:38
btw i was wondering if it was possible to have static variables in a javascript |
Paranoid (IV) Inmate From: Blackstone, Ma, USA |
posted 09-23-2001 08:40
btw i was wondering if it was possible to have static variables in a javascript functions |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 09-23-2001 09:11
on the server side? |
Paranoid (IV) Inmate From: Blackstone, Ma, USA |
posted 09-23-2001 09:14
either , i thought the core language was the same for both |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 09-23-2001 09:57
For all questions about ASP, visit Microsoft's web site... |
Maniac (V) Mad Scientist From: Rochester, New York, USA |
posted 09-23-2001 18:28 |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 09-23-2001 19:26
Just a small correction to WarMage's post above. ASP *is not* programming language. ASP is server-side technology used for creating dynamic web sites. ASP relies on other programming languages when generating pages. At the moment you can use VBScript and JScript (both of them are Microsoft creations) to program ASP pages. And it's a well known fact that Visual Basic is the worst programming language ever invented. VB is the thing that sux here, big time! |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 09-24-2001 00:47
You can't really have static variables in JavaScript. You can certainly pretend a variable is static, by not changing it, but it's not *really* static. |
Paranoid (IV) Inmate From: Blackstone, Ma, USA |
posted 09-24-2001 10:02
i found a way to simulate a static variable |
Paranoid (IV) Inmate From: Minneapolis, MN, USA |
posted 09-24-2001 17:53
A static variable is a variable that stays the same over all instances of an object class, correct? |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 09-24-2001 18:40
I'd have to think not very. |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 09-24-2001 18:58
Oop! I was confusing "static" with "constant". Yeah, if you want a variable that remains the same the next time you call a function, you just want to define it *outside* the function, in a larger scope. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 09-24-2001 19:22
(sorry slime you had var = var+1 not trying to step on toes) |
Paranoid (IV) Inmate From: Minneapolis, MN, USA |
posted 09-24-2001 22:29
Yeah, I think the concept of a static variable doesn't make much sense if you aren't defining classes. In a situation like this, a global variable would seem to be the appropriate method... |
Paranoid (IV) Inmate From: Blackstone, Ma, USA |
posted 09-26-2001 03:23
while on the subject of javascript i was wondering how to set a block of javascript to execute after a certain defined period of time. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 09-26-2001 05:51
setTimeout() |
Paranoid (IV) Inmate From: Blackstone, Ma, USA |
posted 09-26-2001 09:31
yup thats what i was looking for |