ajax

When you update a form, would save and replace text, or avoid updating the text?

I have a form in jQuery where I update all the images via a simple ajax call to reload the entire page. Unfortunately the captions are included in that form as well, and as I start writing, my captions are overwritten. What then would you do to keep them? Would you.. Save them before the ajax call and replace them after it? Avoid up...

Jquery events do not trigger on content loaded via load()

What is the appropriate method to get the already-initialized javascript to interact with content loaded using jQuery's load() method? Example: You have a table with an onclick event for each row, then append() a new row to the table, suddenly the onclick() event does not fire. Hopefully it is possible to do this without manually re-in...

jQuery live help.

I have the following script which works perfectly until I regenerate the links ".resultLink" via jquery ajax: $("a.resultLink").live('click', function() { var that = this; $.ajax({ url: 'most_used.aspx', type: 'POST', data: { strMostUsedID:$(that).attr("href") }, error: function() { }, su...

AJAX synchronous (SJAX) on session restore

I have a large web page (classic ASP) with lots of information required from the user, so lots of inputs. The user's behavior is that he will fill in the information over time, analyze it and other time consuming processes before submitting. The problem is that even though the session timeout is set to a reasonable 30 minutes, often i ge...

telerik radgrid with external filter control

I want to have the filter controls of a radgrid sit outside the radgrid. can this be done? ...

jQuery AJAX and VBscript - Can't get values in VBscript variables when using POST in the jQuery AJAX

I am having trouble getting the VBscript on a .asp page to assign values to variables which are sent by the jQuery ajax() function. I have this code on several other sites and it works fine, but for some reason it won't work on this website. Just in case it makes a difference we are running the sites through IIS7. The issue is that th...

Data compression to reduce network bandwidth usage

Hello, suppose that I've a huge amount of data (>KB/MB) to transfer from an ajax request (JS) to a webpage (PHP), is it usefull to deflate data (by JS scripting) before send it to server and inflate it in my Webpage or the Apache module (Content-Encoding:gzip) do it by itself? Thanks. ...

UpdatePanel does not work with Code Blocks

Hi, I have a reference to a control (rcbModels) using a codeblock like this function pageLoad() { models = $find("<%= rcbModels.ClientID %>"); } I added an UpdatePanel to this page but I always get the following error: "The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>)." ...

What is the proper place to put AJAX-related content in a link

When you need a link to contain info for an AJAX call what is the proper place to put the info? I've always put it in the rel attribute, but reading the documentation for rel it seems this isn't the proper place: This attribute describes the relationship from the current document to the anchor specified by the href attribute. ...

Create the website first or set up Jquery on Cakephp?

I have set up Cakephp with admin login, but I do not have a page design. Now what? Do I have the site designed by a web-designer, or will this conflict with the person that is writing my fresh Jquery code. What about CSS? Is the Jquery developer going to know how to attach them? What comes first, the horse or carriage? Which ones th...

xml cross port on same server?

hey all, i have an apache server on port 8080 and apache tomcat on 8181. i want to call a command in apache from tomcat. this command is a php script found on the apache server port 8080. i use jquery inside a javascript function on tomcat server, using $.ajax. sthg like: function fct() { $.ajax({ type: "GET", url: pathof...

Ajax Async FileUploader problem in IE7?

This is just some strange behavior I have observed on a user's machine. During testing, and most of the time in production, the upload control has been working fine, but I am running into a problem. I will preface this by saying that I have only seen this problem occur with a user running IE7, and that I don't know what their security ...

Difficulties to output "HTML-string code" through XML

I got som difficulties to output "HTML-string code" through XML.I have presented a example below. In the server-side I have some code written in PHP. $htmlCode = "<div>...........................</div>"; header("Content-type: text/xml"); echo "<?xml version='1.0' encoding='ISO-8859-1'?>"; echo "<info>"; echo "<htmlCode>"; echo $htmlCo...

Getting elements created by Livequery

I'm doing a table using the plugin livequery function soroRow(numSoro){ if(numSoro % 2 == 0) var cRow = 'even'; else var cRow = 'odd'; var content = ($('<tr>') .addClass(cRow) .attr('id', 'soro_'+numSoro) .append($('<td />').appendText(numSoro+'')) .append($('<td />') .append($('<select...

how to ajax post an image to a C# web method with jquery

Possible Duplicate: How can I upload files asynchronously with JQuery? I have a file upload field, after the image was selected, i make a jquery ajax post to an aspx page's page method. My question is, how can I pass that image via jquery? When I do $(this).val() it only gets the file name. I want to pass the image object itse...

include path and ajax not working?

I couldn't get "castMyVote" function to execute. It worked when I cast a vote in poll.php but not in index.php. I have ensure all php and js are in correct path. I tried another function "displayvotewithoutvote" in Index.php, I could display statistic without vote. index.php: include('poll.php'); poll.php: <a href="#mainContainer" o...

Multiple updatepanels on page remove JavaScript Datepicker calender from textbox

Actually I have Multiple update panels on page, which update different values on server but the problem is that I have textbox to which I attach javascript class for datepicker on Load event. But There are other updatepanels before that date TextBox, when I update them first calender image with date control which is in updatepanel disa...

Difference between $.ajax() and $.get() and $.load()

What is the difference between $.ajax() and $.get() and $.load(). which is better to use and in what conditions. ...

How to subscribe a method to fire onchange and on a custom event?

I have a method setup to fire onChange with the following code: var product = $('#selProduct:visible'); var note=$('#bbdata'); product.selectProduct({ target: note, url: 'product.php', data: { ajax: true } }).trigger('change'); // TO DO: to fire also on visibility change Then I have a method where I make a div visible. ...

$.ajax() call, only on updation

I am reading a xml using $.ajax() request. $.ajax({ type: "GET", async: false, url: "../../../ErrorMessages.xml", dataType: "xml", success: function (xml) { $(xml).find("*[Name='" + Field + "']").each(function () { message = $(this).find(Rule).text(); }); } }); I want to make the call on...