HTTP Request and opera 8

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

    #1

    HTTP Request and opera 8


    This [1]script not work with last Opera 8, but its work with Internet
    Explorer and Firefox, the HTTP Request yet not work fine on the Opera?

    [1]
    function sendmessage(url , querystrings)
    {
    xmlhttp = checkxml();
    if(xmlhttp)
    {
    xmlhttp.open("P OST", url ,true); // Method and URL destination
    try {xmlhttp.setReq uestHeader("Con tent-type",
    "applicatio n/x-www-form-urlencoded;char set=UTF-8"); } catch(e) {} // Header

    xmlhttp.onready statechange=fun ction() // New function that check the
    state of request
    {
    if(xmlhttp.read yState==4)
    {
    if(xmlhttp.stat us==200)
    {
    replymsg('reply msg', true);
    document.getEle mentById('messa ge').value = '';
    if (xmlhttp.respon seText==1)
    {
    alert("[{Your_message_w as_sended}]");
    }
    }
    if(xmlhttp.stat us==404) alert("[{Ops!_404_Not_F ound}]");
    }
    }

    xmlhttp.send(qu erystrings); // Transmits the request with querystrings
    }
    }

    --
    Marcos.
    http://www.linuxhard.org
  • Martin Honnen

    #2
    Re: HTTP Request and opera 8



    Marcos wrote:

    [color=blue]
    > This [1]script not work with last Opera 8, but its work with Internet
    > Explorer and Firefox, the HTTP Request yet not work fine on the Opera?[/color]

    Unfortunately Opera has now released Opera 8.00 with an implementation
    of XMLHttpRequest which lacks some of the properties and methods that
    MSXML (used by IE) and that XMLHttpRequest in Mozilla implement. Their
    whole engineering in regard to XMLHttpRequest seems to have been driven
    by the goal of implementing the properties and methods GMail uses.
    It seems the implemented properties and methods are

    readyState
    responseText
    responseXML
    status
    open
    send
    abort
    getAllResponseH eaders
    getResponseHead er

    [color=blue]
    > try {xmlhttp.setReq uestHeader("Con tent-type",
    > "applicatio n/x-www-form-urlencoded;char set=UTF-8"); } catch(e) {} // Header[/color]

    setRequestHeade r is not implemented in Opera 8.00 thus you cannot inform
    the server about the content type of the data you are POSTing with the
    send method.

    --

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

    Comment

    • Matt Kruse

      #3
      Re: HTTP Request and opera 8

      Martin Honnen wrote:[color=blue][color=green]
      >> try {xmlhttp.setReq uestHeader("Con tent-type",
      >> "applicatio n/x-www-form-urlencoded;char set=UTF-8"); } catch(e) {} //
      >> Header[/color]
      > setRequestHeade r is not implemented in Opera 8.00 thus you cannot
      > inform the server about the content type of the data you are POSTing
      > with the send method.[/color]

      In other words, Opera lags behind once again.

      Since very few people use Opera anyway (why not use Firefox instead?) I
      don't even care about supporting its quirks and random implementations of
      features other browsers have. If people choose to use a browser that lacks
      the capabilities of others, and the others are freely available for them to
      use, then IMO those users are _choosing_ to have a lesser web browsing
      experience, possibly with errors and non-functioning scripts.

      The same could easily be said for IE, but the reality is that IE is still
      the dominant browser, so it's not as easy to ignore as Opera is ;)

      --
      Matt Kruse



      Comment

      • Martin Honnen

        #4
        Re: HTTP Request and opera 8



        Matt Kruse wrote:
        [color=blue]
        > Martin Honnen wrote:
        >[color=green][color=darkred]
        >>> try {xmlhttp.setReq uestHeader("Con tent-type",
        >>>"applicati on/x-www-form-urlencoded;char set=UTF-8"); } catch(e) {} //
        >>>Header[/color]
        >>
        >>setRequestHea der is not implemented in Opera 8.00 thus you cannot
        >>inform the server about the content type of the data you are POSTing
        >>with the send method.[/color]
        >
        >
        > In other words, Opera lags behind once again.[/color]

        I am disappointed myself that Opera didn't care to provide a compatible
        implementation of XMLHttpRequest in the final release of 8.00 although
        they already had a partial implementation in those 7.60 preview and 8.00
        beta releases.
        As I have already said their only goal for XMLHttpRequest os far seems
        to be that GMail works with Opera 8.

        But you cannot say that they generally lag behind with features in Opera
        8, they have SVG tiny support (scalable vector graphics), they are the
        first browser to have DOM Level 3 Load and Save (only there is not much
        that gives you that Mozilla couldn't do with
        XMLHttpRequest/DOMParser/XMLSerializer), they have DOM Level 2 range and
        tree walker/traversal support.



        --

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

        Comment

        • Matt Kruse

          #5
          Re: HTTP Request and opera 8

          Martin Honnen wrote:[color=blue]
          > But you cannot say that they generally lag behind with features in
          > Opera 8, they have SVG tiny support (scalable vector graphics), they
          > are the first browser to have DOM Level 3 Load and Save (only there
          > is not much that gives you that Mozilla couldn't do with
          > XMLHttpRequest/DOMParser/XMLSerializer), they have DOM Level 2 range
          > and tree walker/traversal support.[/color]

          It seems that Opera often puts in "cool" new features, but ignores some key
          compatability features that make it a hit-and-miss browser for users.

          For example, way back when, Opera didn't even support new Option() at all,
          yet it was introducing new things like skins and gestures, etc.

          I was mostly ranting in my previous post (Opera's not that bad ;) but still,
          I often question their decision-making process for what new features get top
          priority.

          --
          Matt Kruse



          Comment

          • Jim Ley

            #6
            Re: HTTP Request and opera 8

            On Tue, 19 Apr 2005 17:51:10 +0200, Martin Honnen <mahotrash@yaho o.de>
            wrote:
            [color=blue]
            >
            >
            >Matt Kruse wrote:
            >[color=green]
            >> Martin Honnen wrote:
            >>[color=darkred]
            >>>> try {xmlhttp.setReq uestHeader("Con tent-type",
            >>>>"applicatio n/x-www-form-urlencoded;char set=UTF-8"); } catch(e) {} //
            >>>>Header
            >>>
            >>>setRequestHe ader is not implemented in Opera 8.00 thus you cannot
            >>>inform the server about the content type of the data you are POSTing
            >>>with the send method.[/color]
            >>
            >>
            >> In other words, Opera lags behind once again.[/color]
            >
            >I am disappointed myself that Opera didn't care to provide a compatible
            >implementati on of XMLHttpRequest in the final release of 8.00 although
            >they already had a partial implementation in those 7.60 preview and 8.00
            >beta releases.[/color]

            It's pretty disgusting in my opinion, Opera continously knock IE for
            their standards compatibility, and here they are not bothering to
            implement trivial parts of specifications they have standardised.

            Jim.

            Comment

            • Christopher Benson-Manica

              #7
              Re: HTTP Request and opera 8

              Matt Kruse <newsgroups@mat tkruse.com> spoke thus:
              [color=blue]
              > I was mostly ranting in my previous post (Opera's not that bad ;) but still,
              > I often question their decision-making process for what new features get top
              > priority.[/color]

              I love Opera, but I agree, some of these things are starting to get
              ridiculous. The main reason I continue to use Opera is mouse
              gestures; should a browser that *really* conforms to standards
              implement them, I'll switch.

              --
              Christopher Benson-Manica | I *should* know what I'm talking about - if I
              ataru(at)cybers pace.org | don't, I need to know. Flames welcome.

              Comment

              • kaeli

                #8
                Re: HTTP Request and opera 8

                In article <d43ngb$fva$1@c hessie.cirr.com >, ataru@nospam.cy berspace.org
                enlightened us with...[color=blue]
                > I love Opera, but I agree, some of these things are starting to get
                > ridiculous. The main reason I continue to use Opera is mouse
                > gestures; should a browser that *really* conforms to standards
                > implement them, I'll switch.
                >[/color]

                Like this?[color=blue]
                > https://addons.update.mozilla.org/ex...numpg=10&id=39[/color]

                --
                --
                ~kaeli~
                If a chicken and a half can lay an egg and a half in a day
                and a half, how long would it take for a monkey with a
                wooden leg to kick the dill seeds out of a pickle?



                Comment

                • Hallvord R. M. Steen

                  #9
                  Re: HTTP Request and opera 8

                  Martin Honnen wrote:[color=blue][color=green]
                  >> But you cannot say that they generally lag behind with features in
                  >> Opera 8, they have SVG tiny support (scalable vector graphics), they
                  >> are the first browser to have DOM Level 3 Load and Save[/color][/color]
                  <X>[color=blue][color=green]
                  >> they have DOM Level 2 range and tree walker/traversal support.[/color][/color]

                  Thanks for pointing that out, Martin :-)

                  Matt Kruse wrote:
                  [color=blue]
                  > It seems that Opera often puts in "cool" new features, but ignores some
                  > key compatability features that make it a hit-and-miss browser for users.
                  > For example, way back when, Opera didn't even support new Option() at
                  > all, yet it was introducing new things like skins and gestures, etc.[/color]

                  The missing bits in the implementation of XMLHttpRequest are regrettable,
                  it will be fixed and hopefully in the near future. Opera is also active in
                  the WHAT WG work (whatwg.org), which should improve cross-browser
                  compatibility in general. I think you're being more than a little unfair
                  when you bring up incompatibiliti es from "way back when" :-p and compare
                  DOM and UI improvements, which are very different things.
                  --
                  Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

                  Comment

                  • Jim Ley

                    #10
                    Re: HTTP Request and opera 8

                    On Fri, 22 Apr 2005 10:21:08 +0200, "Hallvord R. M. Steen"
                    <hallvors@opera mail.com> wrote:
                    [color=blue]
                    >The missing bits in the implementation of XMLHttpRequest are regrettable,[/color]

                    It's more than regrettable, it's the sort of intentional release of
                    incompatible APIs that we see from Microsoft, that Opera regularly
                    complain about. Howcome wrote for CNET
                    "how embarrassing it will be to release a browser that doesn't live up
                    to community standards "

                    Yet they fail in that very fact, are they embarrassed? Or are they
                    simply hypocrites?

                    You mention the WHAT-WG, and Opera being involved in it. the WHAT-WG
                    say this about the XML http request object "Do not implement this in a
                    production product" So they're completely ignoring their own
                    "standard".

                    I'm sorry, I don't think we should have any generosity towards Opera
                    here. They've shown that's not standards or compatibility they care
                    about, but making it work with GMail, and not giving two hoots about
                    every other use out there.

                    Jim.

                    Comment

                    • Richard Cornford

                      #11
                      Re: HTTP Request and opera 8

                      Hallvord R. M. Steen wrote:
                      <snip>[color=blue]
                      > Matt Kruse wrote:[/color]
                      <snip>[color=blue][color=green]
                      >> .. . For example, way back when, Opera didn't even support new
                      >> Option() at all, yet it was introducing new things like skins
                      >> and gestures, etc.[/color]
                      >
                      > The missing bits in the implementation of XMLHttpRequest are
                      > regrettable, it will be fixed and hopefully in the near future.[/color]

                      Should their absence have been allowed past QA in the first place? ;-)

                      <snip>[color=blue]
                      > ... . I think you're being more than a little unfair when
                      > you bring up incompatibiliti es from "way back when" :-p ...[/color]
                      <snip>

                      More disingenuous than unfair, as when Matt eventually admitted, in the
                      past, that his complaint related to Opera 5.02 a little testing revealed
                      that version fully and happily supporting the dynamic creation and
                      addition of OPTION elements to SELECT elements using - new Option() -.
                      Matt's problems with that browser actually stemmed form his trust in an
                      unreliable source of compatibility information (quirksmode.com ) and an
                      unwillingness, or inability, to analyse his problem to the point of
                      identifying its real cause (and so its solution).

                      Richard.


                      Comment

                      • Thomas 'PointedEars' Lahn

                        #12
                        Re: HTTP Request and opera 8

                        Christopher Benson-Manica wrote:
                        [color=blue]
                        > Matt Kruse <newsgroups@mat tkruse.com> spoke thus:[color=green]
                        >> I was mostly ranting in my previous post (Opera's not that bad ;) but
                        >> still, I often question their decision-making process for what new
                        >> features get top priority.[/color]
                        >
                        > I love Opera, but I agree, some of these things are starting to get
                        > ridiculous. The main reason I continue to use Opera is mouse
                        > gestures; should a browser that *really* conforms to standards
                        > implement them, I'll switch.[/color]

                        Alas, there is no UA that *really* conforms to (the latest) standards. The
                        nearest thing to that you can get other than Opera is Mozilla/5.0 Seamonkey
                        or Firefox for which the mouse gestures (Optimoz/MozGest) extension has
                        been available for a long time now :)


                        PointedEars, mouse-gesturing
                        --
                        Das eine oder andere Gute steckt schon im Menschen.
                        Ansonsten wären Organspenden ja völlig überflüssig.
                        -- Holger Kunadt in dag° <bbsm05$d07q1$1 @ID-41865.news.dfnc is.de>

                        Comment

                        Working...