AJAX :: Intermittent Communication Failures

Jan 29, 2011

I have a web app with a game and chat updating with ajax very frequently sending thousands of XHR requests to the server during a user's session. The problem is that most clients experience intermittent connection failures or timeouts. On the server it appears to be fine, all requests are logged to have completed successfully and on time but the client gets either a communication failure or a timeout. This makes the user feel like the game or chat just got stuck.

I use YUI for making the XHR calls but I replaced that with jQuery with exact same results. I make sure that only one query is active at a time, so I am sure that I am not hitting the max 2 connections problem. The failure rate may be 1 in 200 hundred requests or something but it seems that when a client has a failure then it fails at a higher rate, say 1 in 10 until the problem goes away. I have clients send back an error request when such errors happen in order to track the problem. I have tried various things to try to figure out what is wrong but I have not found anything. I don't think that it's the client's connection as it happens to a sizable portion of my users, it doesn't look like it's the server either.

So what I am wondering is whether this failure rate is common or expected when doing heavy ajax staff and I need to find a way to work around it or this must be a problem in my system that I need to figure out. If the latter any pointers where to look at?

View 3 Replies


ADVERTISEMENT

Ajax :: LightBox Intermittent Image Distorted

Nov 26, 2010

Click on the first image. then navigate through the ligthbox using 'Next' button.Sometimes the images appears distorted.Is is due to the Lightbox ajax rendering of the images?

View 2 Replies View Related

LightBox Intermittent Not Load Images In Firebox?

Nov 26, 2010

Following is my url.

[URL]

Click on the first image and you will be navigated through the Photo Gallery using the <Next> button

The images sometimes are not loading in LightBox after a while when using firefox. Has it got to do with the LightBox Ajax ?

View 1 Replies View Related

JQuery :: Refresh List (getJSON And SetTimeout) Without Intermittent Effect?

Feb 27, 2010

I'm creating a list of online users. the problem is that when I refresh the list with setTimeout, the list of users disappears for less then a second and then reappear. I this because this is the time to get data from the server

[Code]...

View 4 Replies View Related

Fixing Communication Between JS And PHP?

Jul 28, 2011

I need to fix the communication between the JS located in this page and the PHP form script. When the form is submitted I want the page to automatically update which is already present in the script, thanking the user for the submission. Since the PHP script was changed that communication is broken and I hope to get it communicating once again.

View 2 Replies View Related

PHP & JavaScript Communication

Feb 24, 2006

Let's say I want Javascript to call PhpScript.php?Somevar=Somevalue and display the info. How do I get the php returned data in a Javascript var.

View 4 Replies View Related

Applet - Javascipt Communication.

Jul 20, 2005

How can I inform a Javascipt, that must submit my Applet's data, that this same Applet has produced the data in question? Or in other words, is there any way to call a JavaScript junction within the Applet? Is it the best way? What do you suggest?

View 1 Replies View Related

Building An App For Online Communication?

Jul 8, 2009

I am very new to web development. I would like my website to have an application which allows a user to draw images which can be displayed on other users screens in real time.

An example of this is isketch.net Also on this site i would like users to be able to create accounts and join 'rooms' where they can communicate in real time (as opposed a forum message board). I am looking for something similar to isketch.net

Could somebody please tell me the type of development and programming needed. I have been quoted 1000 a month to build these capabilities but have no idea what is involved. (also may require facebook style real-time updating)

View 4 Replies View Related

How To Do Serial Port Communication

Aug 31, 2010

How to do serial port communication using Javascript?

View 2 Replies View Related

Window Communication With A Popup?

Apr 13, 2010

I am new to Javascript and am trying out window communication with a popup.In the main window it opens up a popup window with a button click. The popup window is trying to grab text from the main window and put it in it's (the popup's) window. I guess it needs a test to see if the window is ready??Here's the code:

<html>
<head>
<title>Main</title>[code].....

View 2 Replies View Related

Server Communication Without Page Reload?

Jul 23, 2005

I'm trying to find a way to have a script communicate with a server
without having to load a new page. The idea is to have the server act
as a simple wrapper for a database, letting the client do that icky UI
stuff.

