ajax

MVC: how to ajax?

I'm going to start a project using a Zend Framework MVC implementation. How do I work with ajax? I mean, should I place all ajax code into controller? Or into view? For example, I want to get posts from author 'ivan' to show on a page. Normally, I create a link to '/posts/author/ivan' or smth like it, create a new Action like 'byAutho...

Run ajax while main page is loading

I got this php script that generates reports that take 20 to 30 seconds to complete. I would like to add a progress bar, and I have the progress updating in my DB correctly. The problem is that I cant use jQuery to $.post or $.get while the main page is sitting there loading the report. I can run javascript, like popup a window that sa...

Force NHibernate to issue an update

I'm having a problem with an ASP.NET application that uses NHibernate with the session-per-request model. I'm storing an object in SessionState and updating some of its properties using AJAX postbacks. When the user clicks "save" I lock the object to the current ISession and update its properties from the form. The problem occurs if the ...

Is it possible to recreate IKEA's functionality using Ajax?

A client is looking to achieve the same level of functionality as can be seen on Ikea's room set pages for an ecommerce site but doesn't want to use flash. Ikea Room Set With Flash Although complex, would this be possible using Ajax? Thanks for your insight in advance. Regards Jonathan ...

HTML5 Ajax to a different domain?

I recently came across http://chromeexperiments.com/. I found a couple of projects there that are quite intriguing: 100 Tweets and twitterbrowse (I'd post links to them but I'm not yet allowed). These both work fine for me in Firefox 3.5 under Ubuntu 9.04. The thing that I find particularly peculiar is the fact that these two "experiment...

Need a sortable JavaScript table which can handle real-time updates

I need a sortable table or grid widget in JavaScript which can handle real-time updates. I will be updating rows within the table via updates from Comet and preferably don't want a widget that requires me to redraw the whole table on each update or hogs the CPU when updating. ...

passing in parent id to remote_form partial on item creation

I am still kind of fuzzy on controllers in rails, especially so because a lot of things seem to happen magically behind the scenes, and that's not happening in this case. So say I have a person model, which has many photos (using paperclip) and has many favorite quotes. The quotes can have the text, the attributed author, etc. In both o...

The R in CRUD - where's the line between feature and disclosure vulnerability?

We all know how hip it is to make our Ajax calls using address routing and HTTP-Get with parameters in the URL because the client side can cache those calls and thus server load is reduced, but where do you guys think the line is between "a neat way to address resources" and "disclosure vulnerability"? I'll give some examples- Let's say...

how do you create a multi-threaded asp.net ajax update panel?

how do you create a multi-threaded asp.net ajax update panel? thanks! ...

JQuery click() not working on replaced html

I'm still new to Jquery so bare with me. I am trying to create a go-moku game using jquery,php, and mysql database. I have a ajax function that updates the a board every second if needed. var turnCount = -1; setInterval(function(){ $.get('includes/boardControl.php',{turn: turnCount }, function(data){ if(data != "") { $("#board").h...

Why is my app maxing out CPU usage in Firefox?

I have written a game app for Facebook. The app is not AJAX optimized, so it makes a lot of round trips to the server. I have discovered that every time the app hits the server while using Firefox, the CPU usage goes up to 100% (this does not appear to be a problem in IE8). Since the app can hit the server several times a second, this is...

ASP.Net Update Panel timeout

how can I fix this? After a continuous use of the UpdatePanel, it just stops working. I'm using multiple UpdatePanels in one page and all are set in Conditional update. ...

ajax request times out frequently,how to fix?

It seems such things never happened to SO,did they use some special technique? ...

Jquery getJSON populate select menu question...

I am populating a select menu with getJSON. I am wondering if there's a way that I can use jQuery's .each function to bring in these values? Surely there must be an easier way to accomplish this...maybe? PHP file: <?php $queryMonth = "SELECT monthID, month FROM months"; $result = $db->query($queryMonth); while($rowMont...

UpdatePanel.Update(), nothing seems to happen

Hi folks I'm working with an UpdatePanel that I'd like to refresh programmatically on the server side. The reason is I display some data that takes a pretty long time to load, so I need to display the page and some sort of progress meanwhile. What I did is the following, on a page with one UpdatePanel and one ScriptManager: protected ...

Ajax call or UpdatePanel?

Inside a web application that we are developing, there is a time in where the user commits a search by providing some parameters (it's a reservation system, so "parameters" = 2 dates). A hidden table (or, better, empty) is then filled with the results of the query. Now comes my problem: is it better to do an AJAX call to a WebMethod, o...

What JavaScript table widgets are available?

Shortly, I'm going to need a JavaScript table widget for a new project - what options do I have? Thanks in advance. ...

Microsoft Ajax script extensions - same in both ASP.NET AJAX and ASP.NET MVC?

Are the client side javascript extensions, e.g. MicrosoftAjax.js, the same in both ASP.NET AJAX (for ASP.NET WebForms) and ASP.NET MVC? For example, does it still include: Global Namespace Sys Namespace Sys.Net Namespace Sys.Serialization Namespace Sys.Services Namespace Sys.UI Namespace Sys.WebForms Namespace although I'd suspect t...

How to suspend execution of javascript?

Hi! Is there any way to suspend execution of javascript until whole page is loaded in a browser? I am updating a div at the bottom of the document using AJAX but when I click this link before whole page is loaded I get an error... <%= link_to_remote 'Update', :update => 'div_at_the_bottom', :url => { :usual_stuff } %> ...

C# AJAX Web methods - What am I doing wrong???

This maybe a very noobish question but I am trying to implement a simple web method using AJAX C# and asp.net here is the code: C# code behind: using System.Web.Services; public partial class Controls_LeftNavigation : System.Web.UI.UserControl { [WebMethod] public static string MyMethod() { return "Hello"; } } ...