I have a piece of Javascript code that uses an XHR to POST data to a URL, but it uses FormData, which is not supported in earlier versions of Chrome. This is very handy, but I want it to be backwards-compatible, so what is the best way to rewrite the makeFormData method to return the data ready to send?
The offending code is here:
http...
I am trying to submit an xhr using phonegap on the blackberry. Currently when I make the request it fails silently. I have tried using jQuery jQuery.getJSON(url , callback),
an xhr object
var xmlhttp = new XMLHttpRequest();
//callback function when XMLHttpRequest is ready
xmlhttp.onreadystatechange=function(){
if(xmlhttp.readySt...
Let's say I have a simple POJO class:
public void Foo {
public int a;
public int b;
public Foo() {
a = 0;
b = 1;
}
}
Is there some library in JAVA which will give me XML like this:
<List>
<a value='0'/>
<b value='1'/>
</List>
I have a XHR service but I have to manually "dump" each member to ...
I've written a bunch of xhr stuff over the years, but today I ran into a curious thing. In firefox with firebug every time my server responds, I get a syntax error in the console. And the error context is the message response text.
The message response text is a string of numbers separated by pipes "|".
Sure it's not valid xml, but I've ...
I have a JQUERY file upload plug-in which allows users to upload files to the Coldfusion server. The plugin submits the files to the server in a way that requires me to use GetHttpRequestData() for the files contents. Here's what I have so far in terms of handling the file data:
<cfparam name="URL.qqfile" type="string">
<cfset x = GetHt...
Any idea why CFFILE Write does not support making it unique but CFFile Upload does?
I'm using CFFILE Write to handle a GetHttpRequestData, and being able to support making it unique would be very helpful. Any ideas?
...
Hi,
I'm trying out the new XMLHTTPRequestUpload feature to upload some files to a php script, it mostly works fine, the upload starts, I get the finish response etc - but the progress doesn't seem to work.
Looking that the event.loaded value - In firefox I seem to get a random value between 0 and the file size; in Chrome (where I'm mos...
I've built out a fairly complex Rails (2.3.8) app with a lot of jQuery ajax requests. There is an occasional bug, which I have difficultly replicating, where a jQuery $.ajax({..}) request will request a page it shouldn't (like the dash page, which is never called with an ajax request)...
What ensures is absolutely madness. Incredibly st...
I've never really had to return javascript from an XHR request. In the times I've needed to apply behaviour to dynamically loaded content I could always do it within my script making the call.
Could someone provide actual real world cases just so I'm aware, of when you'd actually need to do this ( not for convenience ), or some reasons ...
This one works Ok.
curl -H 'Content-Type: application/xml' -d " <body rid='2965554435' xmlns='http://jabber.o=utf-8' ver='1.6' xmpp:version='1.0' xmlns:xmpp='urn:xmpp:xbosh' /> " https://dashboard.onsip.com/http-bind
this one was returning an empty response
curl -H 'Content-Type: application/xml' -d " <body rid='2965554435' xmlns='...
Everything works perfect in Firefox and Chrome but except in IE8 (8.0.6001.18702)
This is the test code (Jquery 1.4.2) (same problem with $.post):
$(function() {
$.get("http://domain2.tld/some.php", {}, function(response) {
alert(response);
});
});
This code is executed in domain1.tld and it is loaded from domain2.tld, t...
Hi,
I am working on a page that concurrently calls 3 (or more) of the same jscript function. I am using a function that is tested and works with multiple concurrent ajax requests (found on the web, it works because I am now facing this new problem).
The html is just this
<div id="1"> <script> ajax2(); </script> </div>
<div id="2"> ...
Does anyone have an example of how Coldfusion's GetHttpRequestData() works? I'm looking to use this func to save data from the AJAX Upload script: http://valums.com/ajax-upload/
The script works in FireFox but not Safari, Chrome, etc...
Ideas?
...
Hi guys,
I have a very strange problem with JQuery $.post()
I have implemented it in my new web application and get messed response from QA after testing, some say it is working perfectly and some say it is not working;
It generate no error and no warning,,, but i am very upset i have almost compeleted the application and it is impossibl...
I have given the permission in manifest file, though when I try to make XHR to https://wh2.sibers.com I am just getting a xhr.readystate = 4, xhr.status = 0;
I can do XHR request just fine from the console(under the wh2.sibers.com page of course). Anybody has a broader knowledge in this things please show me the direction, thanks
...
Hello All,
I am using Apache Tomcat 6.0 as my development server.
The problem that i am facing is that my application works very well on my development environment, but when i move it to staging the XHR is always picked up from cache except for the first time. I verified this using HTTP Watch and fiddler.
Can someone Please help me in ...
I am using the newest version of Selenium RC and firefox 3.5 When I run my test from eclipse I get this error XHR ERROR: Response_Code = -1 Error_Message = Request Error.
Firefox and Selenium RC open up fine, it seems to try to connect to the remote site I want, but then firefox crashes, any ideas?
...
I am developing a FireFox extension
when I do xhr to the Secure server , particularly POST a data
it gives a status 500, and following mesage:
onsip.highrisehq.com : server does not
support RFC 5746, see CVE-2009-3555
How can I by pass by It? I assume that this is because of the Server misconfiguration, but I can't wait till so...
Is there any way to suppress the spinners and "transferring data" indicators that browsers show when a web page is loading?
I'm loading a document into a hidden iframe that will take a long time (10's of minutes). I don't want/need the user to be aware of this - it's just confusing to them to have the page look like it's still loading....
I really don't understand why I get a different response from xhrPost with Dojo. For IE8 it works fine and the XML can be read - but in Firefox it works differently and there is no such attribute as "serverResponse.results[0].xml" - see below:
var serverResponse = dojo.xhrPost(xhrArgs);
serverResponse.results[0].xml
like you get in I...