ajax

jQuery $.get onstatechange problem

Howdy, I have the following function that uses jQuery "get" to perform an ajax call to an MVC controller. function updateTables(firstMonth, getReduced) { $.each([cContactType_Email, cContactType_SMS, cContactType_EmailSMS, cContactType_Telephone], function(index, value) { var toUpdate = $("#" + value); ...

what is the difference among these terminologies in web applications?

i wanna to ask what is the difference among these terminologies? in details 1-Post back 2-auto post back 3- submit 4- refresh(F5) 5- request the same URL 6- AJAX call thanks ...

Button in Repeater not raising event

When I work with the tab Ajax control, and in one tab, I have a Repeater: <asp:Repeater runat="server" ID="rp1" onitemcommand="rp1_ItemCommand"> and in protected void rp1_ItemCommand(object source, RepeaterCommandEventArgs e) method, I add a button and it's event: Button btn = new Button(); btn.Text = "Update"; btn.Click += new EventHa...

uploading zip file to server using servlets

I have a scenario where i have to upload a zip file on a button click , I can't use forms for that, so I need to handle it either by calling the servlet using document.location.href or through AJAX, after uploading the file I need to extract it on the server. So someone can please tell me what will be possible approach for that. ...

ASP.NET AJAX Calender Extender not unloading

How to unload ASP.net AJAX calendar extender after user selects the date into textbox? (Doesnt do it automatically - Im using AjaxControlToolkit.Binary.NET4 ) ...

How to delay ajax query?

I read a lot of questions, but they doesn't working in my case. My situation is: my ajax query to database to insert infromation. But in my web-application user can click on buttons very quick so previous ajax query is not finished, and there is where bugs are appear. All i need to do is a delay between queries, so future queries will do...

JSF 2.0: Delay rendering (composite) component's contents until AJAX-call re-renders it

My goal is to dynamically load the contents of a component in JSF 2.0. The use case is this: user clicks some button, which opens a modal panel with some heavy-contents via AJAX. Due to its' heaviness, I want to delay loading it until/if user actually needs it. If the user closes this panel, it is not actually removed from DOM, just fade...

Asp.net ajax+ Jquery: EndRequestHandler(sender, args)

Hi, I am working on asp.net, addon with JQuery. After registering endRequest inside ready() function of Jquery. Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler); For the function: function EndRequestHandler(sender, args) {} How could I retrieve the ID of the button where I click based on 's...

How to change Image & content using JavaScript?

I just have an HTML page with an image & Content. <table> <tr> <td height="240" valign="top" colspan="3"> <img id="image" class="newsimage" src="D:/Search/images/search.jpg" alt="search" height="120" width="50%"/> <div class="imageContect">image Content</div> </td> </tr> </table> Below it I have 2 links of previous & next. <a href="#...

How to get current page path in jQuery (while doing ajax call)

I am doing Ajax call using jQuery and my URL is like http://localhost;3327/DummyAps/Demo.aspx In Demo.aspx page i have a WebMethod, which i wanted to call. While doing jQuery ajax call i am giving the URL as "/DemoWebMethod", where "DemoWebMethod" is the Webmethod present in Demo.aspx page. But while calling the WebMethod it is calli...

ASP.NET/jQuery Post-Back, but not when using browser's "Back" button

Hi all I'm working on an ASP.NET Web Project with some AJAX magic. As my GridView's data needs up to 15 seconds to be gathered, I send the page to the client and fire an asynchronous update of an UpdatePanel via jQuery/JScript (see below). This works well, so far. Now I'd like to skip this step when the user navigates to the next page ...

Submitting form using Fancybox Ajax capabilities within an iFrame

Hi, I would like to use Fancybox to display a registration form within an iFrame. Then once the user has filled in his/her details. The details should be processed using the ajax mechanisms within Jquery/Fancybox and the values displayed within the same Fancybox iframe. How can this be implemented, I have been scratching my head all ...

What is going wrong with this XHR request in IE8?

I have a photographer's gallery here. In my friends, Firefox and Safari, everything is smooth. However, IE8 seems to not call the callback after the XHR has loaded (if it has, I tried checking with Fiddle, but couldn't get my head around whether it has actually loaded or not). It just seems to sit there loading forever. I'm not sure wh...

ASP.NET tab controls is not showing its skin ?

I have web application on which i have used the ASP.NET(AJAX) tab controls. When i have deployed the web site remotely on different machine i found that the tab controls skin is not getting displayed. When i used Firefox inspect element i found that WebResource.asx file size is 0 KB which suppose to carry the CSS styles for the tab contr...

Strange IE8 problem with a select that runs AJAX

I've got a strange error with IE8 and postcode lookups. It may not be postcode lookups as such that's causing it - just an AJAX call that modifies a select. I've set up a test page here. If you click on Find Address, and then double click (quite quickly) on one of the addresses that is within the boundary of the red-bordered div, you see...

why does the 'error' function of $.ajax execute even when the request to invoke a webmethod succeeds?

hi, I am using jquery ajax method to invoke a webmethod upon clicking a 'span'.This is webmethod is in one of my aspx pages and I am invoking it from the master page using the following code. $(document).ready(function(){ $("#btn").click(function() { $.ajax({ type: "POST", url: "Default.aspx...

How do you test an Ajax application with Selenium and keep it stable?

Our team has been testing our application with Selenium as it's heavily JavaScript driven we've always had issues with tests occasionally failing. As the number of tests has increased the probability of at least one two tests failing in a complete run has become a certainty. What we recently figured out is that we probably have a race c...

Having a Loading animation on a gridview...

I have multiple gridviews that show when a user logs into the system and they take a few seconds (~15) to load. I would like to load a loading image to be displayed while the gridviews are loading. Once they have loaded, hide the image and show the gridviews. Each gridview will need to load independently, currently they are each in th...

Page redirect with successful Ajax request

Hi Everyone, I have a form that uses Ajax for client-side verification. The end of the form is the following: $.ajax({ url: 'mail3.php', type: 'POST', data: 'contactName=' + name + '&contactEmail=' + email + '&spam=' + spam, success: function(result) { //console.log(result); $('#...

executing script after jQuery Ajax Call

I load some HTML code into a div with the .load function af jQuery that contains some code I want to execute; $.ajax({ type: "GET", url: url, dataType: "html", success: function(data){ //..... } }); After loading the ajax request the alert(); function works, but the the someFunction won't. $(document).read...