I would like to know how Gmail (or anyone else) does comet on Opera.
Here is what I know so far from my experiments.
It doesn't use the event-source tag which is broken in Opera 10.51.
It doesn't use iframe which displays a spinning throbber and a busy mouse cursor.
It doesn't use responseText on xmlhttprequest when readyState = 3 whi...
I'm trying to create an AJAX request in IE8.
var xhr = new ActiveXObject( 'Msxml2.XMLHTTP' );
xhr.open( 'GET', '/ajax/' );
// Required header for Django to detect AJAX request
xhr.setRequestHeader( 'X-Requested-With', 'XMLHttpRequest' );
xhr.onreadystatechange = function() {
if ( this.readyState == 4 ) console.log(this.responseText);...
Drag-and-drop file uploading can be done in Firefox 3.6.
A Google search for html5 drag-and-drop file uploading -gmail gives things like:
http://stackoverflow.com/questions/2121018/native-drag-drop-file-upload-in-firefox-3-6
http://www.appelsiini.net/2009/10/html5-drag-and-drop-multiple-file-upload
http://www.thecssninja.com/javascrip...
The client makes 2 concurrent requests. (1 which takes 60 seconds - long polling) and another which is NOT long polling - supposed to return right away. It does return right away when I'm not doing long polling. But as soon as I start doing long polling with the other thread, the other one takes forever to execute.
Firebug shows that ...
Here i am talking about product listing pages where there are multiple filters that filter the list of products appearing on the page like product types, categories price range etc.
I have done such pages using both ajax and no ajax way in the past.
What I like about using ajax in such page is that, when filters are selected I only upd...
Hi.
I want to draw multiple circles on a map, using the Google Maps API anj jQuery.
The following code works as long as the line with drawMapCircle() is commented out (The markers are positioned correctly).
What's wrong with my code?
$.getJSON(
"ajax/show.php",
function(data)
{
$.each(data.points, function(i, poin...
Hello,
I am currently trying to dynamically add a new component to the JSF component tree during an ajax request.
In fact I add a child to the UIViewRoot component in my AjaxBehaviorListener which is fired on server side during the ajax request process.
The issue is that the new component is not rendered. It seems that this component ...
I'm new at this, and I can't seem to find the documentation that explains this. But I want to create a Facebook page, where you can send POST data to an external server, preferably with AJAX.
Can someone please point me in the right direction, as I'm stumbling blind.
...
Need to load the content of one page inside another to simulate tabbed panels. The current methods I have tried do not work. Iframe does not readjust size to conform with the collapsible panels and with ajax the collapsible panels and calculating scripts do not work at all.
Testing area is located here
http://www.divethegap.com/scuba-d...
The ajax call works fine in FF.
the data returned is in JSON here is an example from FF firebug -
{"noProfiles": "No profiles have been created, lets start now !"}
When I try to print the error in IE8 (& in compatibility modes as well), it says "parsererror".
But the output seems to be valid JSON.
Here is the ajax function call...
Hi
All i need is a simple explanation on how does this function work
I also attached a piece of php which I think is the one that retrieves the data from the database. Please correct me if I'm wrong
Cheers.
function loadDatabaseRecords ()
{
// Mozilla/Safari
if (window.XMLHttpRequest)
{
xmlHttpReq = new XMLHttpRequest();
}
// ...
For the purpose of the question I need to create a simple fictitious scenario.
I have the following trivial page with one link, call it page A:
<a class="red-anchor" onclick="change_color(event);" href="http://mysite.com/b/">B</a>
With the associated Javascript function:
function change_color(e)
{
var event = e || window....
Can I use Jquery to call an action and then change the image when it success, just like stackoverflow's post voting function?
In my view, I'm using the following code, but I don't want to refresh the browser. Can anyone provide some code about this for me?
Many thanks.
<%if (!item.IsPrinted)
{ %>
<%=Html.ImageLink("~/Content/imag...
I have adapted a Jquery plugin to for-fill my needs to send GET requests to servers as a way of "pinging" them.
I've also added some javascript code to add some fancy features like: depending on the changed value in a span that the Jquery plugin changes, it changes the Icon accordingly.
To make it all work essentially, I made so that w...
I'm working on a new project http://www.hotwirerevealed.com which reveals / identifies hotels on hotwire.com. After inputting a state and a destination I have a javascript functions that uses jquery's .post method to post. The post request goes to an php page which outputs html, I se jquery's html method to place the content on the page....
I'm building ASP.NET MVC2 website that lets users store and analyze data about goods found on various online trade sites. When user is filling a form to create or edit an item, he should have a button "Import data" that automatically fills some fields based on data from third party website.
The question is: what should this button do ...
Hi
i have a signup page and i want to check username exists or not with ajax
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Simple.ascx.cs" Inherits="UserControls_Simple" %>
نام کاربری:
کلمه عبور
i eant to show label if user exists
how can i do that?
tnx
...
Hello,
I've used "Google AJAX Transliteration API" and it's going well with me.
http://code.google.com/apis/ajaxlanguage/documentation/referenceTransliteration.html
Currently I've a project that I need all input fields in every page (input & textarea tags) to be transliteratable, while these input fields differs from page to page (dyn...
I have a site with a few containers that need to load content dynamically via AJAX.
Most of the links inside of the containers actually load new data in that same container.
I.E: $("#navmenu_item1").click(function() { $("#navmenu").load(blah); });
When I click on a link, lets say "logout," and the menu reloads with the updated logi...
Is there any free ajax uploading control which can give black-screen on the page to prevent other user interaction while uploading? Thanks!
...