quote:
Originally posted by DennisMartijn
Btw, if you leeve the code this way:code:
OnEvent_ContactSignin(
[string] Email
);
, then the event you want to happen happens when anybody of your contact list is signing in? cuz its a variable?
as said before yes... But you have one important thing wrong in there:
code:
OnEvent_ContactSignin(
[string] Email
);
is not programming code!!! It is a syntax description. It may look like code but it really isn't. It just described the function.
It is the same as a phonetic description of a word. The description itself is not the word, it is a desription of the word.
So although the next reply will work in practice (most of the time):
quote:
Originally posted by hmaster
Correct. But you have to remove "[string]".
Example:
code:
function OnEvent_ContactSignin(Email) {
Debug.trace("The contact " + Email + " has signed in");
}
it does not teach the correct thing...
just wanted to clarify that...
---------------------
quote:
Originally posted by -dt-
quote:
Originally posted by RaceProUK
quote:
Originally posted by J-Thread
It differs from JScript
Only insofar as JScript is an extended version of JavaScript.
All JavaScript is valid JScript, but not always the other way around.
And before anyone starts on with 'document.all' and stuff, that's not a JavaScript/JScript difference: that's a W3C/Microsoft DOM difference.
err no jscript isnt an extended version of javascript.. its a child of ecmascript and so is javascript, nearly all of javascript 1.5 is compatible with jscript though.
newer versions of javascript have things which arent compatible like
javascript 1.6 introduces e4x (basicly native xml handleing in javascript) and some more array methods
javascript 1.7 introduces interators , generators , let expressions and destructuring stuff.
absolutely, hence why one should be carefull in basing stuff on JavaScript when writing or learning JScript. It is indeed not the same as Jscript, nor is it derived from it, nor is it an extended version (and vice versa)...
Many stuff is the same, but not all (and that is excluding DOM differences)