I tried the obvious, putting a frame somewhere it doesn't insult the
eye, changing its location, then accessing the new content via DOM.
What I get from IE (6) for my pains is just a rude "permission
denied". This even though I entered "localhost" as a trusted site in
IE's security setting. What's amiss?

View 3 Replies View Related

Communication Between Java Applet And Javascript

Jul 20, 2005

let's me explains my long problem:

I'm doing an intranet with a media part. So im must be able to upload files on
a ftp server AND have a record of informations about this file and meta date in
a MySQL database, shown in a php page.

So the first thing i was doing was:

1/ * A HTML Form, with a <input type="file"> which was uploading the file to
the web server. And then, in the next action-php-page, using ftp functions from
php to upload to the ftp server. But this make upload the file 2 times, which
slow, and the user can't do anythig except waiting in front of a blanck loading
page.

=> no way

(BTW, the site admin refuse that the ftp server and the web server to be the
same computer)

So i tried something else:

2/ * A HTML form, the user enter meta data about the media, click next, and
then, a php page which loads a java applet an pass informations to it (by param
tags).
The applet have a browse button, and a go button, which start the transfert
(JDK 1.4.1) trough the URLConnection. The file is uploaded once, and there is a
progress bar, which is wonderful.

But now, i need the src_file information wich is the java applet. So i have two
options:

A/ I make a post to the webserver from the applet. But i'm using session
identification (needed for tracing users actions) and i'm gonna use SSL in less
than one month, so i think it would be complicated.

B/ I export the information from the java applet to javascript, and then to
HTML hidden field, so that the user can submit the full-hidden-filled form. But
i can't make LiveConnect works.

i'm under Mac OS X 10.2 (jaguar) so i need to make work LiveConnect on both
Safari 1.0 (v85.6), mozilla 1.5, and Mac OS IE (5.2).

View 2 Replies View Related

Cross Frame Javascript Communication

Oct 28, 2003

I have set of frames... one contains a menu and the other a status frame. I am calling a function from the menu which sets the variables however I need some help passing those variables to the status frame. How would I go about doing such a thing?

This is called from the menu in frame 1 but doesn't work:

Code:
function jumpsec(cat, prod) {
parent.statusbar.category=cat;
parent.statusbar.product=prod;
}

// then my status frame bar has:
document.write(parent.statusbar.category);
document.write(parent.statusbar.product);

The 2 variables are blank on statusbar onload but get populated with each click.

View 4 Replies View Related

ClearInterval() : Iframe And Window Communication ?

May 14, 2010

I have given snippet of code in that it is cgi file in which i am using iframe , source of iframe is calling another cgi file. JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)

Code:

View 2 Replies View Related

Communication Between 2 Windows Without Having A Link Parent To Child

Jul 23, 2005

Is-it possible to modify a window from an another window without having a
link Parent To Child?

View 2 Replies View Related

Cross-domain Iframe Communication In Opera?

Feb 11, 2010

I have need to communicate between two iframes of the same domain, which live inside a parent page on a different domain that I have no control over. This is a Facebook app and the basic layout is this

apps.facebook.com/myapp
L iframe1 (src='mysite.com/foo')
L iframe2 (src='mysite.com/bar')

I need frame1 to talk to frame2, but in Opera I can't access window.parent. frames['frame2'] to do the usual cross-domain methods (updating location.hash for example) Is there an alternate way to accomplish this in Opera?

View 5 Replies View Related

Establish Serial Port Communication Using Script For Webpage?

Apr 6, 2009

I am working on a robot project, that is required to create a website to control the robot via serial port.. The website is plainly html, no linking to database is needed...

I have no idea how and what language to use and can JavaScript communicate with serial port? and how?

View 2 Replies View Related

Php-json - Communication - Getting "bar Undefined"

Aug 25, 2010

By having this...

And then, this:

PHP Code:

I can't get the "ola" to show on the page when I do a refresh.

I'm getting "bar undefined".

I do have a lot of simple and quick questions, but I will make just one:

