ajax

Load multiple external websites into one webpage via re-using ONE IFrame + Ajax

I am trying to embed multiple external websites into one web page. Using an IFRAME works ok, but once you get past 10 embedded iframes, the memory fottprint starts to get too big. So I was thinking, is it possible via ajax/javascript, to re-use the same iframe to load the collection of websites one after enother, and display the result...

Using jQuery tableSorter on dynamically modified table

I am using the jQuery tableSorter plugin on a page. Unfortunatley, the table that is being sorted is dynamically modified, and when I sort after adding an element, the element disappears, restoring the table to the state that it was in when the tableSorter was created. Is there any way that i can force tableSorter to rescan the page s...

Favourite AJAX library for classic ASP?

Just wondering if there are any good server-side libraries for AJAX (prefer JSON rather then XML but anything is good) for classic ASP (VBScript)... Rather not reinvent the wheel if it's already working and debugged. Cheers, Gaspard EDIT: Server-side ASP VBScript... I have already seen many javascript client side libraries. ...

File Structure / Architecture for AJAX Site?

Hi All, I'm building a site using ajax and am trying to decide where to put the files that supply the data for the ajax requests. For example, I am going to have a .js file that can be included in a page that will create country/state select boxes. I will have the .js file under /inc/js. However, I am not sure where I want to put the...

JSONP and Cross-Domain queries - How to Update/Manipulate instead of just read

So I'm reading The Art & Science of Javscript, which is a good book, and it has a good section on JSONP. I've been reading all I can about it today, and even looking through every question here on StackOverflow. JSONP is a great idea, but it only seems to resolve the "Same Origin Problem" for getting data, but doesn't address it for chan...

jQuery won't parse my JSON from AJAX query

Hi, I'm having difficulty parsing some JSON data returned from my server using jQuery.ajax() To perform the AJAX I'm using: $.ajax({ url: myUrl, cache: false, dataType: "json", success: function(data){ ... }, error: function(e, xhr){ ... } }); And if I return an array of items then it works fine: [ { title: "O...

PHP apache_request_headers() diagrees with reality (as confirmed by Firebug): why?

I have written a web app in PHP which makes use of Ajax requests (made using YUI.util.Connect.asyncRequest). Most of the time, this works fine. The request is sent with an X-Requested-With value of XMLHttpRequest. My PHP controller code uses apache_request_headers() to check whether an incoming request is Ajax or not and all works wel...

How does StackOverflow know when there are new answers to a question?

If this question has already been asked I appologies, please point me in the right direction. I was wondering if anyone has any insight into how StackOverflow pops up the "n new answers have been posted, load new answers" thing at the top of a question when you are adding a post. This seems like a very useful function for my forum web-s...

How do I initialize two lists at the same time with ajax?

Hi does anybody know how to initialize two list at the same time with ajax? This is my code <html> <body onload="iniciaListas()"> <script type="text/javascript"> var xmlHttp function iniciaListas() { muestraListaPaises(); muestraListaProfesiones(); } function muestraListaProfesiones() { //Se inicializa el objeto ajax par...

Minimum time between subsequent AJAX calls

In AJAX applications that need to poll the server in regular intervals (like a chat applications), what is the recommended minimum time between two calls, so that the update is done as quickly as possible? What times are considered as hogs for the server and the client? ...

How to reference an input within a form in jQuery

An easy jQuery question. I have several identical forms ( except their name ) on one page with a few hidden inputs in each. I want to refer to them by using the form name and then the input name. ( the input names are not unique in my page ) So for instance: var xAmt = $('#xForm'+num).('#xAmt'); I really want to supply these value...

WYSIWIG Editor Not Working with Update Panels (AJAX) in .NET

We're testing WYSIWYG editors, and we cannot see to make them work with asynchronous postbacks. We put the TextBox(/textarea) in the UpdatePanel and call a simple save to the DB, and all of our WYSIWYG toolbars disappear, leaving us with a bunch of HTML in textboxes. This is the one we've been working to implement: nicedit.com/ We have...

SAAS per seat authentication

Hi Our company makes the web based application which is priced per workstation. That means that user/pass credentials should only be used from one particular machine. Currently what is happening that several users are sharing credentials and we do not have any way to prevent this if they are not doing it concurrently. The nature o...

JSF & Facelets Flow

I have a dynamic Facelets page that needs to show information from database when the page loads. At this point in the flow, there have not been any form submissions. Every JSF example I can find only shows a form submission with dynamic results on the next page. Every call I make to our database is currently takes place after an action ...

Tab Navigation - Frames or AJAX?

I have what I imagine to be a pretty standard web-interface. There are 4 different ListViews (grid controls) which are accessed by a series of Tabs on the top. I have implemented this as follows: Tab 1 will load Page 1 containing Grid 1 into Frame 2, Tab 2 will load Page 2 containing Grid 2 into Frame 2 etc. However this then mea...

How do you use the jQuery blockui add-in with MVC Ajax?

I have been reading the post here: http://encosia.com/2008/10/04/using-jquery-to-enhance-aspnet-ajax-progress-indication/ But it wants to use the following object: Sys.WebForms.PageRequestManager.getInstance() Which doesn't exist when using the MVC AJAX code. Has anyone tried to hook when the postback ends from MVC AJAX to know whe...

Using ASP.Net ajax library for cross browser Xml manipulation

I am currently updating a web app that uses ActiveX objects in client side code to manipulate some xml. Of course, this app only works in IE and I need to get it cross browser compatible. I am looking to get a javascript xml library to handle the cross browser oddities, and was wondering if the ASP.Net ajax library would work. I have ...

Advice on which modal popup to use: ASP.NET AjaxControlToolkit vs jQuery plugin vs Greybox vs ?

This is all being done in an ASP.NET web forms application: I need a modal popup that will show the user a preview of images that match a search criteria (e.g. they search for "dog" and the popup shows them all dog-related pictures). The search results shouldn't be too long, but the popup should support the ability to scroll if necessa...

Browser app in high latency/low bandwidth environments

We have a typical business application with an Outlook-looking Winforms client talking to asmx webservices. We’d like to make a portion of the features available over our intranet, but the new users we need to reach - all of them - are in developing countries with dial up-type bandwidth and a lot of latency. And they all use IE 6. So ...

Ajax Tutorial

I am looking for a good resource on Ajax. Framework doesn't matter. Should have good samples for typical real world scenarios. Thanks in advance. ...