ajax

AJAX postback and page lifecycle

Could anybody explain me how it works. I have a page, which has button inside the update panel and some class member (_pageContext). It is not static member, by the way That's its declaration internal PageContext _pageContext = null; When I click the button, next events occurs (I trace them making breakpoints) 1) Page constructo...

How to do an update status (ajax) with Jquery?

How to do an update status like what are you doing now (facebook + ajax) with Jquery? I found a tutorial that very similar to this, but they using mootools, is there a tutorial that use Jquery? I am a new to javascript and jquery, I need your guys help and advice EDIT: The mootool example can be found from here: http://nettuts.com/t...

Rendering JSON objects using a Django template after an Ajax call..

I've been trying to understand what's the optimal way to do Ajax in Django. By reading stuff here and there I gathered that the common process is: formulate your Ajax call using some JavaScript library (e.g., jQuery), set up a URL pattern in Django that catches the call and passes it to a view function in the Python view function retr...

What have all the AJAX frameworks to do with AJAX?

With the upcoming rise of AJAX applications on the web, I wrote some own pieces of code to understand what it is about. I know there must be easier ways than directly dealing with the XMLHttpRequest object and thought this is why all the AJAX frameworks were created. However, when I had a look at some of them, I mostly found documentati...

How should asp.net(mvc) server return error to jquery ajax call to be caught in error callback?

Suppose I have a method in my controller that is called via a jQuery AJAX call. E.g. I'd like to delete a user. When everything goes fine, I return new Content('ok') and exit the method. What should I do when an error occured? I'd like to indicate it by an appropriate status code, so that my error call back would be called called. Why s...

UpdateProgress bars and update Panels

I have a grideview that displays rows that will be deleted across servers by the click of a delete button in the footer of the grid. This delete will take a long time so i want an updateprogress bar. I'm not really familiar with it so I don't know where to begin. ...

Telerik FileExplorer Example

I've been wrangling with creating my own File Browser Content Provider for Telerik's FileExplorer control. They have one example on their website, but it hasn't helped my solve some ASP.NET Page and UserControl life-cycle issues I've been having. Is there better example out there of using the FileExplorer control with a custom Content P...

Get form checkbox values and pass them through pagination?

Hello. I need to get values from selected checkboxe's and pass that values through pagination witch is done by php/mysql. And if on another page user select other checkboxes add their values to array of earlier seleced. I need this for product compare page. In short i get checkbox values store them add checkbox values from other pages ...

Has anyone used Sigma Grid (Javascript-based editable data grid)?

Has anyone here used Sigma Grid for JavaScript-based data grids? It was the only grid I could find that would allow fast data entry and use of the keypad, but before we spend a lot of development time I wanted to learn about the community's experience with it. (Note: we need dozens of fast, sortable, and editable grids that can be use...

Objects detected by Livequery in ie7

Hello, Can anyone figure out why this gives me blank alert boxes in ie7? $("#bottles a").livequery("click", function(event) { thetitle=$(this).attr("title"); alert(thetitle); return false; }); For each new A tag loaded, ie7 alerts a blank message (FF correctly shows the respective titles) However, when thetitle= $(this).htm...

Retrieve Values From the Controller in JQuery

Hi, I m new to Jquery..How to retrieve the values from my controller and compare them with some String inside JQuery..Please suggest me.. $(".select"+increment).change(function () { if("here i need the value from my controller " =='String') { $("<label id=labelstr"+stringinc+" >"+labe...

Calling Ajax function in rails

Hi How can i call an ajax function from a image_submit_tag in rails im already doing it on a link_to ,it is working fine with that. The same login i want to implement on image_submit_tag , How can i do tht...can ny one help..?? <%= link_to_remote(comp.name.capitalize.pluralize, :url => {:controller=>'Bytes',:action=>:create}, :update =>...

How to execute a Javascript function from a C# WebBrowser?

Hi, I'm doing some web automation via C# and a WebBrowser. There's a link which I need to 'click', but since it fires a Javascript function, apparently the code needs to be executed rather than just having the element clicked (i.e. element.InvokeMember("click")). Here's the href for the element, which opens an Ajax form: javascript:__d...

Web Service error 'Could not create type' when calling service from Ajax

Hi I've downloaded the Ajax Control toolkit When I create a website from the Ajax control Toolkit template, I can create a web service in a single file (asmx) and hook this up to different Ajax controls provided in the toolkit. However if I add the Toolkit to an existing ASP.Net 2.0 appliction web project I cannot create web services ...

How to parse HTML from JavaScript in Firefox?

What is the best way to parse (get a DOM tree of) a HTML result of XmlHttpRequest in Firefox? EDIT: I do not have the DOM tree, I want to acquire it. XmlHttpRequest's "responseXML" works only when the result is actual XML, so I have only responseText to work with. The innerHTML hack doesn't seem to work with a complete HTML document...

jQuery .load() call doesn't execute javascript in loaded html file

This seems to be a problem related to Safari only. I've tried 4 on mac and 3 on windows and am still having no luck. What I'm trying to do is load an external html file and have the Javascript that is embedded execute. The code I'm trying to use is this: $("#myBtn").click(function() { $("#myDiv").load("trackingCode.html"); }); ...

Best practices for returning and displaying data from AJAX calls.

I have some jquery/php interaction set up on a page. It submits some data to the server and gets back records of data which are then to be aligned on the page for comparison and possible action beyond that. My question is what is the best practice for returning the info and then displaying it? Return JSON object and then create html o...

What are the benefits of enforcing restful routes in an MVC application?

I've been toying with the SimplyRestfulRouting assembly that comes with the MvcContrib extras, and for the most part I really like that it quickly sets up my routes and leaves me with a good convention to follow in my controllers. However, I'm still trying to wrap my head around REST as it applies to rich internet applications and occas...

Simple Jeditable Problem

I just started with Jeditable and for 3 hours now it seems I can't figure it out. This tutorial should have been piece of cake: http://www.appelsiini.net/projects/jeditable , but it turned out to be a little pain in the a$$. I've put the jquery.js and jquery.jeditable.js in the same directory with the main page. This is my code (it see...

How to return javascript variable to Ajax?

Does anyone know how can I return the javascript variable to ajax instead of string value while I using ajax to call the php. Please see below example for more details: Ajax: //Ajax Param var paramList = "Action=make_process"; ajaxRequest = $.ajax({ url: "admin.php", type: 'POST', data: paramList, error: fu...