ajax

Use windows authentication with ASP.Net AJAX

I'm working on my first application using ASP.Net with web services and I'm having an authentication issue. At least I think that's the issue. When I run the application locally in debug mode it works fine. It even works when I run it out of debug mode (through IIS) in IE 7. But when I have a coworker run it (from my IIS) on their box, ...

Where am I going wrong in calling ASMX web methods from jquery?

I have a simple webmethod on an asp.net 2.0 application (using the 1.0 extensions not the 3.5 ajax extensions). I'm attempting to call the method from jQuery and when I do it as the countless examples show on the Internet and here on SO, I get an Internal Server Error message returned. Here's my current code: [WebMethod] [ScriptMethod...

Securing a PHP file manager from its users

Hello everyone, I'm developing a photo sharing web site using the CodeIgniter PHP framework. The idea is that people could upload their photos, manage them (through some sort of file browser which allows them to create subfolders, drag files around, etc) and edit them (some basic things like resizing, rotating and cropping to start with,...

confused -- my XMLHttpRequest has readyState of 0 and status of 200

Hello, I've set a breakpoint in firebug and am examining my xhr object. Its readyState is 0, its status is 200. My understanding is that if the status is 200, the request should have at least started, and the readystate should be at least 1. Can anyone explain what's going on? I'm using jquery's $.ajax to create the xhr object, but I w...

N2 CMS rating user control

Hi all, I'm currently putting together a site in the N2 CMS framework. One of things I'd wanted to do was to be able to have users rate various elements of the site using a fairly standard star rating-style user control or something similar. Has anyone seem anything similar to this implemented within N2 specifically? Just looking for s...

Submit ajax form on keyboard close without a submit button on the iphone?

I'm having trouble with AJAX form submitting on the iphone. I have a search field at the top with no submit button. My plan is to submit the form when the user hits "Go" or "Search" on the iphone keyboard. Anybody got any ideas? Edit: I have the ajax working but I cant seem to get the keyboard to close after I press search. Here is the...

Microsoft AJAX client library vs jQuery

A lot of discussion are going on with jQuery and MS Ajax after the jquery integrated news. I'm currently in the process of convincing my team to consider jQuery, but I'm not a pro on either of them. I really want some good comparisons between jQuery and MS Ajax "Client" library, as my team is arguing that we can what jQuery can if we j...

onLoad or similar for Ajax?

Good day, I was wondering if there is a way to make Ajax move on to the next code segment only when all the elements included in the server-side code page are fully loaded. When the retrieved data is text-only there’s no problem, but sometimes there are photos included. This is part of the code I have been using: xajx.onreadystatechan...

How to create a photo gallery with slideshow effect of the images placed in server folder using jsp/servlet/javascript

I need to create slideshow of the images which are in server.These images would be changing as the user uploads. I need this using jsp/javascript/servlet/ajax ...

How to redirect to login page from a web service in an AJAX call?

I am using jQuery to call web service (*.asmx) methods. The web service uses FormsAuthentication to determine whether the calling user is authenticated. I am unable to return a redirect status code from the web method, e.g. [WebMethod(EnableSession=true)] public Dictionary<string, object> GetArchivedFiles(int pageSize, int page) { i...

dojo.xhrPost Not Sending any Data

I'm just getting into Dojo and wanted to try a simple AJAX Post like the examples on Dojo's website. Here is the HTML/JS: <form method="POST" id="addProjectForm"> <dl> <dt>Project Name:</dt> <dd><input dojoType="dijit.form.TextBox" id="projectName"></dd> <dt>Project Description:</dt> <dd><textarea dojoType="dijit.form.Textarea" ...

ASP.NET MVC AJAX Calendar

I am currently learning ASP.NET MVC and I have followed Stephen Walther's tutorial: ASP.NET MVC Tip #36 – Create a Popup Calendar Helper. The calendar is working, but I would like to change the date format to dd/mm/yyyy. Also are you able to add arrows at the top, so that the calendar can be changed by year as well as month? ...

MVC Ajax UpdatePanel

I know (at least i'm pretty sure) there isn't a control for MVC like the asp:UpdatePanel. Can anyone give me some idea on how to do this. I have a collection that i add entries to from my repository & services layers. in my masterpage i would like to show an alert depending on if there is anything in this collection. Normally i would h...

Random line break showing up when .load() results display on page

I've had this problem for a while, and I've isolated it to being caused the mysql_connect or mysql_select_db function. For some reason, when I use jquery's .load(), the response text will have a line break at the top when displayed in the page (in a <textarea>, for instance, but in any element). Looking at the response in Firebug, there ...

How to remove fading and sliding effects from Firefox

Are there ways to remove the sliding and fading effects from Firefox as an end user when I visit web pages that use such javascript effects? When some element is inserted into the DOM, the elements after it are slided down. This is a graphical effect, that is very time and bandwith consuming when someone is viewing over a remote connect...

little 'x' in textfield input on the iphone in mobileSafari?

I have been looking everywhere for this without any luck. If you go to google.com on the iphone when you focus in on the search field a little 'x' appears all the way in the right and if you touch it it clears the current value of the field. Anybody know how to accomplish this? ...

AJAX live email validation (PHP)

When a user creates an account on my website, i want the inputted username to be checked against all the current usernames in my database(MySQL) and confirmed if it is available. Does anyone know any good libraries i could use, or a plug-in for JQuery perhaps? Thanks, Ben. ...

AJAX presentation ideas

I'm doing a presentation at my work about AJAX and am trying to come up with ways to make it interesting, especially for the more senior programmers. I plan on explaining Ajax and then maybe showing what the actual XMLHTTPRequest code looks like. Maybe screen shots of HTTP request and response. But I'm really wanting to do something over...

Inline editing with AJAX - how do I create multiple editable areas on the same page?

I found a tutorial on how to create editable regions on a page using AJAX. This is great, except it was written for a single element with a unique ID. I'd like to be able to click on multiple elements on the same page and have them also be editable (e.g., I'd like to alter the script below so it works not with a single element, but with...

Remote File upload in grails

I am creating a webapplication using grails which uses lot of ajax.I want to implement file upload using ajax.I dont know how to use ajax for file upload.My sample GSP code is : <!-- code for file upload form--> <div id="updateArea"> </div> I tried with and .After uploading I want to update the 'updateArea' with the result.In result...