ajax

JavaScript\JQuery - identifying if radio button value changed by click

I have a page that displays a list of records. The user can select the record status using radio buttons, e.g.: <div id="record_653"> <label><input type="radio" name="status_653" value="new" checked/>new</label> <label><input type="radio" name="status_653" value="skipped" />skipped</label> <label><input type="radio" name="status_...

Textbox and focus problems with Timer controls(asp.net)

Hello. I am needing to create something like a lock timer(a little thing that just updates a lock time in a database). I thought the Timer control would suite my needs, but whenever the Timer control causes a partial post back, recently typed text in a textbox can disappear(inbetween the post back begin and post back end) and it loses fo...

How to use jQuery AJAX for an outside domain?

I am trying to perform a simple jQuery AJAX attempt using either a .get() or a .post(). If I have a local copy on my server and do: $.get('/hash.php',...,...) I monitor in my console in firebug that the get is done and I get a response. All I change is the URI to an outside server and nothing happens. $.get('https://secure.mysite.c...

Manipulating a variable containing XML with jQuery?

I'm using AJAX to receive an XML response, which I then need to manipulate. By using jQuery's context option, I can select from the XML data, but I am still unable to write to it. $('blah', xml) selects xml just fine, but $('blah', xml).removeClass( 'myClass' ) seems to do nothing to the xml variable! How can I achieve the function...

JQuery submit form after clicking on link

Here is the JQuery: $(document).ready(function() { $('#autosave').click(function() { var url = window.location.pathname; $postData = $('#content form:first').serialize() + '&' + $('#content form:first .input-submit').attr('name') + '=Save'; $.post(url, $postData, functi...

(ASP.NET AJAX) How do you disable the ticker after it fires an event?

So i'm implementing a feature where after a user has visited my site, and not signed in and not registered for over two minutes, an alert pops up and asks them to take a survey. I agree, annoying, but it's a business requirement. I thought about doing a Session Object, and then in the page_load of the header (since it's on every page) ...

Does this registration process seem simple enough?

Building a website that has English & Japanese speaking users, with the Japanese users being actual paying customers (they're businesses looking to promote their presence). Their registration process is a tad different than the English users. Here's what I had in mind, tell me if there are any glaring mistakes I should avoid: User -> H...

Update div on AJAX submit jQuery is updating all divs...

I'm trying to update a div with an ajax post. Problem is...it's updating every div. Here's the json.php: //json.php $data['months'] = $db->escape_value($_POST['check']); $data['id'] = $db->escape_value($_POST['hidden']); $query = "UPDATE month SET months = '{$data['months']}' WHERE monthID = '{$data['id']}'"; $result = $db->query($...

Internet Explorer XHR not sending

I'm working on a CakePHP application, running on IIS, using jQuery to handle AJAX requests. (As per usual) everything is working fine in Firefox, but in Internet Explorer (7, at least) my AJAX pagination links fail. I click the link and get this message: This page is accessing information that is not under its control. This poses a ...

Is EXT JS a good alternative to JQuery

Hi, a colleague suggested I give this framework a try. My question is, does anyone have any feedback about this, is it better than using JQuery UPDATE: I found this posting which partially answers some of my questions http://stackoverflow.com/questions/835755/how-different-is-ext-js-from-others-like-jquery-and-mootools ...

Two rapid AJAX calls confuses PHP

I just ran into something weird. I have two JSON arrays which holds different data. Usually I just need data from one of them, but when I try to do a dual ajax call to get data from both arrays, I end up with the exact same data on both calls. Say array 1 holds JSON data on users, and array 2 holds JSON data on houses, and I want to get...

calling javascript confirm from code behind not working.

Protected Sub btnDelete_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnDelete.Click Dim ResourceObject As Object Dim js As [String] = (vbCr & vbLf & " if(confirm('Esta Seguro de eliminar de la lista')==true)" & vbCr & vbLf & " document.getElementById('" & txtRespuesta.ClientID & "').value='true';"...

a better way to do ajax in django

The other day I wrote some AJAX for a Django app that i have been working on. I come from Ruby on Rails, so I haven't done much in the way of raw JS. So based on Rails' partials, I something similar to the following in a sort of pseudocode, don't sweat the details: 1) JS function using prototype's Ajax.Updater ('tablediv' being the id...

Comet, Tomcat and READ events

Trying to get my way trought Comet with Java servlets, I encountered a big problem: There seems to be no way to use the established connection to the client to send the server additional data from the browser (works in plain java when writing to the inputstream). Following problem arises for a CometChat application when a Client connect...

How to get javascript to run after AJAX calls

Okay, a little preface: I am still a beginner when it comes to AJAX, and dynamic web stuff. My problem is similar to what was asked in the following, but I think that discussion is using a framework, and I am not. Potentially related post Here is my scenario: I have several select elements in a form. The initial select's option elemen...

Microsoft's AJAX Toolkit vs. jQuery

Our team has been using Microsoft's AJAX Toolkit since the days of Atlas. In a bit of naivety we missed the jQuery/Prototype phenomenon until a month or two back. Until now, we have always associated the concept of Ajax with Microsoft's toolkit. In reading up on jQuery I'm seeing a whole new side of Ajax that I was only vaguely aware ...

How to detect quirks mode in Safari 3.0.x?

Safari 3.0.x doesn't support the document.compatMode property to detect whether the document is rendered in standards or in quirks mode. Safari 3.1 and newer do support it. How do I detect the document mode in Safari 3.0.x if document.compatMode is not available? ...

IE6 JQuery Troubleshooting tips requested

I'm fairly new to JQuery, having taken over this product, and I'm not sure the best questions to ask in troubleshooting this, so any help would be appreciated. The situation: We have web pages that use JQuery, which run on correctly in our environment on IE6, IE7, and Firefox. They silently die as well, so any tips on how to gather use...

AJAX JSON calls in MVC to filter List in my View

How would I use Ajax do a filtering on a list view in MVC. Scenario: List all the news items. To the left is a filter list of categories. Check which categories to show and click the filter button ( or as you check and uncheck it performs the filter ?) to filter the list of new stories. Here's my View code for iterating the items in ...

How do you handle multiple AJAX requests in PHP?

My AJAX search program keeps asking PHP for results of a particular search term. The start of the PHP script reads thru a MySQL DB and initializes, so if the PHP keeps restarting, it will have to read the DB millions of times. If I can keep it alive and let multiple silly AJAX requests be served by a single running PHP script instance I'...