ajax

Proven and Scalable Comet Server

What is the most proven, scalable comet server solution out there that can handle up to 100.000 real-life connections per node using HTTP streaming (not long-poll)? It must be a free, preferably open-source project. We've already tried Meteor (Perl), with no success. Meteor was able to scale just up to 20.000 connections per node. We a...

How can I catch a change event from an HTML text field when a user clicks on a link after editing?

Our webapp has a form with fields and values that change depending on values entered. Each time there is a change event on one of the form elements, we use an expensive AJAX call to update other elements on the page. This works great for selects, radio buttons and checkboxes. The issue comes in when a user adds content to a text field, ...

MooTools event listener disappears after element.innerHTML is changed

Hi everyone, I am trying to achieve this task using MooTools. Description: I attached an event listener to myButton link. A click on this link initiates an AJAX request and updates myDiv content based on the response text. During this request a POST variable is being sent to "button.php", but it's not used at the moment.. (i wish to us...

What's the best way to debug AJAX to PHP calls?

I'm having a miserable time debugging one small function on my new project. Essentially I'm having a user log out via an AJAX call to my log out script on my server called "userfFunctions.php" I'm using AJAX so that I don't have the headache of writing more regex to match my mod_rewrites. Anyway, every so often, it seems as though my...

ajax or direct php call

hi, i have an application similar to amazon books search. on the home page there is nothing except an search engine, once user input keywords and click 'search' button, it call an ajax function to the backend php file to get data from amazon via AWS, then display the results back to the home page along with a page/number bar showing ho...

Ajax load div , part of CSS not working

Hello, I'm using the ajax to load a div content, but the div content is not taking the CSS of the page. Example :- This link will load into <a href="#" onclick="javascript:loadAjax('test.html')">Test</a> <div id="result"> <table class="tablesorter"> <thead> <tr> <th>Header 1</th><th>Header 2</th> </tr> </thead> <tb...

Send html array as post variable using Request.JSON

I have an html: First name: <input type='text' name='first_name' value='' /><br/> Last name: <input type='text' name='last_name' value='' /><br/> <input type='checkbox' name='category[]' value='Math' /> Math<br/> <input type='checkbox' name='category[]' value='Science' /> Science<br/> <input type='checkbox' name='category[]' value='Hist...

Who can give me a "Google suggest" php code?

I want to creat a web which has google search, but I do not know how to make the "Google suggest", Who can give me a "Google suggest" php code? Thx! ...

How to secure an AJAX call from a facebook canvas application.

Reading this Ajax example, http://wiki.developers.facebook.com/index.php/FBJS/Examples/Ajax#Working_Example I found the following line. I'm not sure what to understand out of it, how do you "check the sig values per Platform spec"? "Note: For brevity's sake we are trusting $_POST['fb_sig_user'] without checking the full signature. T...

Using Session Variables inside an ajax document

Hi, For some reason I've having problems reading this session variable within an ajax document, I've got this inside online.php: ` session_start(); if (isset($_SESSION['username'])) { $username = $_SESSION['username']; } ` For some Reason this is not setting username even when the session var is being used on the host page, i ca...

Images not Loading in an Ajax Response

Hi there, I have an AJAX call that returns HTML content with some images. Sometimes they load, but most of the time they don't. Is there an issue I'm not aware of? Thank you. ...

cakephp droplist/form - xml and ajax

Hello- I'm complete noob in Cakephp - here goes... I have a website set up with Cakephp framework. I would like to create two dropdown forms to compare/show data. When the user selects an item from the dropdown from either one of the forms it is to show the content below on website. I was thinking this data would need to be stored in ...

PHP: closing db connections on included and ajaxed files

When I call to a page through ajax should I close the connection at the end ? The ajaxed file has a connection string for itself ofcourse, so I wonder if this connection stays open when the call is over, and if it's a disaster to not close these connections... Thanks in advance to all ...

Programmatically Untag FB Photos with Javascript

Hello! I've spent the past hour hacking away at this: I want to write a Javscript routine to programatically untag myself from photos on Facebook. Once it works, I'll run it in the Firebug console and untag myself from all Facebook photos (there's no way to do this through the GUI). I wanted to see if you guys had some advice to get m...

How to create a JQuery Tab with Asp.NET MultiView

I Do not know any JQuery and have to create a Tab with JQuery or JavaScript which works well with Multiview. And note that I have this kinds of tabs in more than 40 pages so I'm looking for a solution which works for all of them. This is my current Scenario I have a Multiview and some Buttons above Multiview. Each Multiview contains a ...

issue while synchronising PHP (reading file) and Ajax (jquery ui slider)

Hello, I got an issue while trying to display a jquery UI slider with its range based on a values read with PHP from a text file. Its seems that it's a syncrhonising issue as I get the error: "An attempt was made to use an object that is not, or is no longer, usable" code: 11" Is there a way I can force the jquery UI slider to wait for...

Javascript ajax GET call does not include cookie-sid on initial page load.

In my application, when /iframe is requested, I create a cookie and serve the iframe.html file. In the html file I use a Javascript Ajax call to request for user data (/user), which is called on $(document).ready and needs to pass the sid from the cookie (so I know the call is authenticated). The problem is that, the cookie-sid is not p...

How do I load Individual Div without load entire page and show loading status??

Hi How can I load individual Div separately without affecting current page and show loading status for that div with PHP and MySQL or Ajax and SQL ...

Getting data out of the company wiki using jQuery and ajax

The following javascript code gives me ">success-<", i.e. empty data. Pasting the url in my browser gives me the expected content. $.get("http://company.tld/wiki/api.php?action=query&amp;titles=Page%20Title&amp;format=xml&amp;prop=revisions&amp;rvprop=content", function (data, status) { alert(">" + status + "-" + data + "<"); }); ...

Simple form with jQuery UI dialog and databases

Hello, I'm programming an agenda, and I'd like to open a form within a dialog box (with jQuery UI modal form) and then register the information in my databases but I can't find an exemple of what I wanna do. I've gathered some codes but it doesn't work, I know there are mistakes but I can't correct them as I'm new to jQuery and all that...