Why am I getting "bar undefined" ?

View 10 Replies View Related

AJAX :: Functions Never Work With PHP - Tree Folder Which Calls Another Page To Be Loaded Into A DIV By AJAX Again

Apr 14, 2009

I'm creating an AJAX page that is built using a PHP Class, ie the php looks a bit like this: PHP Code:

$wp_page->addjs('../var/savepolicies.js')
$wp_parser->page = "userpolicywindow.php";
$wp_parser->addlink("Home","../index.php","");
$wp_parser->addlink("Logout","javascript:logout();","");
$wp_parser->getpageid("501");
[Code]...

within this page that has been created, there is an AJAX tree folder which calls another page to be loaded into a DIV by AJAX again. Code:

[Code]...

I don't know why it doesn't work because the page has been loaded with the JS file, but as soon as the link is added afterwards it doesn't work. I take it this is because it doesn't know where to find the JS, but how can I overcome this?

View 4 Replies View Related

JQuery :: Ajax Event Model And That Of Microsoft Ajax Control Tool Kit

Mar 24, 2010

jquery provides ajaxStart() and ajaxStop() events. Those two events do not seem to be triggered if the ajax requests are made by Microsoft Ajax tool Kit (from ASP.Net code). Is there any way to bridge those two event models? If not currently possible, is there any future initiative or plan out there to make this happen?

View 2 Replies View Related

JQuery :: Open Links Of Ajax Page In Same Ajax Part?

Jun 21, 2010

i was using $.ajax method to get my ajax page on my main page,which is working great.But now if i have links in that ajax page then i can't open them in that same div,the links are opening in new window,but i want to open in same part,i tried google it and then found, i have to use iframe instead of div.how to do with only use jquery and div.

View 3 Replies View Related

JQuery :: Applying Ajax To Ajax-generated Data?

May 31, 2010

i have a series of <select> fields. The first one, via ajax(), generates a 2nd one, based on the first ones' data with the .change() method. there is then a 3rd <select> - who's data will depend on choice of the second one although step 1 works, and i can generate the 2nd one, i still can't generate the 3rd one.

when i test the script on its own, both the 2nd and 3rd <select> fields are fine - but not via the ajax, which leads me to believe that the .change() from the 2nd one, isnt triggering the ajax call - its not being picked up (even the 'hello' alert isnt working).

[Code]...

View 2 Replies View Related

JQuery :: Call Ajax Function Inside Another Ajax Function?

Oct 12, 2010

I am using jquery for getting ajax responses from server side functions.

I am in a situation where I need to make two ajax calls one after another and the second one is dependent on the response of the first one.

I have tried to use a code which is similar to this one?

$.ajax({
type: 'GET',
url: 'myURL',
success: function(data)

[Code]....

Is it possible to get two have two ajax calls , one dependent on the other?

View 1 Replies View Related

JQuery :: Ajax Post Within Another Ajax Post?

Jul 27, 2011

Am calling Webservice in one ajax post, In the success funtion am calling another another method in same webservice through another ajax post method. First ajax post is getting called and returning the string from the webservice method but the inner ajax call is not getting called. I have placed the code here.

[Code]...

View 1 Replies View Related

AJAX And IE

Oct 17, 2006

Am trying to set up a very simple AJAX script for my website. The
javascript i have in an external file which reads as below.

This works perfectly in firefox but IE doesn't display anything at all.
No error messages, just a blank IE window. If you look at the IE source
this html is all there it just won't show it! Code:

View 5 Replies View Related

Can It Be Done Like This (ajax)?

Nov 21, 2006

I was playing a little bit with a lot of ajax frameworks. I have even
wrote one small by myself. But one thing still drives me crazy: Whenever
I'm doing an ajax call I need to specify handler to handle data coming
from a server script. That means that almost for every action I need two
functions.

Since I'm still new to all of this I'd like to ask how can i achieve
something like this:

function function_name(el) {
var i_need_this = get_what_i_need(el.id);
return _i_need_this;
}

where get_what_i_need function is returning some information using ajax
from a server.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved