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 11 2027
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
getAllResponseH eaders
getResponseHead er
try {xmlhttp.setReq uestHeader("Con tent-type", "applicatio n/x-www-form-urlencoded;char set=UTF-8"); } catch(e) {} // Header
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/
Martin Honnen wrote: try {xmlhttp.setReq uestHeader("Con tent-type", "applicatio n/x-www-form-urlencoded;char set=UTF-8"); } catch(e) {} // Header 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.
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.setReq uestHeader("Con tent-type", "applicati on/x-www-form-urlencoded;char set=UTF-8"); } catch(e) {} // Header
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.
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*******@yaho o.de>
wrote:
Matt Kruse wrote:
Martin Honnen wrote:
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.
In other words, Opera lags behind once again.
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.
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********@mat tkruse.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)cybers pace.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 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/
On Fri, 22 Apr 2005 10:21:08 +0200, "Hallvord R. M. Steen"
<ha******@opera mail.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. 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 Unauthorized');
echo 'Text to send if user hits Cancel button';
exit;
} else {
|
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 error page displayed by IE (you know, the 'cannot find server or
dns error' page).
Turning off 'show friendly http error messages' alleviates this.
(Unfortunately this is the Windows default setting!)
Whats going on?!?!
|
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 as %09
The second and third times i print it out its fine.
I'm baffled, have deleted and rewrote the line, moved the order of the
|
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. Under what circumstances can
it be empty? Is there any way to know the origin of a request, for certain?
Thanks
Jake
| |
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 there any way to detect that the
request is queued?
I did some tests (see "Queued Requests" at
http://www.ajaxtoolbox.com/request/examples.php ) and it looks like
readyState 1 is fired immediately after the request is made, even though
it's not...
|
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 =
(int)HttpStatusCode.ServiceUnavailable;
I am lead to believe that there is the ability to specify the
"retry-after" parameter in the header, but I am unsure how to do it in
..Net2
|
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 the code:
<html>
<head>
<script language="javascript" type="text/javascript">
<!--
//Browser Support Code
function ajaxFunction(){
var ajaxRequest; // The variable that makes Ajax possible!
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 we have to send another system
|
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |