I know that browsers do support XML with DOM approach
I have an application that uses GWT and it uploads file at the server,
when the uploading completes, i need the server to respond back to the client with a Bean since this is a file upload, the response is handled by a servlet.
I am able to read a string at the client by reading the...
Hi guys,
i have to use XMLhttpRequest to send the message that one user posted in another memebers profile without postback and for that i usually make a ASP.net webpage that is called by the XML http and does the server side work.
So i want to know if there is any differnce between using a regualr ASP.net page and a web service in thi...
How do ajax know whether it failed or succeeded if server side doesn't echo anything back?
$.ajax(error:..,success:..)
I met with this exception in my test:
uncaught exception: [Exception...
"Component returned failure code:
0x80040111 (NS_ERROR_NOT_AVAILABLE)
[nsIXMLHttpRequest.statusText]"
nsresult: "0x80040111
(NS_ERR...
I don't have much experience with servlets and I've been going around in circles search for an answer to my issue. So it' time to get the experts answers! :)
Overview: I need to get Javascript to call my servlet and return data to update the value on a form.
I have a java servlet running in Glassfish V2.1 called DBGet, the purpose of ...
I am unable to determine which form submit button is clicked during an Ajax Form POST in ASP.NET MVC. I have a form that basically looks like:
<% using (Ajax.BeginForm("Edit",
new { code = Model.Code },
new AjaxOptions() {
UpdateTargetId = "re...
I'm working on a FireFox extension that uses XMLHttpRequest to grab data from a remote server.
The javascript code is as follows:
function _PostBackObject(data) {
var postBack = new XMLHttpRequest();
postBack.onreadystatechange =
function(){
if (postBack.readyState == 4) {
if (postBack.status...
I have the user entering a post-number in a form-field, and then I want to display the town with that post-number.
I have the server-side function set up, it takes a variable from the URL and returns a plain string.
As I see it, I need to get the variable from the form-field afterthe user has written it and the focus has left the form-...
Hello,
Can anyone help me with this IE8 problem, my app is work fine in FF
but Ajax Functionality is not working in IE8
function createXMLHttpRequest()
{
if (window.XMLHttpRequest)
{
// code for IE7+, Firefox, Chrome, Opera, Safari
return new XMLHttpRequest();
}
if (window.ActiveXObject)
{
// code for IE6, IE5
...
I'm working on a CakePHP application, running on IIS, using jQuery to handle AJAX requests.
(As per usual) everything is working fine in Firefox, but in Internet Explorer (7, at least) my AJAX pagination links fail. I click the link and get this message:
This page is accessing information that is not under its control. This poses a ...
i have jquery global error event set, like following:
$("#message_alert").ajaxError(function(event, XMLHttpRequest, settings, thrownError){
ajax_error(XMLHttpRequest);
});
and ajax_error method gets the XMLHttpRequest parameter totally fine init. now the request which XMLHttpRequest gets, it also have json data from the backend in...
This code only works when async is set to false, why?
var contact =
{
XMLHttp : null,
XMLDoc : null,
TXTDoc : null,
getData : function(dataSource)
{
contact.XMLHttp = new XMLHttpRequest();
contact.XMLHttp.open("GET", dataSource, false);
contact.XMLHttp.onreadystatechange = contact.storeData;
contact.XMLHttp.send(null);
}...
How can I add a timeout to the following script...
I want it to display text like "Timed Out"
var bustcachevar=1 //bust potential caching of external pages after initial request? (1=yes, 0=no)
var loadedobjects=""
var rootdomain="http://"+window.location.hostname
var bustcacheparameter=""
function ajaxpage(url, containerid){
var page_r...
Hi,
I hope this question (or one similar) hasn't been asked before. Sincere apologies if it has.
From an XMLHttpRequest I'm receiving an XML file like the one shown below:
<?xml version="1.0"?>
<projects>
<project>
<department>Engineering</department>
<primary>TNT</primary>
<secondary>Lighting</secondary>
<name>Project Ipsum<...
hi, my code lists items from an rss feed onto an html page. although, the java script is a little finicky. it won't read some xml feeds, usually the feeds containing list items over 25. I just need another set of eyes to take a look at the code and tell me if i'm missing something obvious.
.js file---------------------------------------...
Hi guys. Thanks in advance for any help received.
I want to allow our client to enter a URL into a text field which then checks whether the URL exists and works.
There are 3 possible outcomes I want to check for:
A status of 200 - OK,
A status of 500 - Server Error,
Or a status of 404 - page not found.
When executing the following cod...
Hi guys,
i have a case where when the user closes the browser window i have to set an Application Object to null...and for this i will use the JavaScript onbeforeUnload to do the server side work...
so i wanted to know which is better XMLHTTP or an ajax PageMethod...which is faster..??
i have used both and found that pagemethods requi...
Hi,
Im trying to parse a HTML result of **XmlHttpRequest** in Firefox. Im expecting to receive the HTML result from XmlHttpRequests *responseText* but when Im calling an alert(responseText) nothing is displayed.
Ive followed the example from http://stackoverflow.com/questions/888875/how-to-parse-html-from-javascript-in-firefox but tha...
Hello,
I created a html/javascript website running on an Apache Webserver on Mac OS X. This website consumes a .NET Webservice with JSON via XmlHttpRequest. This Webservice is running on a Windows Vista machine.
The website is accessible with this url: http://macintosh.companyname.local/~username/Sitename/index.html.
When I open the we...
According to the doc, the 'error' ajax event gets passed the XMLHttpRequest object, 'success' does not.
http://docs.jquery.com/Ajax/jQuery.ajax
That's a shame, because I would like to be able to access the HTTP status code in success. I am doing so successfully with error.
error: function(data){
alert(data.status)
}
Any leads would...
my js file calls uses an xmlHttpRequest to display an rss feed. when i reference the java script within my html page, my browser renders an error: Permission denied. and therefore, my script is being blocked. i am not allowed to change the security settings and would i'd appreciate any work around tips. thanks!
...