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("POST", url ,true); // Method and URL destination
try {xmlhttp.setRequestHeader("Content-type",
"application/x-www-form-urlencoded;charset=UTF-8"); } catch(e) {} // Header
xmlhttp.onreadystatechange=function() // New function that check the
state of request
{
if(xmlhttp.readyState==4)
{
if(xmlhttp.status==200)
{
replymsg('replymsg', true);
document.getElementById('message').value = '';
if (xmlhttp.responseText==1)
{
alert("[{Your_message_was_sended}]");
}
}
if(xmlhttp.status==404) alert("[{Ops!_404_Not_Found}]");
}
}
xmlhttp.send(querystrings); // Transmits the request with querystrings
}
}
--
Marcos. http://www.linuxhard.org 11 1986
Marcos wrote: 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?
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
getAllResponseHeaders
getResponseHeader
try {xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded;charset=UTF-8"); } catch(e) {} // Header
setRequestHeader 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/
Martin Honnen wrote: try {xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded;charset=UTF-8"); } catch(e) {} // Header setRequestHeader 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.
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 http://www.JavascriptToolbox.com
Matt Kruse wrote: Martin Honnen wrote:
try {xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded;charset=UTF-8"); } catch(e) {} // Header
setRequestHeader 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.
In other words, Opera lags behind once again.
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/
Martin Honnen wrote: 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.
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 http://www.JavascriptToolbox.com
On Tue, 19 Apr 2005 17:51:10 +0200, Martin Honnen <ma*******@yahoo.de>
wrote:
Matt Kruse wrote:
Martin Honnen wrote:
try {xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded;charset=UTF-8"); } catch(e) {} // Header
setRequestHeader 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.
In other words, Opera lags behind once again.
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.
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.
Matt Kruse <ne********@mattkruse.com> spoke thus: 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.
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)cyberspace.org | don't, I need to know. Flames welcome.
Martin Honnen wrote: 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
<X> they have DOM Level 2 range and tree walker/traversal support.
Thanks for pointing that out, Martin :-)
Matt Kruse wrote:
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.
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 incompatibilities 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/
On Fri, 22 Apr 2005 10:21:08 +0200, "Hallvord R. M. Steen"
<ha******@operamail.com> wrote: The missing bits in the implementation of XMLHttpRequest are regrettable,
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.
Hallvord R. M. Steen wrote:
<snip> Matt Kruse wrote:
<snip> .. . 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.
The missing bits in the implementation of XMLHttpRequest are regrettable, it will be fixed and hopefully in the near future.
Should their absence have been allowed past QA in the first place? ;-)
<snip> ... . I think you're being more than a little unfair when you bring up incompatibilities from "way back when" :-p ...
<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.
Christopher Benson-Manica wrote: Matt Kruse <ne********@mattkruse.com> spoke thus: 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.
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.
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° <bb************@ID-41865.news.dfncis.de> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Sparkplug |
last post by:
I have used the simple example of HTTP Authentication from the PHP website
as follows:
<?php
if (!isset($_SERVER)) {
header('WWW-Authenticate: Basic realm="My Realm"');
header('HTTP/1.0 401...
|
by: Paul |
last post by:
I thought this is more of an IE issue but i've had no joy on that group
perhaps somebody here will have a clue.
If i click a link to a web page embedded in Excel (97 OR 2000) i get the
standard...
|
by: mike |
last post by:
regards:
Does each HTTP Request have "Referer:" header?
Any positive suggestion is welcome.
thank you
May goodness be with you all
|
by: Chris |
last post by:
Hey
I'm getting odd varying results, when i Response.Write(Request.RawUrl)
within a hidden input field.
The first time the output has something that looks like a tab in it, Opera
treads this...
|
by: Jake |
last post by:
I need to know whether a request for a resource on our web server is coming
from a particular affiliate domain or from another domain. In my testing,
the HTTP_REFERER variable sometimes is empty....
| |
by: Alex D. |
last post by:
does anybody knos the string for the Opera browser to do something similar
to :
this.Request.Browser.IsBrowser("IE").
Thanks,
Alex.
|
by: Matt Kruse |
last post by:
According to HTTP/1.1 specs, a client should only have two connections open
to the host at a time (which can be changed by browser users, of course).
When using xmlHttpRequest connections, is...
|
by: Flip Rayner |
last post by:
I am writing an HTTPHandler that is basically a transparent proxy / URL
Mapper.
I have a line in my code to return a 503:
context.context.Response.StatusCode = ...
|
by: injia |
last post by:
I have my server request working but it will only make the request once. onclick calls the ajax function but only once. when i change entires in the form and hit the button nothing happens
Here is...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |