Click here to Skip to main content
15,908,013 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Problem in setting the Date using Calendar control Pin
Christian Graus29-Jun-05 12:16
protectorChristian Graus29-Jun-05 12:16 
GeneralRe: Problem in setting the Date using Calendar control Pin
just4ulove729-Jun-05 12:21
just4ulove729-Jun-05 12:21 
GeneralRe: Problem in setting the Date using Calendar control Pin
Christian Graus29-Jun-05 12:36
protectorChristian Graus29-Jun-05 12:36 
GeneralRe: Problem in setting the Date using Calendar control Pin
just4ulove729-Jun-05 12:47
just4ulove729-Jun-05 12:47 
GeneralRe: Problem in setting the Date using Calendar control Pin
Christian Graus29-Jun-05 13:01
protectorChristian Graus29-Jun-05 13:01 
GeneralRe: Problem in setting the Date using Calendar control Pin
just4ulove729-Jun-05 13:02
just4ulove729-Jun-05 13:02 
GeneralWeb Development Pin
Anonymous29-Jun-05 4:09
Anonymous29-Jun-05 4:09 
QuestionMap ASP.NET / PHP types to JavaScript objects? Pin
Stan Angeloff29-Jun-05 1:53
Stan Angeloff29-Jun-05 1:53 
Hello everybody.

These days I was looking at Ajax.NET[^]. This is a library that is used to call .NET methods from JavaScript. What impressed me so muck was how .NET types are mapped to JavaScript objects. Take a look at the following code:

[Serializable]
public class Person
{
  public string FirstName;
  public string FamilyName;
  public int Age = 0;

  public Person NewChild()
  {
    Person p = new Person();
    p.FamilyName = FamilyName;

    return p;
  }

  public Person[] Children = null;
}
And the JavaScript part of the code:

function test12_callback(res)
{
  var s = res.value.FirstName + " " + res.value.FamilyName + ":\r\n";
	
  for(var i=0; i<res.value.Children.length; i++)
    s += "\t" + res.value.Children[i].FirstName + "\r\n";
	
  alert(s);
}
How is this achieved? Is it also possible to map a PHP type to a JavaScript object? Can I create a JavaScript object using a simple XML document?

Thank you,
Stanimir.
GeneralIIS virtual dir problem Pin
monageasmear28-Jun-05 23:30
monageasmear28-Jun-05 23:30 
GeneralRe: IIS virtual dir problem Pin
Guffa29-Jun-05 10:39
Guffa29-Jun-05 10:39 
GeneralArticles about Usability (I needdd!!) Pin
__Charly__28-Jun-05 17:42
__Charly__28-Jun-05 17:42 
GeneralRe: Articles about Usability (I needdd!!) Pin
fakefur29-Jun-05 14:01
fakefur29-Jun-05 14:01 
GeneralRe: Articles about Usability (I needdd!!) Pin
DavidNohejl2-Jul-05 7:04
DavidNohejl2-Jul-05 7:04 
GeneralNewbie: Running Process from Webservice. Doesn't work. Pin
PhrankBooth28-Jun-05 17:34
PhrankBooth28-Jun-05 17:34 
GeneralRe: Newbie: Running Process from Webservice. Doesn't work. Pin
Guffa30-Jun-05 17:26
Guffa30-Jun-05 17:26 
GeneralSelect Box Expansion Pin
Anonymous28-Jun-05 10:26
Anonymous28-Jun-05 10:26 
GeneralRe: Select Box Expansion Pin
Guffa29-Jun-05 10:45
Guffa29-Jun-05 10:45 
GeneralSubmitting Data Pin
RichardS28-Jun-05 1:19
RichardS28-Jun-05 1:19 
GeneralRe: Submitting Data Pin
Ian Darling28-Jun-05 2:03
Ian Darling28-Jun-05 2:03 
GeneralRe: Submitting Data Pin
fakefur29-Jun-05 14:06
fakefur29-Jun-05 14:06 
GeneralWeb service returning a DataSet Pin
ShugMagoo27-Jun-05 12:38
ShugMagoo27-Jun-05 12:38 
GeneralRe: Web service returning a DataSet Pin
Guffa30-Jun-05 17:31
Guffa30-Jun-05 17:31 
GeneralRe: Web service returning a DataSet Pin
ShugMagoo1-Jul-05 13:48
ShugMagoo1-Jul-05 13:48 
GeneralRe: Web service returning a DataSet Pin
Guffa2-Jul-05 6:42
Guffa2-Jul-05 6:42 
Questionwhat do u mean by dynamic page??? Pin
Anonymous27-Jun-05 4:21
Anonymous27-Jun-05 4:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.