ajax

C# httpwebrequest and javascript

Hi all. I am using C# HttpWebRequest to get some data of a webpage. The problem is that some of the data is updated using javascript/ajax after the page is loaded and I am not getting it in the response string. Is there a way to have the webrequest wait untill all the scripts in the page have finished executing? Thanks Amit ...

Paging Through Records Using jQuery

I have a JSON result that contains numerous records. I'd like to show the first one, but have a next button to view the second, and so on. I don't want the page to refresh which is why I'm hoping a combination of JavaScript, jQuery, and even a third party AJAX library can help. Any suggestions? ...

ASP.NET GridView Response.BinaryWrite() On Row Change

I have a gridview inside of an updatepanel and would like to allow the user to select a row which would generate a call to a class that outputs a stream back to the client. It looks like I can't do this because the grid is inside of an update panel. Any ideas? C# protected void gvResults_SelectedIndexChanged(object sender, EventA...

What is the problem with this ajax(with prototype)?

Hello i have the next code: php side: <?php print_r($_POST); print_r($_GET); die(); ?> In javascript: voteAjax = function(typez, actionz, idz){ new Ajax.Request( 'http://localhost/reporeade/Vote/Ajax/?rand='+Math.random()*500000, {asynchronous:true, evalScripts:true, method:'post', par...

AJAX vs javaScript response

When we use AJAX for validation the response comes through xml file and in case of javascript the response comes through html page. Is it true or false ? please explian both the cases. ...

ASP.NET AJAX - Check for async postback via JavaScript

Does anyone know the script necessary to check to see if you are in a anync postback via JavaScript? Thanks. ...

ajaxified auto suggest

I have a search module with Auto Suggest feature to build in ASP.Net The search criteria is Training Name and there is a table in database that stores trainings. The size would be as large as 30,000 trainings in the table so I have to be very careful in selecting the approach keeping in mind the performance. There could be about 3000 u...

Unable to get ASP.Net UpdateProgress to display

I'm trying to display an update progress loading image whenever my update panel does it's Ajax thing. I've looked around at tutorials and it seems really straightforward but I'm having no luck. Here is pretty much what I have... <div id="panelWrapper"> <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional"> <Co...

Multiple ajax call handling

I am using jQuery to make some ajax calls and wonder how people handle this situation. An ajax request is made to the server to retrieve some info. Before the request returns another request is made. The first request is now invalid and out of date. How do I tell that the initial request is now invalid and can be ignored when it ret...

$.post() doesn't have time to run?

I'm trying to send data from a form to an external script prior to submitting the form, yet I cannot seem to get the data to reach the external script unless I return false; on the form itself. $(document).ready(function(){ // Handle Form-Submission $("#mainForm").submit(function(){ // Reset Error Array errors = new ...

Crawling Ajax.request url directly ... permission error

I need to crawl a web board, which uses ajax for dynamic update/hide/show of comments without reloading the corresponding post. I am blocked by this comment area. In Ajax.request, url is specified with a path without host name like this : new Ajax(**'/bbs/comment_db/load.php'**, { update : $('comment_result'), evalScript...

ASP.NET MVC scenario, similar to 'Post your answer' on StackOverflow

Hello, I have a requirement to add commenting system to a page (similar to 'Post your answer' at the bottom of any SO question). What is the optimal way to implement this? Should I render the partial view with Ajax or should I just pass the Json data to server? In the latter case I don't quite get how I should add newly added comment to...

Compatibility of Comet with current technology

I hear that I can use Comet as a server push technology along with my Ajax code to increase the performance of my web applications. How mature this Comet technology? Is it supported by all web servers, programming languages and browsers? What are the disadvantages of using Comet? ...

ASP.NET MVC without MicrosoftAjax.js and MicrosoftMvcAjax.js

What parts of functionality will I lose after removing the MicrosoftAjax.js MicrosoftMvcAjax.js files? I don't want to use them for various reasons and I thought if there were any 3rd party helper methods that would mimic existing ones but are tied to another JavaScript framework, such as jQuery. Also, please tell where usage of a...

jquery cant select Ajax elements

Hello, im trying to select elements of the page that have been added after the page has loaded. See the before and after example, before is the page source, after is the generated source. For some reason i cant select anything that has been generated? This seems odd to me as im pretty sure ive done this before. Thanks for your help. B...

Does PartialView do what I think it should (but doesn't)?

I have a div on an ASP.NET MVC page that I would like to populate dynamically (at user request) using jQuery. I currently have jQuery placing a JSON call to my controller, which returns a JSON object, and then I use Javascript to build the HTML manually, which is then placed in the div. Hang on a minute. Wouldn't it be much easier to ...

Resize iframe height according to content height in it

Hi all, I am opening my blog page in my website, problem is i can give width to iframe but height should be dynamic so that there is no scroll bar in iframe and it looks like a single page... i have tried various javascripts to calculate height of content but all of them gives access denied permission and of no use. my question is c...

Resource.axd files - Why so many and why so big?

ASP.NET - I've managed to siginificantly reduce the number of .axd requests a page of mine is making by using the ajax ToolkitScriptManager control. My question now is, why on earth is there SO MUCH JavaScript in those .axd files? I'm talking approx. ~1MB (un-gzipped) just to use a few Ajax controls on a page! Is there anyway to make t...

What is the best ajax control to display floating windows?

Aloha, I'm looking for a floating div type of control, to display another (user)control over an aspx page, using ASP.NET and Ajax. As far as I can see the Ajax Control Toolkit doesn't have a nice overlay control. Can anyone point me at a solution? ...

Using Ajax method (how to do it)

Hi guys, Using an update panel in ASP.NET and with the help of a good tutorial on ListView from Matt Berseth I accomplished the image below. The behavior is, when I click the BOLD names, the rows below that name with numbers are collapsed. Getting the DATA: This is a SDK WebService that I cannot change, and with it I get the bold n...