ajax

How to ensure AJAX encoding will work

I'm using Jquery to submit the value of a <textarea> through AJAX to a PHP script. This value may contain punctuation characters (!,?,#,@) as well as single and double quotes, and other non-alphanumeric characters. Does Jquery take care of encoding all this stuff or do I need to do it myself? How can I be certain that whatever the user t...

How to add the Ajax Control Toolkit to Visual Web Developer Express 2008

Anybody knows where to copy the AjaxControlToolkit.DLL so that it appears in the Toolbox under Ajax controls? Thanks! ...

problem with dropdown with php and ajax

For some time i am battling to solve this problem but iam not coming to any conclusion so thought to seek some help here. The problem is that i am getting a blank dropdown instead i should get list of cities populated from the database. Database connection is fine but iam not getting anything in my dropdown. This is what iam doing: ...

Is it possible to use muliple AJAX libraries on one page?

Hi, I am just curious. There are many ready-to-use AJAX libraries out there like Mootools, Scriptaculuos, Prototype, YUI etc My question is, is it possible to combine them? If I download all the code and put them on the same page, will it cause errors? Which open source AJAX library would you recommend for a beginner? ...

Using Page.IsPostback Within a USer Control Wrapped in an Update Panel

I have main page into which i load a user control with a grid and add/edit link buttons. If I bind the grid by setting the datasource and calling the datebind() method in the page load event then it sets properly. However, I want to keep the selected row between postbacks, so I wrap the bind code in "if (!Page.IsPostBack) {}" as usual....

How do I write a Rails chatroom?

I need to make a chatroom for my Rails app. Are there any good tutorials for writing one? Will it be a non-Rails technology that I simply plug in or are there some Rails libraries that are meant for it? I want to save each message to my PostgresQL database, and I want all previous messages to be visible - a perpetual chatroom. ...

Jquery getJSON to external PHP page

I've been trying to make an ajax request to an external server. I've learned so far that I need to use getJSON to do this because of security reasons ? Now, I can't seem to make a simple call to an external page. I've tried to simplify it down as much as I can but it's still not working. I have 2 files, test.html & test.php my test.htm...

Trying to get a simple example of asp.net ajax dropdownlist autocomplete extender to work!

Hi, I want to test the dropdownlist autocomplete ajax extension to work. I am testing this in Visual Web Developer Express 2008. 1) I dropped a textbox on the default.aspx form 2) Dropped a scriptcontrol from the Ajax Toolbox 3) Extended the Autocomplete extension to the textbox BTW, at this point, if I display the properties for the ...

Passing associative array through AJAX to PHP

I'm trying to pass this to a PHP script through AJAX: var answers={}; for (x=0; x< allAnswers.length; x++) { answers.x=new Array(); answers.x['id']==allAnswers[x]['id']; answers.x['val']=$("#field_" + x).val(); } var data={}; data.id=questions[qId]['id']; data['answers']=answers; $.post('inde...

Handle www-authentication request using ajax?

Is it possible to pass credentials using AJAX to a webserver that request www-authentication? I want to log in to a website that uses .NET Bsic www-authentication, and pass the credentials using ajax. When visiting the server with a browser, the browser prompts the user with an authentication/login window. The html header contains this...

service call via jquery

I'm trying to write username validation using jquery, I'm using jmsajax plugin.I have tested webservice, it work fine. I'm getting error. Webservice code [System.Web.Script.Services.ScriptMethod(ResponseFormat = ResponseFormat.Json)] [WebMethod] public bool check_username(string uname) { DBMOdelDataContext db = new ...

Browser compatibility between IE6 and IE7

I'm developing a project in which I need to change the language according to the flag I click using AJAX. It's working fine in IE7 but it shows an error when I run it in IE6. <html> <head> <script type="text/javascript" src="http://www.google.com/jsapi"&gt;&lt;/script&gt; <script language="javascript"> google.load("lang...

GridView.PageIndexChanging fires but there's no SelectedIndex afected!

Hi. I have tow diferent implementations for the same problem. A gridview that is binded with some data and it has a select column that has a button. When the button click is fired I know in debug that the : sender.SelectedDataKey and sender.SelectedIndex have values that I use later. But now I whant to use the ajax accordion control. I...

WebSphere Application Server Feature Pack for Web 2.0

We are in the process of doing a POC on AJAX push technology. Some of the things we are looking at are Ice Faces Push Technology, Richfaces a4j:push and WebSphere Application Server Feature Pack for Web 2.0. We find an issue with WebSphere Application Server Feature Pack for Web 2.0 in that going down this road we become a slave to th...

jquery jqModal Ajax and nested modal problems

I just started using jqModal as I need support for nested modals. I'm noticing some erratic behavior with nested modals and ajax, but I don't know exactly how to fix it. What happens is when I load the main modal, that has a nested modal in it, I get two jqmOverlay divs, it's like it's applying the overlay for both modals, even though ...

PropertyAnimation

Does anyone know of any detailed documentation for MS Ajax animations? Specifically,I'm looking for help with the PropertyAnimation, but I can't find anything except the "reference" which doesn't give me enough to go on. ...

A problem setting timeout feature in with Jquery AJAX.

Hello, I have a jquery HTML page which loads a form. The form has a bunch of settings, but eventually the form gets submitted using a post command (see below) which returns an HTML page built by a script running on the server. This works fine, except when the script runs longer than 5 minutes. The post command just returns nothing. I...

How do I get the exception message from a failed jQuery request?

If I use jQuery ajax with an error handler and the ASP.NET MVC action that I'm invoking throws an exception, I'd like to be able to display the message in the exception to the user. Right now I'm using: $.ajax( { ... error: function(request,status,error) { var exp = new RegExp('<title>(.*)<\/title>','i'); if (e...

AJAX progress bar dispaying loading progress percentage for page load

Hello, How do you use a progressbar to show the loading percentage for a page? ...(similar to how they show in flash) Thanks ...

File uploading in AJAX updatepanel without full postback

I have a update panel, in the update panel I have fileupload control and button control, On button click, I need the file that I have upload in the fileupload control in updatepanel. Exact scenario, I have 8 tabs on page, each tab contains too much information, One of the tab is Attachment, when user click on Add New Attachment Modal P...