ajax

How do I update row style on AJAX update?

I've got a datatable with row styling applied via rowClasses on the datatable. The rows contain AJAX buttons. When a button is clicked, it does some databasy stuff, updates it's text, and changes the datasource used by the datatable. The datatable then refreshes (as it's one of the ajax render options). The text of the buttons update...

AJAX Callback not being called

This is my ajax function: function ajax_call(call_method,data_to_send) { logger("function ajax_call. var data_to_send: "); logger(data_to_send); $('.clickable save_button').hide() $.ajax({ type: 'POST', url: call_method, data: data_to_send, success: function(data){ logger("data returne...

Creating a online webpage designer using jquery, is it hard?

I want to create an online web page editor using jquery. How complicated is this type of feature? (yes I know its hard to answer this) From what I can tell, you are simply referencing the various elements on the page and when a user selects a color in a colormap, you simply then cycle through the elements on the page that match a parti...

Jquery: Running AJAX locally without a webserver

Hi, I have the following function in a .js file in index.html function getValues(){ $.ajax({ type: 'POST', url: "http://localhost/getData/getdata.php", success: function(data){ var dataValues; var apnd; dataValues = String(data.NSE); apnd = "a"; updateValues(dataValues, apnd); dataValues = Stri...

.NET TreeView doing Postback instead of Expand when called through AJAX and rendered using RenderControl

I have a page which is using a TreeView. The TreeView is placed within a user control for ease of code reuse. If the user control is loaded directly on to the page, by using a Register for the user control and then placing it on the page, then it works fine - the nodes are expandable. In order to avoid having extra code on the page load...

jQuery Change Value of ASP.NET AJAX CascadingDropDown

I can use jQuery to change the value of a CascadingDropDown, but the event that fires which causes the target control's child dropdown to populate with data never happens: $("#<%= ddlFromCompetition.ClientID %>").change(function() { var fromValue = $("#<%= ddlFromCompetition.ClientID %>").val(); $("#<%= ddlToCompetition.ClientID %>"...

How can control focus be maintained across async postbacks?

I have a page setup like so: <ajax:UpdatePanel id="UpdatePanel1" runat="server" UpdateMode="Conditional"> <ContentTemplate> <asp:TextBox id="TextBox1" runat="server" AutoPostBack="true"/> <asp:TextBox id="TextBox2" runat="server" AutoPostBack="true"/> </ContentTemplate> </ajax:UpdatePanel> <asp:TextBox id="TextBox3" runat="s...

How to call ASP.NET AJAX CascadingDropDown raiseSelectionChanged()

Anyone know how to do this? This does not work: $get("<%= cddToCompetition.ClientID %>").raiseSelectionChanged(null); I have two separate CascadingDropDown controls, where a change in control A should trigger a change in control B (the one in my example). Control A is not the parent of B. ...

Further question on segmenting AJAX responses

This question is related to one I asked previously, see here. As a way to implement segmented ajax responses, I created a code which does this: The client first calls the script which initializes the process. On the server side, the startScript.cgi code starts generating data, and as it does this, it groups the responses into chunks, a...

JSF: How to add ajax functionality to component in backing bean?

I want to incorporate the functionality to a HtmlCommandButton. How do I go about doing that? I can't seem to find too many examples on the web. I see there is something called AjaxBehavoir, but I'm not sure how to incorporate that into my HtmlCommandButton. Essentially I want to do the following to my component: <f:ajax execute=...

persistent data in php question

OK Ive written this neat javascript 'thing' using jquery and ajax. Its all based on the idea that a div has an attribute that lets you write inside the div. (contenteditable=true). I thought it would be cool to make a chatroom type thing out of it, and holy cow its doing some cool stuff(*), but I have an issue. Using ajax I post to a p...

how to update a div with jquery based on drop down selection.

I have a drop down menu with 3 values. each has an option id. I want to make an ajax request and update a div based on the response from that request. I have sample code on jsbin in which I am trying to make ajax request to imdb. I don't want to parse the response back from imdb but want someone to show me how to update a div based o...

Ajax inside MOSS 2007 Web Part

Hi Guys, I am creating a web part in MOSS 2007 that contains an autocompleteextender. I have ajax-enabled my site by adding all the configs in web.config (Example here) My web service: [System.Web.Script.Services.ScriptService] public class AutoComplete : System.Web.Services.WebService { [System.Web.Services.WebMe...

Drupal 6 AHAH / AJAX Form Submission

Hey there, I'm building a custom module in Drupal 6 which display a block with a form and some other elements like text and images. When it's submitted, using AHAH, some logic takes place in PHP and then the result is passed to JQuery which will update the elements in the block. Mainly a few images and some text. I can't wrap my he...

Ext.Direct: matching return values to calls

I am making a sequence of Ajax calls using the Ext.Direct module. I want to save some data when I make each call, and then match each return value with the correct call. In the server call, Ext provide a tid property (presumable "transaction identifier") in the JSON packet which it uses match return values to calls. Problem is, there do...

Loading content via AJAX destroy the font in IE.

Look at this page. Press the orange -> button and then the <- again. This paginator shows the page 1 by default and load the other pages' content via AJAX. However, that default page 1 content and the ajax loaded page 1 content don't look the same in IE, even when the html and css are exactly the same!. You can see the font is thin an...

Looking for a Script to match and example

I've seen this site: http://www.visitmanchester.com Essentially all of the content loads on the same page, dynamically. Pausing to load the content then scrolling to the correct portion of the page. ...

An ASP.NET Chart control is refreshed on page post back -- but I don't want it to be.

An ASP.NET Chart control is refreshed on page post back -- but I don't want it to be. In my aspx, I have: <asp:Panel runat="server" ID="PanelRight" CssClass="roadmapRight"> <asp:Chart ID="ChartRemainingDaysHistory" runat="server"> <Series> </Series> <ChartAreas> <asp:Char...

Creating REST parameters for jQuery consume webservice

I am using jQuery to consume a web service I built, the input is currently serialized JSON, as well as the output via jQuery AJAX. I'd like to make the service more RESTful by adding URI query string parameters so that users can access the same same page of search results, query string, etc. etc., when they save the URI as their state. ...

jQuery Autocomplete isn't working inside the return function of a $.post call.

Basically, here's my code: $("#airway-bills").autocomplete(awbs, { mustMatch: true, autoFill: true }); $("#airway-bills").focus(); $("#selected-awbs").val(""); $("#origin, #destination").change(function() { var origin = $("#origin").val(); var destination = $("#destination").val(); var element = $(th...