ajax

jQuery / ASP MVC -- parsererror in "$.ajax" calls

I'd like to create a simple action link in ASP.Net MVC RC2 using jQuery 1.3.1 - something like this: <a href="#" onclick="AjaxTest1()">Tester</a> with the AjaxTest1 function: function AjaxTest1() { $.ajax({ url: "Home/Ajax1", error: function(request, status, error) { ...

How do I transform xml from axis2 services using jQuery and AJAX?

I'm running into a problem with axis2 and ajax. I'm getting xml from one of my web services with jQuery's ajax functions, and using this jquery plugin to transform the result xml to html. Here's an example of the relevant xml that the service returns. <ns:getPatientsByDoctorResponse> <ns:return type="com.emolst.jdbc.PatientBean"> ...

facebook status bar

anyone know a good tutorial of how to make the status bar found in the new facebook? the one on the bottom. looks really cool i was thinking it was written in either ajax or jquery. but not sure. ...

Most stable solution for doing AJAX with ASP.NET as a backend?

I'm planning a ASP.NET project for which I'm going to use AJAX. I'm researching all the available technologies for doing so in the .NET world. I need a solution that is well documented and stable. The current solutions I've found are: 1. ASP.NET AJAX UpdatePanel 2. ASP.NET AJAX with Web Services + JQuery 3. JQuery + Http Handlers In the...

Experiences with Javascript History Frameworks

I'm seeking a javascript history framework to handle navigation inside a page when the user selects multiple options which change the page behaviour. There are multiple artefacts on the page that change the data loading of the page and I'd like to store this as a stacked set of behaviour. In a wider sense, I'd like to add this as a tool...

scriptaculous ajax autocomplete empty response

I’m working with the ajax-autocompleter which works great. My aim is to redirect between an editing function for an existing item, or a creating function for a not-found item. I insert a specific id to each li, and I can therefore use it for the editing function with an afterUpdateElement option. But if no results are found, the list i...

Another JQuery encoding problem, on IE

Hi all, I'm coding an italian website where I need to validate some input data with an xhr call. My code for the ajax request's like this (I'm using JQuery 1.3.2): $.ajaxSetup({ type: "POST", timeout: 10000, contentType: "application/x-www-form-urlencoded; charset=iso-8859-1" }); $.ajax({ url: "ajaxvalidat...

Delimitter for string value for Ajax response

I have a javascript function which would populate a list of related item in a div when the user types a letter in the ipyt box.I m calling a aspx (C# -codebehind page) page in my ajax call and that aspx page would return the output as a string delimitted by | (pipe symbol) .But my code is breaking if the item of string contains a | symbo...

How do you do full page caching with dynamic information

I imagine a very common scenario is where an entire dynamic page can be cached in such a way that an entire framework/CMS stack can be bypassed, except that some small amounts of information change depending on whether somebody is logged in or not. For example, the menu might change from "login" to "Welcome Somebody!". No there's not way...

How do I reference a web service in another project using a ScriptManager?

I have a web application project and a web service application project. I'm using ASP.Net AJAX and I want to reference a service called Tickets.asmx from the web service project and call it with JavaScript. (I'm referencing it [or trying to] in a ScriptManager on the page) I've done this before with the web service being part of the asp...

Passing data from JQuery to Controller Action

Do I have to do anything special to my controller action method to accept/bind data from a .ajax() call? Controller Action - public class TestController : Controller { public JsonResult GetTestJsonData(Metadata data) { return new JsonResult { Data = data }; } } JQuery Call - <script type="text/javascript"> $(...

Can you combine replace_html with a visual_effect in Rails RJS?

I'm developing a website with Ruby on Rails and I have a div with some content. After clicking a link I want that content to get replaced with some other stuff. This works fine with replace_html and rjs. However, I'd prefer there to be a slight fade/appear (crossfade?) transition between the old and new content. Also the div will be ...

How to implement a cross-domain Ajax request using CakePHP and jQuery?

I am using CakePHP for my project, and I am generating XML views so that I can interact with them (CRUD) from an external website. There is authentication required on the CakePHP website. Essentially, I want to view "http://mycakeapp.com/posts/views/1.xml" from "http://www.example.com" However, I get this error when using jQuery's aja...

Login/session cookies, Ajax and security

Hello, I'm trying to determine the most secure method for an ajax based login form to authenticate and set a client side cookie. I've seen things about XSS attacks such as this: http://stackoverflow.com/questions/27972/are-httponly-cookies-a-viable-option-for-an-ajax-website and http://www.codinghorror.com/blog/archives/001167.html ...

Ajax Dial Control?

Does anyone know of a free Ajax Dial control? I'm looking for a speedometer, percentage etc control. I'd expect to find loads of these as they seem to be in fashion at the moment in UI Design but I've yet to find any good looking free ones, and the only commercial one I've found costs $800 for a whole library of controls most of which ...

transparent batching remote calls in dwr

I want DWR to transparently batch all remote calls that are done in the course of handling the same event. The reason is that handling an event in Javascript must only take a short time and nothing else can happen during the same time. So if I am going to do many calls, I would like to DWR batch them transparenty. Is that possible? How?...

javascript form - bypassing default behaviour for ajax

I am trying to use the following code below. What I want is to get the value of which radio button is selected, sent back to the javascript method. Any variation I try seems to fail. <html> <head> <style type="text/css"> body { background-color: black; color: white; } </style> <script type="text/javascript"> fu...

Ajax call from Bookmarklet

I am trying to create a bookmarklet that, upon clicking, would request some information from the user (a url and a couple other fields in this case) and then send that data to a php page on my server and then display the result. I would like to do an Ajax call for this so that I don't actually redirect to the new page, just get the data...

Using acts_as_list with has_many :through in rails

I have a rails app I'm trying to set up with sortable lists using the acts_as_list plugin. The position field in the db is getting updated, but when the page is rendered, the order is not considered. I'm looking for some help, I guess. Here are my models... class QuestionMembership < ActiveRecord::Base belongs_to :form belongs_...

Identifying ajax request or browser request in grails controller

Hi I am developing a grails application which uses lot of ajax.If the request is ajax call then it should give response(this part is working), however if I type in the URL in the browser it should take me to the home/index page instead of the requested page.Below is the sample gsp code for ajax call. <g:remoteFunction action="list" con...