ajax

how to get a return value from ajax and php

ive set up a php file, called by ajax, to interact with my database. so far i have successfully used json to get the data back from the sql requests. now i am returning my own values from the php file, and trying to get the value back into my javascript. but they are returning as empty. this is how i am doing it: // in the php file, get...

Image control in gridview sent as XmlHttpResponse throws "Object required" error

I have a gridview as given below <asp:GridView ID="gdNotes" runat="server" AutoGenerateColumns="false" Width="913px" DataKeyNames="NoteId"> <Columns> <asp:TemplateField HeaderText="Select"> <ItemTemplate> <asp:LinkButton ID="lnkS...

animated Photo upload control

Hi there, would u recommend the best ajax upload photo control for asp.net? i need to show the progress bar while uploading the photo and limit the file extensions to jpeg, gif, and ico only. been looking into Ajax upload jquery and multiple file upload plugin but they're not what i'm after. thanks ...

ajax img change

i have implemented a code that fetch single image from 1000+ images. The image has been changed using ajax call and downloading time of each image varies. How to make this image change with smooth transition from one another i.e without any flicker and ajax processing image ...

How to use AJAX with IE8

Hi guys, can anyone of you tell me how to use ajax with IE8? (ActiveXObject) is not working here. ...

handling the display of choices in dependent select elements, in html

Hi guys! Firstly, I am sorry, i just can't seem to phrase my question well. Setup: I am using Drupal to build this location-based application. i have a form which allows the user to select his/her location. the form has 3 'dependent' select elements e.g. country, city, state. they are dependent in such a way, that selecting a partic...

Ajax Not Working Right In Chrome/FireFox

This script I wrote works perfect on IE! It works on Chrome and FireFox the first time you do an action but it fails on the rest. The script is simple. You can Add or Delete a user and each time you Add or Delete a user it updates the Updates the list. function Add() { http_request = false; cache=Math.random(); var username=doc...

Fade in AJAX loaded content?

var request = new Request({ method: 'get', url: 'onlinestatusoutput.html.php', onComplete:function(response) { $('ajax-content').get('tween', {property: 'opacity', duration: 'long'}).start(0).set('html', response).set('html', response).tween('height', [0, 650]); } }).send(); Before I load the desired content into...

codeigniter and ajax help

I have a form that has sections hidden until, the correct piece of data is submitted. I am wanting to do this through jQuery and ajax. I was hoping that I would be able show the next element on the form if the last piece entered into the database ok, currently my controller looks like this, function add_career() { $data = array();...

how do I access the return value of this ajax request?

Hi there, I have this code var stats = { GetMetaData : function() { var url = 'http://www.bungie.net/api/reach/reachapijson.svc/game/metadata/'+storage.get('apikey'); $.ajax({ url: url, success: function(data) { return data; } }); return 'abc'; ...

How to make a cross domain AJAX POST call from a Sharepoint Webpart?

I need to call a (HTTP) REST API as as POST call - basically, it allows me to post a message to a forum/community. Since, there is currently no way of authenticating over the API, I need to depend on browser cookies. ie, have the user logged in to the community and then use the API calls. This means, server proxies are ruled out. And b...

Setting up AJAX progress bar

Ok im new to AJAX. Kind of know about the lifecycle of a request, IE uses ActiveXObject stuff like that. However now im faced with a real world problem. I have a servlet running in the background that performs a number of tasks and i would like to display a progress bar to show where the process is up to and to also show that something ...

jQuery call followed by clicking accordion control fires Ms Jscript error

Hi. I have jquery modal that works perfectly fine. But after closing this modal and clicking on accordion control(MS ajax) fires Jscript runtime error Microsoft JScript runtime error: Sys.ArgumentTypeException: Object of type 'AjaxControlToolkit.AccordionSelectedIndexChangeEventArgs' cannot be converted to type 'Sys.Ca...

ASP.NET - Tab order not working after ajax postback - Goes to the browser url

Hi Team, I have used Update Panels in my ASP.net webpage. I have a modal popup. But the tab index is set to -1 for all the parent page controls once the modal popup comes in picture. Does anybody has resolution for this. I tried again reseting the tab index through javascript......But its not working(may be DOM is not getting refreshed)...

Generate an image an show it in a html page without write it on the disk

In a my project in Ruby On Rails (but this is not important), when I load a html page, I need to decrypt an image (jpg) and show it in the web page: after the page request, the image is decrypted an the file is write on the server disk, so the browser can show the image. I don't want to write the image on the server, but I want to encry...

In IE, I can only send request to server 7 times maximum when using ajax

Hi All I added ajax to a web application with 7 'select' tags, in which selecting an option would populate the following 'select' tags with the related information. And some of these tags can also show another set of radio buttons or checkboxes. In all, you can make more than 10 requests to the server until you get your desired product....

How to implement Microsoft Ajax Minifier to ASP.Net web site project

I have a ASP.Net web site project Pokemon Online game . i want to implement Microsoft Ajax Minifier 4.0 to my website for making it more effectively . But i could only find this tutorial about how to implement http://stephenwalther.com/blog/archive/2009/10/16/using-the-new-microsoft-ajax-minifier.aspx but the problem is this tutorial i...

what is jquery and xquery

what is the best place to learn these ...

Odd jQuery problem - Ajax request to a C program not quite working.

I have this basic setup: C program opens a socket on a specific unused port (let's say 1234) and waits, listening specifically for HTTP requests. Webpage on the same machine, written primarily in CGI, uses jQuery to make an AJAX request targeted at localhost:1234. What I'd like is for the C program to see the request, take some data ...

mvc - Storing checkbox states in multipage grids

While there are similar questions here, none gave a complete answer, so I am posting a new one. I have a paged grid - jqgrid - which receives data from server by ajax, N rows (10, 20 and so on, depending on the user selection) each time. There is a boolean value in the grid row model, which is transformed into a checkbox in the displaye...