Hi everybody,
I am not so good with javascript and I do hope you're tougher than me. Here is my problem: I use MicrosoftAjax.cs framework and I use classes like this one :
MyClass =
{
teststring:null,
$constructor: function(test){
teststring = "test";
},
GetInformationFromName : function(inputname, BeginningSeparator, EndSeparator) {
alert(BeginningSeparator);
alert(EndSeparator);
},
GetId: function(inputname) {
return MyClass.GetInformationFromName(inputname,MyClass.teststring, "???");
}
}
It is a pretty straightforward function where i just want to extract information from a name given in GetId().
My problem is that In GetPerId I can see (in the debugger of visual studio) the value of MyClass.teststring. But when I debug into the call of the function and I arrive in GetInformationFromName, the value passed in parameter is null, whereas a "normal" value does not cause any trouble.
concrete example of what happens (of what i can see) : -> GetId("toto") -> MyClass.GetInformationFromName("toto","&", "???"); -> GetInformationFromName (toto",null, "???")
Would you have any hint about that?