Script Includes - name must start with a capital letter?

ninnesr
Kilo Contributor

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?

8 REPLIES 8

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.


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.


Ignore that. I completely misunderstood what John said.



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 🙂