I just don't get this... This works:
var Terra = {
setlink: function(e) {
document.getElementById(e).setAttribute("class", "selectedLink");
}
} |
And this works also:
var Terra = { logout: function() {
alert("You have been logged out.");
// XMLHTTTP to logout
}
} |
Yet when I try this by combining the two subvariables:
var Terra = {
setlink: function(e) {
document.getElementById(e).setAttribute("class", "selectedLink");
} logout: function() {
alert("You have been logged out.");
// XMLHTTTP to logout
}
} |
, It doesn't work... I get the error
missing } after property list
TMPcfixgb53pz.htm (line 7
logout: function() { |
What's wrong with my code? Thanks for your help and time.