ajax

Should I return html or json in a ajax single page checkout

I want to update a current ASP.NET webforms e-commerce site with a nice one-page checkout and I'm looking for some "best practice" on how to update the data. The page will consist of several parts: the cart, user identification, payment options, delivery options etc. If the user changes the payment option this might result in changes in...

Rails 3: undefined method `remote_form_for'

I have a fairly simple Rails remote form in HAML in a partial under shared/users: - remote_form_for :user, :url => { :controller => "users", :action => "create" } do |f| .field = f.label :name, t('name') = f.text_field :name .field = f.label :email, t('email') = f.text_field :email .actions = f.submit No matt...

validation on dropdown in javascript

i have dropdown named po_no with same id which is coming from ajax file in po_no getting two values in the format of 1025*3 when i put validation on that dropdown in javascript i write this code if(document.getElementById('po_no').value=="") { alert("Choose Purchase Order Number"); return false; } but this code does not work p...

How to send parameter in query string on ajax call in asp.net mvc

I want to send the selected page value on the querystring while navigating through paging. The URL that is generated for paging is like this: Link/Index?page=2 Link/Index?page=3 But on my URL it only shows Link/Index and performs the Ajax call. But if I disable my Javascript and then navigate through paging it gets Postback and has ...

hide a particular pane within an AJAX accordion pane control

How do I hide a particular pane within an AJAX accordion pane control from code behind / programatically? I found the following code, and am not sure how to use in within an ASP.NET page with a master page (where I don't have a head tag in my actual page). In order to hide an Accordion Pane, use the following script: <script type="text...

Bypass Client Side Validation when using Ajax.BeginForm

When using Html.BeginForm("SaveAction") and Html.EnableClientValidation() you can bypass client side validation using <script type="text/javascript"> document.getElementById("mySaveButtonId").disableValidation = true; </script> Does anyone know how to achieve similar results with Ajax.BeginForm("SaveAction", new AjaxOptions()) ...

Framework Similar to ASP.Net AjaxPro

Currently, I'm using AjaxPro Framework (http://www.ajaxpro.info/) to call any methods in my web application from the client side. But users have some serious problems using it. (e.g success callbacks don't work in Chrome. More info about the problems could be found at: http://stackoverflow.com/questions/529711/ajaxpro-is-working-locally-...

jquery and ajax tooltips don't work on live loaded content

Hello Everyone, I am using Ruby on Rails and Jquery as my library and 2 plugins but this should be a fairly plugin independent question. I am using the jquery.pageLess plugin which makes an ajax call to the pagination that is built in to rails in order to load new items onto the page when you scroll to the bottom (much like the new goo...

Nested AJAX Calls

Hello, in first ajax call server returns a json string that is converted to js array. I want to run an ajax call for each element of array. For example, first ajax call returns semester 1,2,3,4. Now i want to retrieve subjects for semester 1 and show them in a table, then retrieve subjects of semester 2 and show all subjects in a table...

What is a good book for understanding Ajax in or around 100 pages?

I'm looking for a book in or around 100 pages (maybe 200) that will explain Ajax (from a high level) and talk about its' principles & patterns... Something like Steven Krug's "Don't Make Me Think"... Suggestions? The book is for my co-workers who do not have years of experience with Ajax. They do have experience in web application deve...

jQuery .load() problem in all IE versions

Hello, I'm trying to do a dynamic template. I have links in sidebar and I want to load the content dynamically with .load() in jQuery. I have the following jQuery code for that: // Services AJAX page loader jQuery('.sidenav a').click(function(){ $page_url = jQuery(this).attr('href'); // load page jQuery('#content').fadeOut(200...

Can Wicket have AJAXified drop-down menus?

I need to make a web page with Wicket that lays out the following table: +------------+---------+ | Category | Value | +------------+---------+ | CatA | ValA | +------------+---------+ | CatB | ValB | +------------+---------+ | CatC | ValC | +------------+---------+ | CatD | ValD | +------------+...

HTML formats correctly after applied focus.

I have a selection box that uses ajax to populate a div with new information. When I select an option the resulting text appears and formats correctly. However, when I select something new the resulting text does not format correctly and appears to be squished together. The problem goes away when I apply focus by clicking in the relat...

ajax.actionlink and disabling the link onSuccess in MVC 2

Hello, I have a scenario where the ajax actionlink text is 'Apply'..On clicking this and calling an action, i want the link to be disabled and to be changed to 'Application successful'. How can i do this? Thanks ...

HttpPostedFile in File Upload process is NULL if I use AJAX

I am using file upload fucntionality in my asp.net MVC project. It worked great until I started using some AJAX functionality on my page. The HttpPostedFile is always NULL on Ajax page. How can solve this issue along with calling ajax on my page? ...

Full Calendar: displaying start time

If I specify my events by hardcoding in a javascript events array, the time is displayed before the title on the calendar: The Javascript code of: events: [ { title : "my title", start : new Date(2010,9,8,11,12) } ] results in a display of "11:12 my title" as an event on my calendar. But, when I use an function to cre...

Jeditable Problem in castle monorail

Hi, I am trying to use Jeditables (http://www.appelsiini.net/projects/jeditable) in my first castle monorail mvc application I managed to have the textbox appearing and to the the ajax call, my problem is now that after the ajax call the edited text returs is not changes and i can t get the response after the call this is my page <he...

igoogle gadget and ajax

Hi, I would like to create a igoogle gadget, but I am trying to make a suggestion in a textbox over ajax. For example one textbox and if someone types in, then there should be comming suggestions. But this is posible with ajax. Has anyone an simple example what I can see? Thanks Nik ...

cfajaxproxy / cfc Help Please

Now I have everything working but it's not updating the database. Tried changing the code in the cfc page but that just brings up errors when I refresh the page to test it. So I do know it calling up the cfc page, but when i click the link, everything work but updating the database. What did i do wrong?? Below is the code I came up wit...

Jquery - prevent ajax requests from "stacking" up.

Alright there's two ways this can go. One is from the presentation side, and one is from the "processing" side. Right now I have a table of data set up. Certain actions (typing a search query, clicking a different page number, etc...) trigger a function called refreshData() refreshData() first calls showOverlay() which fades in an over...