Saturday, March 24, 2012

Problem Creating New Control toolkit

I have a problem that I am just about to give up on (so any help might save my sanity)

If I create a completely new Atlas project and use the default names I can create a new control add it to my test project and run it. However, if I right click and add a new item (of type Atlas control) no matter what I do to this (including inspecting the files line by line) I cannot get it to work. It fails with unrecognised tag and then my namespace and control when loading the page in IE. Now clearly it is not too much wrong as I can drag the control from the toolkit and it will check my tags to see if they are allowed. I can also use the properties i have created and they appear as correct extenders on the correct objects. It appears to be just the final link between the control and the browser.

When I debug I come back to the routine

Sys.TypeDescriptor.getType = function(tagPrefix, tagName) {
var type = null;
if (Sys.TypeDescriptor._registeredTags) {
var tagNameTable = Sys.TypeDescriptor._registeredTags[tagPrefix];
if (tagNameTable) {
type = tagNameTable[tagName];
}
}
debug.assert(type, String.format("Unrecognized tag {0}:{1}", tagPrefix, tagName));
return type;
}

The array_registeredTags contains (script, toolkit, atlascontroltoolkit) Should I see my namespace in here too?

I have gone through my code and created several projects and I cant figure it out.

Any help would be appreciated.

Thanks

Geoff

Hi Geoff,

You should check outFAQ Item #5. I'm guessing your script isn't an embedded resource.

Thanks,
Ted

No comments:

Post a Comment