ajax

ASP.NET - Dynamic Control Values & Postback

I'm trying to persist the contents of a textbox through a postback, and I've exhausted all of my effort but can't get it working right. What should happen is: User selects a radiobutton Depending which button was selection, a usercontrol is loaded to specify some data and a viewstate to say which enum type it's equivalent to. When th...

receiving a http 413 error on doing a Asp.net Ajax postback

We’re building an Asp.net SharePoint application that includes an Ajax polling mechanism. The site contains data that is coming straight from a backend system which is refreshed every 5 minutes. It is important that when the new version is arrived all logged in uses get the new data within a few seconds. We’ve made a http handler which t...

Telerik RadAjaxManager still postbacks

I've the following code in my page: <telerik:RadAjaxManager ID="ajax_manager" runat="server" DefaultLoadingPanelID="ajax_panel"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="mygrid"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="mygrid" /> </UpdatedControls> ...

how to integrate ajax to my project

What do i need to do for putting ajax functionality to my project. What tool kit do i need to download or how can i integrate that . and do i really need to do something for putting update panel for my project? ...

Safari/Chrome 5 : appending '&_' /000 at end of Form Data

Hi everybody, Safari and Chrome v5 are appending &_ or /000 to the end of Form Data using Ajax. Some times they fix that and later comeback again in new versions, now in five. Could someone say to these guys who is difficult to fix our problems to fix the genius of others. Can someone explain why they need this at the end of Form Data a...

Why is Jquery sending "undefined=undefined" as my post parameters instead of sending the array data?

I am attempting to send a javascript array to my web server for an ajax request. Here is my code: function SearchTasksByTags() { // Get the list of tags currently chosen var tags = []; $('.tagit-choice input').each(function () { tags.push($(this).val()); }); // If we have no tags, don't bother searc...

Call PHP Function from Smarty with AJAX with no user action

I am hitting a lot of different sites to get a list of information and I want to display this information as I get it. Right now I am using a Smarty Template and what I would like to do is: Pseudo code: {foreach $page} $smarty_var = use AJAX to call a PHP function Render out a new table row on the fly w/ the newly assigned var ...

Ajax Toolkit Editor in ListView does not render toolbars

I am attempting to use the Ajax Toolkit's HTML Editor in a ListView, but unfortunately it's not rendering the toolbars when I do. It actually appears that the Javascript simply isn't initializing. If I move the editor tag outside of the ListView on the same page it works. <asp:ListView runat="server" ID="lstValues"> <L...

JAVASCRIPT / AJAX : Why I'm NOT getting xmlhttp.readyState 1 and 4 ?

My Problem xmlhttp.readyState is always 2 then 3 in firefox and other browsers in Internet Explorer the opposite, and 1 and 4 is missing. My Code function like(id,type){ if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else { // code for IE6, IE5 ...

Best practice for organizing JavaScript coming back from Ajax calls

I am writing an application (Asp.Net MVC) that contains a lot of reusable components. I am currently loading these components with Ajax calls, using the jQuery library of course. These components will be calling other sub-components as well, and so there are all these JavaScript coming back. So question is, where should I put the "ca...

Best Practices for Editing Hierarchical Data

I just finished making a change to an ASP.NET Ajax screen from a few years back. It was harder than expected to build and maintain. On this change, I estimated 12 hours and spent 4 days. Granted I also did extensive refactoring to simplify the code. This is actually some pretty fun code, but I wonder if there was a better route for the ...

Where to Apply User Based Data-View Customizations?

I have a fairly large ASP.NET MVC 2 application that requires a large amount of user profile based data customization. This involves things like adding/removing table columns or applying user specific column headers in data returned by AJAX requests. There are dozens of types of customizations possible and there are many permutations sup...

.ajax posts and gets response on local server, no response on web host

Hi, I'm using an ajax call to do a minor calculation then return the value and display it in the page same page where the form is submitted. In Firebug it says it calls the function, however doesn't get a response. (I have a similar form that writes to a database that works fine, seemingly because it doesn't need a response - firebug ...

Ajax request delimiters for data to be sent

Hi All, I have such an issue var url = "index.php?id=123&sid=321"; $.ajax({ type: "POST", url: "some.php", data: "name=John&url="+url, success: function(msg){ alert( "Data Saved: " + msg ); } Now here we have url which contains an & , but & is used to delimit data variables to be sent to server and so since we have...

ajax jquery post problem--can't retrieve values

I'm trying to use form submit with jquery without a page refresh as demonstrated in this tutorial: submite a form without page refresh using jquery demo It uses the $.ajax function to post the values, which I've included below: $.ajax({ type: "POST", url: update.php, data: dataString, // dataString's value is 'id=5' success: f...

uploadprogress_get_info and large files

It seems that the PECL package "uploadprogress" works on files less then 10MB, But Anything greater than 10MB, it fails miserably. I've changed my php.ini to support larger upload, but it just doesn't return anything! Any Help on this? ...

Jquery ajax responsed content does not write into the html form

HTML code : I echo this content in php file, In result i get only the 'Contact Us' Remaining part does not display the html form <div > Contact Us <form name="profile" action="" method="post"> Name : <input type="text" name="fullname" id="fullname" /> Email : <input type="text" name="email" id="email" /> Mobile : <input...

want to do mulitple element hide using ajax helper on getting response

want to do multiple div elements hide using ajax helper on getting response.but not using like this complete=>element.hide(div1),element.hide(div2),element.hide(div3),element.hide(div4) ...

AdBlock is killing my XMLHttpRequests ... work-around?

A quick Google search shows that this is a common problem: AdBlock Plus for Firefox kills XMLHttpRequests. Throws an exception: "Component returned failure code: 0x805e000a." However, the only prescription I could find is to send random parameters in my ajax call but that didn't work. I've renamed file extensions, tried just about ...

jQuery $.get (async) big file blocks browser

I am doing a jQuery $.get to a html file, and in the success function I filter on a select block and take the options apart, rendering the text of the selects as paragraphs in divs that I append in my markup. Getting and rendering the selects takes a while (there are about 8000) but I was expecting the div's to show up one by one and let...