I am building a GreaseMonkey test script that makes a GM_xmlhttpRequest each time a specific site is visited. GM_xmlhttpRequest should only trigger on the first "document" found (the parent window) and it should ignore iframes and other child windows (I don't want the url for the iframes).
Some thoughts and possible solutions:
1) I tri...
I have a WebApp that I've been try to make work offline. The WebApp is too big, even minified, to simply use the application cache (things download but I eventually get a window.applicationCache error). I'm trying to use XMLHttpRequest to get the larger scripts and main html and keep them in localStorage and just keep a small loader scri...
Hi there,
I'm going to develop a firefox extension which makes an XMLHttpRequest to this WebService.
I can query the service correctly with the following code (from the overlay.js):
var req = "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:dat=\"http://webservice.whereisnow.com/datatypes\"><s...
I've got a web part that uses javascript heavily in the implementation of a UI. It also makes use of asynchronous XmlHttpRequest requests to some of the SharePoint web services (I'm using SPServices, btw).
For some requests, the user is confronted with NTLM authentication challenges, and after entering credentials, the request complete...
hello,
i am new to javascript and jQuery both... i am developing one page in which i have generated page's whole html from code...
in the page there in one textbox to Post Messages and for each message comments can be posted...
now when i post a new comment oor delete comment i need to do database call.
i knew 2 method to do it from js
...
Hi, I'm trying to login to a Google Account for request Picassa Web photos with AJAX. That's the code:
xmlhttp=new XMLHttpRequest();
xmlhttp.open("POST","https://www.google.com/accounts/Login",true);
xmlhttp.send("accountType=HOSTED_OR_GOOGLE&Email=...&Passwd=...&service=lh2&source=prova");
document.getElementById('prova').innerHTML=xml...
Hi,
what happens to my syn/asyn XMLHttpRequest (IE) when the page unload but the request is still on his way?
Is it meaningful to bind to the $(window).unload and call the .abort() method for my request object?
The problem is that in some cases the page loads and unloads very fast and in some cases the good old IE 6 freezes for at ...
A web-server is returning a status code and description in response to a request by an XmlHttp component. The actual status response from the server begins with:
HTTP/1.1 400 Not a valid http POST request
which i can see in though a Fiddler trace:
But when i ask the xmlHttp request for the status and statusText, it shows me the "st...
I have a server process that takes 15-80 seconds to complete that is currently being requested via XMLHttpRequest in the background with a progress bar displayed to the end user while the request waits for the response.
I have modified the response to send back chunks of data as they are available so that the client can display the avai...
When XMLHttpRequest gets error 0 it means there is no connection and most of the times you just want to retry in some time.
Is there a simple way to transparently retry the XMLHttpRequest notifying the user the connection is lost (just like gmail does)?
(I am using jQuery)
...
The following function works in IE but not in Chrome:
function doStuff() {
var request = new XMLHttpRequest();
request.open("POST", "http://twitter.com/statuses/update.json", true, "USERNAME-HERE", "PASSWORD-HERE");
request.send("status=STATUS UPDATE HERE");
}
Chrome generates the following request. Note the Authorization heade...
Hi All,
I am trying to call a .net webservice from HTML page. This HTML page will be hosted on a different server. I using the following html code for this. The webservice code is below HTML code. This code runs just fine in IE and runs fine in Mozilla when debugging with venkman. But fails in normal execution in Firefox. I dont get any...
I've tried these
request::is_ajax()
Request::instance()->is_ajax
To no avail. I've noticed in the request class there is a public property $is_ajax but I can't seem to be able to access the property.
What am I doing wrong?
UPDATE
I ended up getting it to work with Request::$is_ajax
...
I have built a CMS system using jQuery and PHP, it has worked consistently for multiple users across different platforms over the past year or so.
Today as I was presenting it to a potential customer over the phone he ran into a problem in Internet Explorer 8, for some reason he was not able to log in to the system so I created a dirt...
I'm using JavaScript to send textarea updates back to a server in real-time. My HTML page uses a single XMLHttpRequest object to POST data to the server asynchronously. The messages are sent potentially at every onKeyUp event, but because I only use a single XMLHttpRequest object I throttle the requests by only POSTing when the readySt...
Firstly, apologies if this is a duplicate. I've searched and looked at related questions but haven't found this question.
I'm debugging an AJAX problem in IE8. My throbber seems to spin forever, and on the on completion callback for my AJAX (jQuery's $.getJson()) it is meant to disappear. Of course, it works fine in Firefox / Safari. Ho...
Hi, I am currently doing an A level computing project, in which I need to parse XML and put the elements into an array. I am using JavaScript in Dreamweaver and the final application will be run in AIR. I am having a hard time understanding the code in this answer to another question: http://stackoverflow.com/questions/649614/xml-parsing...
Hi, I'm new to javascript/ajax and a bit stuck right now.
The assignment is to use only javascript/ajax.
I'm supposed to make a login-form, and when typing in the right password it will display a "secret message". Currently this message is an alert-box.
This is in the script for validating the form input:
var riktigPassord = 'password...
I index.html page that post data to page1.asp
page1.asp transform the data and Post it to Page2.asp with this function "PostTo"
Page2.asp is suppose to:
-write the data to data.txt with "WriteToFile"
Problem: WriteToFile function does not write any thing in the file when call from page2
But work when call from page1
Any suggestion?
Fu...
Hi, I want to write my own AJAX in ASP.NET, and not use the ASP.NET ScriptManager, etc.
WHY? I like doing stuff manually and knowing how stuff works from the inside, so I just want to do it for myself.
So my question is, after I make an AJAX call:
var ajaxCall = new XMLHttpRequest();
....
ajaxCall.send(null)
How can I, in C#, add i...