ajax

RegularExpressionValidator VS Ajax 1.0.20229

We have a website that runs .NET Framework 2.0 with Ajax version 10618. But as it is, that is an old version of the dll, so we planned on switching it to the "newest" version of it for the .NET Framework 2.0, the AjaxControlToolkit version 20229. On our tests, we detected a problem with the ASP control RegularExpressionValidator, whic...

How to reload the custom javascript file after Drupal makes ajax call?

Hi, How one can reload the custom javascipt file after ajax call is completed. In my case I have a custom javacript file to manipulate the views data and filters. It works perfectly first time. But once the user sets filter and hit Apply i:e after ajax call the javascript loose its importance. Its their but not registering any event. ...

Character encoding issue when loading a div using jQuery.load()

Dear gurus I have one page encoded with utf-8 that is login another page also encoded with utf-8. In order to load one page into a div in the other, I use them load() method of jQuery 1.4.2. Everything works fine in Chrome, but in FireFox all the non-american characters are shown as a strange mark. If I use FireBug to inspect the loaded...

Can I use update panels with jQTouch?

I am using ASP.NET controls to fill in HTML for my jQTouch application, but I am having trouble with my hrefs ceasing to function as intended on my search page. The jQuery function for my anchor class evidently does not get called; it simply links back to the default page, even though the link is built similarly on other pages without an...

Ajax query to my webservices is returning xml in my json

Hi I am having this exact problem as raised in this question http://stackoverflow.com/questions/1121559/asp-net-json-web-service-always-return-the-json-response-wrapped-in-xml It's late and I have been sitting in this chair for 10 hours now trying to get ajax and json to work and all I got was deeply frustrated. So does anyone know ...

jQuery : how to add a delay to an ajax request ?

Hello, i have a function which returns a certain ammount of data triggered in AJAX when typping. But, as soon as i type "long" string like "hello my name is", it launches a single request each time i type a key (10request at a single time and it takes 5 seconds to get 1 request response). How to avoid that please ? (i don't want to...

strategy to split up php output into smaller outputs (ajax, php) (nested ajax calls, ajax within ajax?)

Hi, I don't know the correct terminology to search for the solution. Please suggest a strategy to break up the php output into small chunks and pass them stepwise to ajax's responseText. The project is an ajax webpage that takes a text string (lastname) and passes it to a php program. The php code takes the last name and randomly fet...

Ajax replaces a bunch of HTML, how to update the associated jQuery actions like Drag And Drop?

So I've finally figured out a system for refreshing portions of the screen using Ajax, Taconite, and jQuery within Django, sortof like Ruby on Rails partials. I was pleased, but unfortunately, the code associated with clicking and drag and dropping is not executing. I'm replacing the html inside divs. How can I keep my code modula...

Prevent Rails app from responding to unintended AJAX request from jQuery

I've built out a fairly complex Rails (2.3.8) app with a lot of jQuery ajax requests. There is an occasional bug, which I have difficultly replicating, where a jQuery $.ajax({..}) request will request a page it shouldn't (like the dash page, which is never called with an ajax request)... What ensures is absolutely madness. Incredibly st...

Ajax form partials in Rails for multiple Models

I have this piece of AJAX code (took from: http://badpopcorn.com/blog/2008/09/11/rails-observer-field/) that is present in many views (new.html.erb and edit.html.erb mostly). To avoid code duplication I pretend to make use of partials: app/views/cities/_state_city_form.html.erb <p> State: <%= select(:state, :state_name, City.all(:sel...

Practical use cases for returning javascript from an XHR/Ajax request?

I've never really had to return javascript from an XHR request. In the times I've needed to apply behaviour to dynamically loaded content I could always do it within my script making the call. Could someone provide actual real world cases just so I'm aware, of when you'd actually need to do this ( not for convenience ), or some reasons ...

Getting Invalid at the top level of the document. Error processing resource 'http://localhost:8080/AjaxDecoder/response'. Line 1, ...

Getting the following error when loading the URL in the browser: The XML page cannot be displayed Invalid at the top level of the document. Error processing resource 'http://localhost:8080/AjaxDecoder/response'. Line 1, ... Using Eclipse with Tomcat integrated. My web.xml file is: <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, I...

ext js grid-ajax issue

i have placed my Yuigrid in UpdatePanel ,but the grid invisible. why ...

How to disable refresh button once user goes on a particular web page ?

Hi I have to create a web page for a online quiz which will display same questions in different sequence for each user. Now, I have written code which takes questions randomly every time when user visit that page. User goes to that page by login id and password. I have used random function in query which gives questions in different o...

How to wrap return type of ajax call in success with function

I have a Web Service and it always brings back one object from my class that i defined on the server side. in success method of $.ajax function i always get the this object. And on the client side i want to add couple of functions to display its properties quickier. Is there a way do that ? (JSON object will return, i am worrying about...

Ajax loading images in XML - loading image and fade?

I am loading in an XML document with multiple photos in it, via ajax. The process my function goes through is this: Open a UL Open a LI Open an img tag set the src to = the url in the xml document (see below) close img tag close LI open a LI open an img tag set the src to = the url in the xml document (see below) close img tag close LI ...

Ajax preloader for SWF files.. is it possible ?

Hi all, I am looking for a javascript based preloader that can handle .SWF (flash) files. I'm very much aware that it is possible to preload a flash file by using another flash file, but I was wondering if anyone knows about an AJAX preloader that can load swfs (also, a progressEvent would be a nice extra) and then add the flash file ...

Textarea auto complete & validation if possible?

what i am wanting to do is a textarea where users enter comma separated tags 1. autocomplete how can i autocomplete each tag (substring of the textarea) eg. ph -> suggest php, phxxx ... php, zend fr -> suggest zend framework, zend frxxx ... 2. validation if i can do autocomplete, can i do validation per tag? eg. in SO, users bel...

How to paginate two tables in one view

Hello,I want to ask if i can use will_paginate plugin two times on one page? For example i have table with male users and table with female users on one page or in one view and I need paginate both tables. My question is what is the usual solution of this problem? ...

How to resolve error when ajaxtoolkit 3.5 is used "The Controls collection cannot be modified..."

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>). I am using it in Gridview's EditTemplate Field to show color with ajax 3.5 This is my master page hierarchy <%@ Master Language="C#" AutoEventWireup...