ajax

jquery $.get in IE (and also chrome?)

I have (http://science.users.anapnea.net) a section of html/js that isn't playing well in other browsers. The section in question is an anchor tag that calls a jquery $.get function: $.get("info.html", function(data){ $('#page1Content').html(data); }); This is doing nothing in IE, but works fine in FF and Chrome. The only hint of...

AJAX question auto save

I am practicing on ajax. I don't know what, or how to do it. This is my first time to do this. Here is my code. <?php function save() { // mysql connection $text = $_POST['name']; // insert query } ?> <input type="text" name="name" onchange="<?php save() ?>" value="default"> What I'm trying to do is like this. The input type ...

Need help debugging XHR-based Ajax Image Upload with ASP.NET MVC2

I'm attempting to use the script found from http://valums.com/ajax-upload/ My controller is as follows using System; using System.IO; using System.Text.RegularExpressions; using System.Web; using System.Web.Hosting; using System.Web.Mvc; using MHNHub.Areas.ViewModels; using MHNHub.Models; using MHNHub.ViewModels; namespace MHNHub.Area...

Collapsible panel inside GridView

I'm developing an ASP.NET 3.5 web application using C# with AjaxToolkKit. I have a following question. How can I put a collapsible panel inside GridView to make a master and detail list that expands to display the detail panel when view link in a row is clicked? This is something similar to the download list in MSDN page. Thanks ...

will_paginate ajax pagination with thinking sphinx

Has anyone ever tried paginating a thinking sphinx result set thru ajax? I have this is in my controller action: @results = Model.search params[:query], :page => params[:page] || 1, :per_page => 1 and in my application.js: $(".pagination a").live("click", function() { $.get(this.href, null, null, "script"); return false; });...

How to append a <li> as the first list item in a <ul>

I have a html page (index.html) which calls the ajax page(aj.php). The Ajax Page will return some number of <li>'s, like <li>Blue Flower</li> <li>White Assassin</li> I already have some list items in the <ul> of the html page(index.html). When i try to append the result of the ajax page i.e.,<li>'s, it is appending at the last. I wa...

Php - upload file with ajax

my 2form.php : <script type="text/javascript" src="mootools.js"></script> <script type="text/javascript"> function test() { url = '2form.php'; var ajax = new Ajax(url, { method: 'post', onComplete: function(response) { document.getElementById('error_upload_logo'...

How to scroll a <li> while appending it into group of <li>

I have a Div Container which holds 4 <li> what I am doing is prepend a <li> into the <ul> and remove the last <li> I did that quite easily using $('#news-ul li:last').remove() $('#news-ul').prepend(str); //str contains a <li> I want to have scroll effect when the <li> is prepending. How to achieve this. Plz help me, any help will b...

Jquery Validation And Update Panel Together

Hi, I m trying to use jquery validation plugin but my form is in update panel> So even after applying the validation on submit the form it validates n shows the required message for hardly 2 seconds and then submits the form. What is the workaround of this. Please help me if you can. Everywhere on site different w...

In jQuery, how can I monitor a dynamically populated element (AJAX), without basing it on an event?

I have the following markup on page load: <select name="sel_billing_address"></select> After page load that select is then populated by some AJAX to be something along the lines of: <select name="sel_billing_address"> <option value="1">hi</option> <option value="2">there</option> <option value="3" selected="selected">sally</opt...

In what is the pip.io UI built?

Can anyone tell me if the http://pip.io UI is built in AJAX or only JavaScript? The reason I ask this is that I noticed the UI is scalable in the browser. So with different screen resolutions it displays the same. ...

Return array *after* JSON is done?

How do I make this function return the entire array when it's done pushing all markers? function XTW_getLocations(data, div_id, map) { var markers = []; var marker; var latLngBounds = new google.maps.LatLngBounds(); $(div_id).empty(); $.getJSON('GetLocations', "country=" + data.id, function(data){ ...

Jquery ajax function and downloading files

Hi all, I am using $ajax( { type:"post", url:"/whatever/" } ) to access my server which works nicely. The problem is that the response is not evaluated as I need it. On some occations the server sends back a dummy string ("x") which can be ignored on the browser, but on other occasions my server sends back a special file as attachment: ...

Ajax framework failed to load with Gzip compression on IE only

Well, I got gzip working, but there are issues with IE. (works fine with FF and Chrome) Message: ASP.NET Ajax client-side framework failed to load. (and many other js related errors) How can I prevent gzip compression on ie browsers ?? Other people who had similar issues enabled compression in IIS and that seems to solve the issue, but ...

How to tell an ajax request in ruby

IN PHP its like this but in Ruby is how if (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH']=="XMLHttpRequest") { }else{ // header("Location: " . base_url()); } ...

ASP.net - LinkButtons in a Repeater within an UpdatePanel are not triggering a postback of any kind.

My page contains a Repeater that is loaded with data asynchronously as the data becomes available, using an UpdatePanel to manage the asynchronous requests. The page contains something a little like this: <asp:UpdatePanel ID="DataUpdatePanel" runat="server"> <ContentTemplate> <table> <asp:Repeater ID="RepeaterBlock" runat="serve...

Looking for recipe: Multiple async Ajax requests in JavaScript

I am about to spend a lot of time solving a problem, and I wonder if there is an existing recipe for this. It's a browser-based application (JavaScript and Dojo Toolkit) that is a client of a RESTful Web Service. It uses Comet to automatically update the display. There is a callback function that processes every message received. [Bo...

Can the out focus stop the call?

Ok so I have an autocomplete field heere that is making an ajax request every keystroke...But the .focusout() should kill the autocomplete because intuitively if the user leaves the field and moves on the next field it should not give you any suggestions bacause you already left the field. Any ideas on how to do this. Here is my code. I ...

Kohana 2 jQtouch Jquery

Trying to load some data from mysql into the next screen using jQtouch. What is the correct way of doing this. Right now I just have a jquery click event on the tag for the next page which really is just a div on the same page. The jquery looks like this. $.post("/mobile/getCities", {}, function(data){ loadURL($(this).attr('href'), "#...

Can you help me understand this documentation

I have this AjaxQueue that i am trying to implement but I am having problems and even looked at the documentation and I am still unclear on how to implement it. I read it twice and still having troubles Here is my code: I want to wrap this in the Queue manager $('#request_artist').autocomplete({ serviceUrl: '<%= ajax_path("artistNam...