today i'm taking a closer look at the xml script syntax and i have a few doubts about it.
1. i've just noticed that the page element has the following:
what's the purpose of the namespace? well, i'm not a xml expert, but it looks like the namespace is associated with a prefix that isn't used anywhere else...
2. it looks like the profile service can be "xml-scripted" but the same doesn't happen with the authentication service. is there any reason for this behavior? well, i guess that i can allways create a new action so that i could call its methods from xml-script to handle the click event of a button...ah, forgot about question 3:
3. in the action how are we supposed to declare the parameters? for instance, let's suppose that i'm calling a method that receives 2 parameters and their calues come from the text property of 2 textboxes?
The first question is not very clear. Seems that some text is lost because it was not encoded. But one of the purpose of namespace is when you make an object xml-script accessible, you call Sys.TypeDescriptor.addType method
Sys.TypeDescriptor.addType('script', 'application', Sys._Application);
The first parameter takes the namespace prefix. I believ the Atlas parsing routines are currently ignoring the script namespace prefix.In general javascript classes that implement Sys.ITypeDescriptorProvider class are XML Scriptable. AuthenticationService class doesnot implement this interface and is supposed to be a lightweight class. That's why it is not XML-Scriptable. But you can get away by implementing using serviceMethod in the XML-Script.
Hello Rama.
well, that makes sense, though i think that the xml written should use the prefix (ie, it should be
regarding the usage of serviceMethod, yes, i think i could do that...
No comments:
Post a Comment