- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2016 09:29 AM
I'm trying to set up a UI page in SNow and am receiving the error "missing name after . operator" when trying to save. I've included the code that it is referencing as the problem below but can include all of it if that seems necessary. The spot that is specifically referenced is line 7 column 98. This code works properly outside of SNow so I'm assuming it is caused by how SNow interprets the JavaScript. I've done some digging and came up with the idea that I am using a reserved word but changing out ui for testVar came up with the same error so I'm not sure what the reserved word might be. Any help is appreciated.
//when element is dragged to #chosen
$( "#chosen" ).sortable({
receive: function( event, ui ) {
//iterate through the snowIssuesArray
for (i=0;i < snowIssuesArray.length;i++){
//find the match
if (snowIssuesArray[i][0] == ui.item[0].innerHTML && snowIssuesArray[i][1] == ui.item[0].class){
//and remove it
snowIssuesArray.remove(i);
}
}
}
});
Solved! Go to Solution.
- Labels:
-
User Interface (UI)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2016 11:49 PM
class is the reserved word. You need to change class to something else.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2016 11:49 PM
class is the reserved word. You need to change class to something else.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-15-2016 08:38 AM
That worked. Is there a list of reserved words anywhere? I found the MySQL ones through the database view page but class wasn't on that one.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-15-2016 07:25 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-16-2016 07:57 AM
Thank you for the list. The problem i have with that is that the code works properly outside of SNow and I'm not using class as a "variable, label, or function name". I'm using it to get the class attribute of that HTML element. Does SNow just disallow the use of the reserved words for any purpose?