JavaScript vs C# in AJAx

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bassem
    Contributor
    • Dec 2008
    • 344

    JavaScript vs C# in AJAx

    Hi,
    I'm new in AJAX, I knew that AJAX was built on JavaScript, XML, HTML, and CSS.
    I didn't deal with JavaScript before, I wonder if there is a way to impelement my methods using C# instead of JavaScript, they are so close, but if there is away to use C# it will progress my effort.
    Thanks,
    Bassem
  • Bassem
    Contributor
    • Dec 2008
    • 344

    #2
    I tried to read some in JavaScript. And I think that it is not close to C#, and now it gets more complicated.

    Comment

    • gits
      Recognized Expert Moderator Expert
      • May 2007
      • 5390

      #3
      the javascript-code that is needed for an ajax-application is executed at the client-side within the browser ... so you cannot use c# for this task ... the J in AJAX stands for JavaScript and it stands there for the mentioned reason ...

      kind regards

      Comment

      • Bassem
        Contributor
        • Dec 2008
        • 344

        #4
        I see that, thanks alot. So i've no way to learn JavaScript.
        Thanks,
        Bassem

        Comment

        • gits
          Recognized Expert Moderator Expert
          • May 2007
          • 5390

          #5
          :) why not? ... it is quite easy to learn javascript ... but it is more tricky to use it the smart way in practical projects :) ... but without javascript a website is quite simple and cannot use state of the art AJAX-(JavaScript)-techniques. but as you may see when having a look at the GWT you don't need to know JavaScript since you just write Java-Code that is translated to the needed JavaScript code then. i'm not aware of anything that might do this with c# but that doesn't mean that there is no toolkit like the GWT for that ... it is just because i try to regret using any MS things :) ... but may be the .NET-bunch of things has something similar to the GWT?

          kind regards

          Comment

          • Frinavale
            Recognized Expert Expert
            • Oct 2006
            • 9749

            #6
            Originally posted by Bassem
            I'm new in AJAX, I knew that AJAX was built on JavaScript, XML, HTML, and CSS.
            I didn't deal with JavaScript before, I wonder if there is a way to impelement my methods using C# instead of JavaScript,
            You can use C# to dynamically generate JavaScript, Ajax, CSS etc...
            But you cannot implement JavaScript with the C# language ;)
            They are totally different languages used in totally different environments.
            C# is used on the Server with the .NET Framework behind it
            JavaScript and Ajax are used in the web browser, client side in it's own world.

            Originally posted by Bassem
            they are so close, but if there is away to use C# it will progress my effort.
            Thanks,
            Bassem
            The are not close at all....check out my day of learning about Objects in JavaScript

            Originally posted by Bassem
            I see that, thanks alot. So i've no way to learn JavaScript.
            Thanks,
            Bassem
            Oh trust me there is a way............ ...
            Just try implementing an Ajax enabled Server Control some day.
            You'll learn very quickly, trust me.

            ;) ;) ;)

            Comment

            • Frinavale
              Recognized Expert Expert
              • Oct 2006
              • 9749

              #7
              Originally posted by gits
              :) why not? ... it is quite easy to learn javascript ... but it is more tricky to use it the smart way in practical projects :) ... but without javascript a website is quite simple and cannot use state of the art AJAX-(JavaScript)-techniques. but as you may see when having a look at the GWT you don't need to know JavaScript since you just write Java-Code that is translated to the needed JavaScript code then. i'm not aware of anything that might do this with c# but that doesn't mean that there is no toolkit like the GWT for that ... it is just because i try to regret using any MS things :) ... but may be the .NET-bunch of things has something similar to the GWT?

              kind regards
              What is GWT?
              I might be able to answer this question if I knew what GWT is.

              Comment

              • gits
                Recognized Expert Moderator Expert
                • May 2007
                • 5390

                #8
                hi ... have a look here ;)

                kind regards

                Comment

                • Bassem
                  Contributor
                  • Dec 2008
                  • 344

                  #9
                  Thanks gits and frinny for your help, I'm moving forward now.
                  Thanks a lot,
                  Bassem

                  Comment

                  Working...