Hello,
I am getting validation errors such as: "No processing instruction starts with 'xml...." when I try to validate my code before I put it into the 3rd party app I'm using. How do I send a soap message with Javasript that is embedded on an XSL page without getting this error ? Here is the code in question:
<script language="javascr...
Hi : )
when I Implemented chatting Function ,I used java Script to Send Data Between File To another .
but I Faced some problem with it .
Code :
lastReceived=0;
var xmlhttp;
// Sign in and Out
function signInOut(){
// Sign in
if (signInForm.signInButt.name=="signIn"){
data="user=" + signInForm.userName.value +"&oper=signin"
Requst...
Im trying to make an extension to Safari that authenticates with http://myphotodiary.com's API. And it works well, for all passwords that dont include special characters like:
å,ä,ö and space
I have the following code working now:
var xmlHttp = new XMLHttpRequest();
var url = "https://api.myphotodiary.com/user_status.json?api_ke...
Hi,
I am learning AJAX and I wanna know the difference between the request.status and request.statusCode functions.
for example:
document.getElementById('erroDv').innerHTML = request.status;
document.getElementById('erroDv').innerHTML = request.statusCode;
Thanks in advance!
Dwarak
...
Javascript:
var req=xmlDoc.responseXML.selectSingleNode("//title");
alert(req.text);
as expected, returns the text of the first "title" node.
but this
var req=xmlDoc.responseXML.selectNodes("//title");
alert(req.text);
returns "undefined." The following:
var req=xmlDoc.responseXML.selectNodes("//title").length;
alert(req);
ret...
I have one server located at example.com running apache, serving my static html files.
I also have a json service located at api.example.com running python with cherrypy.
The user requests example.com and get the index html page. On that page I make an ajax request with jquery to the json service. document.domain returns example.com
...
Here is my situation:
I have a Webserver machine, Client machine, and a third machine running some program that listens for XMLHttpRequests.
Client accesses the Webserver from the Client machine, makes some changes, and then clicks on'Save'. At this point, data is being sent back to the Webserver and to the Third machine. All of this i...
Hi there everyone,
I've got a problem with a web application, a rich internet application in fact, in which every component resides on a secure https connection.
Common content are: html files, images, js files and the like, all are on and retrieved from https connections.
A single part of the application (when a tab action gets execu...
I'm trying to build a basic chat site and have four files: chat.html, scripts.html, load.php, and send.php.
Here they are:
chat.html:
<html>
<head>
<title>Josh's Python Chat Website</title>
<script type="text/javascript" src="chatscripts.js">
</script>
</head>
<body>
<div id="divUsernam...
I have an ASP.NET application which uses XMLHTTPRequest to call a server side method when the user closes the browser(the requirement is I need to send a email when the user closes the browser). The code works perfectly when I have an Javascript alert. But it doesnt work when I remove the alert button. I read another article in StackOver...
I would like to understand the low level details of how XMLHttpRequest works in Javascript, however I have not had any luck finding the implementation code within either the Rhino or V8 code. I'm not familiar with the code in either projects, so I may not be looking in the right spots.
Is there an available open-source implementation a...
So I have a bit of a problem. When I ask MooTools to send a request it comes back as failed every time. I can't seem to diagnose the problem either because if I try to get the returned header info the console just gives me "Refused to get unsafe header 'Status'" Message. The only thing I can think of is that the server isn't letting me a...
I am new to javascript and wrote a simple extension to parse the gmail atom feed and display the number of unread emails.
My problem is if for some reason you're not logged into your google account, the extension attempts to check the feed and Safari will display a login box like this.
And since I check every 10 seconds these prompts...
I'm writing a script that makes an AJAX request at regular intervals. The request loads a remote page and pulls some numbers from it. The page is public, so the script does the equivalent of refreshing the page every few minutes.
It's possible (although unlikely) that this script will be used by hundreds (maybe thousands) of users if I ...
Is there a nice and tested piece of code out there that I can use for this purpose:
get the user/pass and the address of a web service (asmx page) and check if the user/pass are valid or not.
I think I should use HTTPRequest,etc to do that but I do not have a good knowledge on that topic , causing my current method to not working prope...
Hi all,
Is there a way in any browser to find out who (which piece of code) actually sent an Ajax request? What I mean: in firebug one can monitor network activity (in the Net tab) but there is no way of guessing where the request was initiated from.
Does anybody know firefox/firebug extensions or maybe other browser's extensions to sh...
I am new to javascript but wanted to write a Safari extension to display the badge count of the unread emails in a gmail account. When the user clicks the button it goes to gmail. I got it working and its quite handy. The only thing I can't figure out is how (when the user is not logged into gmail) to suppress my XMLHttpRequest from caus...
Current Project Setup
I'm prototyping an online chat system similar to Facebook chat, using PHP, AJAX, a lot of jQuery, and a MySQL database. I'm developing on an Apache Server 2.2.14 (all local... working on a MacBook Pro 10.6.4).
The way I listen for incoming chats and check for new messages in an existing chat is by doing:
setTime...
I have the following bog standard jQuery ajax request. I've been trying to induce an error state by disconnecting my computer from the network mid-request (the server takes 10 seconds to reply so this is simple).
When I disconnect alert('Success: '+ json); is called, with null for the response json. I would expect the error part to be ...
I'm running into a strange problem. In the following sample code, if I set asynchronous to true the request fails and Chrome tells me 'failed to load resource'. However, if I switch it to synchronous it goes through fine.
Additionally, if I do multiple xhr requests using this code and its set to async, all requests exhibit the same prob...