Script Includes - name must start with a capital letter?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2011 10:08 PM
Can someone please confrim or deny the fact that the name of a script include/GlideAjax must start with a capital letter?
I've been trying to get the below GlideAjax to work for a while now and just discovered this fact
//script include name = Asdf
var Asdf = Class.create();
Asdf.prototype = Object.extendsObject(AbstractAjaxProcessor, {
confirmOrgChanges: function() {
. . . .
//WORKS
//script include name = asdf
var asdf = Class.create();
asdf.prototype = Object.extendsObject(AbstractAjaxProcessor, {
confirmOrgChanges: function() {
. . . .
//DOES NOT WORK
This is really annoying. . . is there a reason for this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-25-2011 07:19 AM
We also read the threads. 😉
I'll take a look at the Script Includes page and incorporate this thread into it... I got a lot of information about Script Includes at K11 that I want to incorporate.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-25-2011 07:23 AM
Oh, speaking of which -- are the names of your Script Include and the name of the class defined in the Script Include the same capitalization? John Roberts said in the scripting lab that if they aren't written the same, your script include won't work properly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-25-2011 07:41 AM
Ignore that. I completely misunderstood what John said.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-25-2011 03:47 PM
guy.yedwab
What you've said sounds right:
From GlideAjax wiki page:
[quote]
When creating the Script Include, you must set the name field to be exactly the same as the class name.
[/quote]
That I had right 🙂