ajax

How would one do html input tag autocomplete in Ext.js?

If you're using the Ext.js library, how does one do autocomplete in input text areas? More precisely, how would one do autocomplete based on iterative Ajax requests (like the jQuery autocomplete plugin where the Ajax option is set to an updating url). Thoughts are appreciated and thank you for reading. ...

How to access remote JSON data as a local array

I'm able to use Jquery's $.get function to access JSON data from another URL, but how can I use that data (as an array) elsewhere in my code? Consider the following code: <script type="text/javascript"> $(function () { $.get("/some/other/url/that/returns/json", function(data){ var d = eval(data); }); ...

using jquery ajax to load info from database

Problem I tried using the following // Start method 1 var grbData = $.ajax({ type : "GET", url : "http://grb.sonoma.edu:81/getgrbs.php", data : "start=0&perPage=3"}).responseText; $("#ajaxDiv").html(grbData); // End method 1 // Start method 2 $.get("getgrbs.php", { start : 0, perPage : 3}, function(data) { ...

I have a page with 2 user controls, each one polls the db via an ajax call, only one 1 though.

Hi, I have a page with 2 user controls on it, UC1 and UC2. Both user controls poll the database via an ajax call. UC1 is to poll IF UC2's button has not been pressed. i.e. only 1 ajax poll at a time, given the above logic. Both UC's have an jquery onReady call that initializes the timer. How can I tell UC1 not to poll IF UC2's butt...

Dynamic Dropdown list with actions

like 1 image says more than 1000 words. here is what I want to implement in a django webapp: http://bit.ly/1ocI0X Is a dynamic dropdown list with an action to add values to db and dynamicly added to self dropdownlist. Any hint would be appreciated. Tks. ...

basic xmlHttp question

Hi all. I 'm having some trouble with my javascript code calling my php. Does anyone see an error in the following code? I swear I'm using code just like this on another part of the site... var xmlHttp = createXmlHttpRequestObject(); var favSongArray = []; function createXmlHttpRequestObject(){ var xmlHttp; try{ xmlHttp = new ...

not getting new updated data while using AJAX in calling partial file

I have called the partial file form the loop. now when i update , i do not actually get updated result but need to do refresh for getting updated result. the code is like this : the file1 @folders.each do |@folder| = render :partial => 'folders/group_list' the partial file %div{:id => "group_list_#{@folder.id}"} // this is th...

How does codeandtheory's live search work?

I've been trying to figure out how the "live search" function at http://www.codeandtheory.com/#/work/ works. I've looked at in firebug, and have looked at a bunch of AJAX search tutorials but codeandtehory's seems to work a lot "smoother". Any ideas? ...

how to notify webserver when user closes the browser (in asp.net) ?

I am developing a relay chat application , divided into 2 panes. right pane - > The Chat responses of users (this uses a ASP.NET Multiline Label control placed inside the update panel , so when any user types the responses and submits it is added to this control) left panes -> the list of users currently online(this uses ASP.NET list c...

How do I insert a lot of html into a page with jquery?

I am working on a comment script using PHP and jquery. My jquery post data to my php backend script, on success I need it to insert the results that the backend script sends back. Right now I have everything working except the part that adds the comment to the page I am stuck. I can use something like this; $('#comments').prepend(d...

How can I insert this block of html into a page from a json response with jquery?

<script type="text/javascript"> var dataString2 = 'run=captchagood&comment=' + comment; $.ajax({ type: "POST", url: "process.php", data: dataString2, dataType: "json", error: 'error', success: function (data) { if (data.response === 'captchasuccess') { $('div#loader').find('img.load-gif').remo...

jQuery ajax load() java script not executing?!

Hey guys, I've read several posts about this issue but i can't solve it. I am loading an html file into a div. The file i am loading contains a unordered list. This list should be expanded (a menu with submenu items) and closed. Therefore i need js. But unfortunately this script isn't loaded. Can anyone help me? Would be so great! Th...

rails ajax update only once

I have a remote_form_for that I use to let a user know if their form was submitted successfully. In this method I have :success=>'updateMain() I would like to add an ajax update request to updateMain. The problem is that I can't find a way to make a single update request in rails (I know this is available in prototype). The closest th...

Limitations of ScriptManager in AJAX Calls

Hey Guys. Is there any limitations on AJAX Calls with ScriptManager to Web Services? I have an application and I need an AJAX enabled form in it. After every Insert or Delete, I have to get a list from database and show it on page. So I call two server methods from my JS. Isn't too many AJAX calls gonna cause any errors(eg. timeouts, tr...

Calculate progress bar percentage

I am building a file upload progress bar. Currently I have an upload form which returns the current amount of uploaded data. So, it starts at zero, and returns the current size in bits, but I have converted that to bytes. If I can get the total file size before I upload, and can get the current amount uploaded, and return this dynamic...

Progress bar on webpage

I want to display an animated gif on my webpage for some time consuming tasks. There is an AJAX updateprogress control for that to this, but as i've seen on Matt Berseth's blog link text he uses UpdatePanelAnimationExtender from AJAX toolkit. Can you explain why he needs the UpdatePanelAnimationExtender? What is better? Thanks. ...

How To Keep a Javascript Working with ResonseText Data

I've been building an application with php/mysql and javascript with Prototype/Scriptaculous. A page has a search contacts field, with a default set of data in an HTML table. A user types in some characters, and the table get updated. What's actually happening is the table is getting replaced with a new table and new data. I've got a ...

Jquery ajax live validation / timeout question

Hello, I'm still kindof new to jQuery, so there probably is an easy solution, but I can't find anything. I've made this registration form, that checks if the username or email is taken as the user is typing in the username. Basically it just makes a json request that returns true or false depending on if the username / email is already t...

Javascript: onClick event requiring two clicks b/c of onMouseOver handler

I have a Netflix/Amazon style star-rating system. Thus, the stars temporarily light up onMouseOver and a click is supposed to trigger a PHP call and a permanent change in star color. Everything works, although the onClick event isn't triggered until the second click. It appears that this is because the onMouseOver event is still activ...

limit for Ajax calls on a web page ?

Is there any limit to number of ajax calls on a web page ? Will it affect the performance of the web application if we have too many ajax calls/timers that have been set to run at frequent interval . Regards, Mithun ...