![]() Preserved Topic: javascript (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: Blackstone, Ma, USA |
![]() is there any servers besides the netscape ones that support server side javascript |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
![]() |
Paranoid (IV) Inmate From: Blackstone, Ma, USA |
![]() 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 |
![]() btw i was wondering if it was possible to have static variables in a javascript |
Paranoid (IV) Inmate From: Blackstone, Ma, USA |
![]() 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 |
![]() on the server side? |
Paranoid (IV) Inmate From: Blackstone, Ma, USA |
![]() either , i thought the core language was the same for both |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
![]() For all questions about ASP, visit Microsoft's web site... |
Maniac (V) Mad Scientist From: Rochester, New York, USA |
![]() |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
![]() 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 |
![]() 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 |
![]() i found a way to simulate a static variable |
Paranoid (IV) Inmate From: Minneapolis, MN, USA |
![]() 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 |
![]() I'd have to think not very. |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() 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 |
![]() (sorry slime you had var = var+1 not trying to step on toes) |
Paranoid (IV) Inmate From: Minneapolis, MN, USA |
![]() 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 |
![]() 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 |
![]() setTimeout() |
Paranoid (IV) Inmate From: Blackstone, Ma, USA |
![]() yup thats what i was looking for |