XMLHTTPRequest

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Marcos

    #1

    XMLHTTPRequest

    Hi,

    I'd like of to use the XMLHTTPRequest with POST method, all navigators the
    support this?

    --

    Thanks,

    Marcos José Setim
    _______________ _______________ __________
    Usando o M2 do Opera: http://www.opera.com/m2/
  • web.dev

    #2
    Re: XMLHTTPRequest

    Hi Marcos,

    Yes, all the latest browsers support XMLHttpRequest. But how you go
    about creating an XMLHttpRequest object is a different matter.

    Comment

    • Richard Cornford

      #3
      Re: XMLHTTPRequest

      web.dev wrote:[color=blue]
      > Yes, all the latest browsers support XMLHttpRequest.[/color]
      <snip>

      All? That seems unlikely, especially where PDA and embedded browsers are
      concerned.

      Richard.


      Comment

      • Martin Honnen

        #4
        Re: XMLHTTPRequest


        Marcos wrote:
        [color=blue]
        > I'd like of to use the XMLHTTPRequest with POST method, all navigators
        > the support this?[/color]

        IE 5 (and later) on Windows have Microsoft.XMLHT TP which can do POST
        requests and allows to set HTTP request headers, Mozilla since 1.0 has
        XMLHttpRequest and allows the same, Opera since 8.00 has XMLHttpRequest
        support but only since 8.01 supports setting HTTP request headers.
        Safari 1.2 and later also supports XMLHttpRequest.


        --

        Martin Honnen
        http://JavaScript.FAQTs.com/

        Comment

        • Richard Cornford

          #5
          Re: XMLHTTPRequest

          Martin Honnen wrote:[color=blue][color=green]
          >> I'd like of to use the XMLHTTPRequest with POST
          >> method, all navigators the support this?[/color]
          >
          > IE 5 (and later) on Windows have Microsoft.XMLHT TP which
          > can do POST requests and allows to set HTTP request headers,
          > Mozilla since 1.0 has XMLHttpRequest and allows the same,
          > Opera since 8.00 has XMLHttpRequest support but only since
          > 8.01 supports setting HTTP request headers. Safari 1.2 and
          > later also supports XMLHttpRequest.[/color]

          For completeness, it might be worth mentioning that ICESoft Technologies
          Inc sent me a press release earlier in the week that implies that
          IceBrowser 6 now has an xml http request facility. Though they did not
          go into any details (just threw buzzwords like AJAX about and trumpeted
          support for it), and particularly they did not say if it would be using
          the browser's native ActiveXObject constructor (in the IE style) or
          whether they had added a Mozilla style XMLHttpRequest constructor (or
          both).

          With Safari development feeding back into Konqueror, it should not be
          long before that browser also provides the facility.

          Richard.


          Comment

          • Martin Honnen

            #6
            Re: XMLHTTPRequest



            Richard Cornford wrote:
            [color=blue]
            > With Safari development feeding back into Konqueror, it should not be
            > long before that browser also provides the facility.[/color]

            I think that has already happened, only I don't know the exact version.
            The Sarissa home page
            <http://sarissa.sourcef orge.net/doc/>
            says Konqueror in KDE 3.3+ has XMLHttpRequest support.

            --

            Martin Honnen
            http://JavaScript.FAQTs.com/

            Comment

            • Marcos

              #7
              Re: XMLHTTPRequest

              Hi,

              Thanks for the answers.
              [color=blue]
              > Opera since 8.00 has XMLHttpRequest support but only since 8.01 supports
              > setting HTTP request headers.[/color]

              This is my problem. Some months ago I had problems with Opera and setting
              HTTP request headers. I believe that it would have to be version 8.0

              Comment

              • Martin Honnen

                #8
                Re: XMLHTTPRequest



                Marcos wrote:
                [color=blue][color=green]
                >> Opera since 8.00 has XMLHttpRequest support but only since 8.01
                >> supports setting HTTP request headers.[/color]
                >
                >
                > This is my problem. Some months ago I had problems with Opera and
                > setting HTTP request headers. I believe that it would have to be
                > version 8.0[/color]

                Unfortunately there is nothing you can do about that besides getting
                your Opera users to upgrade to the latest release 8.01. Somehow Opera's
                initial quality assurance for XMLHttpRequest seems to have been that
                GMail works.

                --

                Martin Honnen
                http://JavaScript.FAQTs.com/

                Comment

                • Matt Kruse

                  #9
                  Re: XMLHTTPRequest

                  Marcos wrote:[color=blue][color=green]
                  >> Opera since 8.00 has XMLHttpRequest support but only since 8.01
                  >> supports setting HTTP request headers.[/color]
                  > This is my problem. Some months ago I had problems with Opera and
                  > setting HTTP request headers. I believe that it would have to be
                  > version 8.0[/color]

                  Do you _need_ to set the header?

                  It depends on the server-side app. I can submit POST requests just fine with
                  Opera 8.00 without setting the content-type header.

                  See the "Form Submittal" example at


                  --
                  Matt Kruse




                  Comment

                  • Marcos

                    #10
                    Re: XMLHTTPRequest

                    > See the "Form Submittal" example at[color=blue]
                    > http://www.ajaxtoolbox.com/request/examples.php[/color]

                    Thanks.

                    I will go to study this code, very good this site :o), goes to my bookmark.

                    One question that I have and e if the staff will be able to clarify me, I
                    would be grateful.

                    I work much with this code:

                    ....

                    xmlhttp.onready statechange=fun ction() {
                    if (xmlhttp.readyS tate==4) {
                    var result = xmlhttp.respons eText;
                    }
                    }

                    ....

                    I understand it almost all, but less this part. I don't understant the use
                    of =function(){}.. .

                    And I try use the return to take the result the respondeText, without
                    sucess...

                    Thanks to all for the patience.

                    Comment

                    Working...