ajax

Is it possible to cache a whole website including start html page and startup with no internet connection?

Our website is an AJAX website that makes no page requests after the initial start up of our website. Information is communicated with the server through XMLHttpRequests. Our website allows users to work online and offline without a connection during a user session. When a connection is detected our website "synchronizes" with the s...

Why does file_get_contents take so long?

Hello all, I make an AJAX POST request to a PHP script on my server. That script in turn makes a GET request to a php script on an external server to check the contents of a text file. However, it takes a very long time to come back with a result. Why is the case? AJAX Post Request to Script on my server session_start(); $fileName = $...

Is there a way to have a Calendar Extender Restriction?

I have a calendar extendar issue that I seems tough for myself. I am trying to restrict my nifty feature to display the current month and the month prior ONLY. Is there anyone who can help with that? if possible ...

Show only one Ajax Indicator in a Page with a lot of them

I have a lot of Ajax indicators in a Page. Now I use $(document).ajaxStart(function() { $('#ajaxBusyIndicator_<%=partido.PartidoId.ToString()%>').css({ display: "inline" }); }).ajaxStop(function() { $('#ajaxBusyIndicator_<%=partido.PartidoId.ToString()%>').hide(); }); The problem with this is that I ge...

Why does this AJAX request take so long when it should make multiple calls?

Hello all, I make an AJAX request to a PHP script which returns a number from a text file that changes. This AJAX request should happen every 3 seconds. However, an AJAX request is made once and it doesn't return anything and firebug shows the AJAX GET request is still being made. After a few minutes it returns and produces a number. It...

JQuery loading image.

Is there any way to show a loading image while loading a image? ...

Why am I unable to retrieve the calculated height of content inserted in response to a jQuery AJAX request?

I am sure this has been discussed repeatedly, but I am stumped. I am using jQuery to make an AJAX call to an ASP.NET Web service which returns some HTML. That part is working fine. I want to do some calculations on the height of the HTML returned, but when the the call happens for the first time I am getting a height of 0. I know my cal...

Generic Declarative Expression Builder in PHP

Folks, I'm looking to build a piece of PHP5 UI that I'm pretty sure is common to a bunch of applications. Basically, it's an expression builder that allows users to specify expressions combined through logical operators (AND/OR), like this: FieldX > 3 AND FieldY = 5 FieldY = "bob" and FieldZ is not null FieldX > '5/23/2007' OR (Field...

JQuery ajax error function is executed even if query is successfull

Hello, I'm trying to learn JQuery - and I have a small problem with ajax. I'm trying to populate a javascript array with values returned from an XML response from a page. Here's my main page (ajax.html): <html> <head> <script type="text/javascript" src="jquery/jquery.js"></script> <script type="text/javascript" src="jquery/fiber.js"></...

AJAX Tabcontainer inside formview not inserting values

Hi guys, I have a TabContainer inside a data bound FormView (to present the information by category ex: Client Bio data, health history, financial details...). The Update and Insert of the formView doesn't work (posting NULL values to the database) - I guess the FormView cannot find the TextBoxes inside the tab container's tab panels. ...

submitting ajax form with jquery

I have an issue while submitting data using Jquery. When i submit the form the page is getting refreshed instead of updating div. Following is my code <% using (Ajax.BeginForm("getAjaxTab2", new AjaxOptions { UpdateTargetId = "tabs-1", InsertionMode = InsertionMode.Replace, OnSuc...

Update an ASP.NET label without AJAX.NET or jQuery

The form has one asp:label and one html input button. On the button click, I want to update the label (e.g. some server side data). I would like to do this without UpdatePanel or jQuery. I can do a basic ajax call to an .aspx on the button click. What is the best way to update the label with the result? [figure it has to be an asp:label...

jquery ajax: call function when all requests are complete

I have two concurrent ajax calls on the page. I want to call a function when both of them are complete (and successful). An inefficient solution: make ajax call A on success for call A, make call B on success for call B, call the function Unfortunately, this breaks the concurrency. Any other way I can accomplish the same effect? ...

What comparable Javascript function can reference a file like PHP's include()?

What is the best way to reference or include a file using Javascript, looking for the closest functionality of PHP's include() ability. ...

Are there Excel-like open source libraries with AJAX by PHP+DB

I'm lokking forward a library like google docs(speret sheet) I examine these structure on WEB, but there is not detailed explanation and is hard to understand it, and it is it to implementation in the long way off when I really become the part called the cooperation with DB. There are many introductions about a sort in particular and pag...

how can i get the same page with the click of back button of browser

i am using asp.net with c# in my aspx page i have an update panel in this panel i have some links to other sites, which is open on the same window. after clicking on these links me when i am getting back through browser's back button i am not getting the same results on the update panel... ...

jquery problem with IE....works fine in firefox n chrome

I have a code which accept a query and uses yahoo websearch to return a suggestion.Its working fine in FF and Chrome . but in IE it gives no result. can any one help me on this?? Here is the code: $(document).ready(function() { $.ajax({ type: 'GET', url: "dummyapi.php", data: {query: "yaho"}, success: function(xml) { alert...

Ajax and Brower Navigation for Back/Forward

I am using a ASP.net form with custom onclick mouse events to modify data values. Upon clicking and updating the values, one div section of the form performs a postback. onclick="__doPostBack('ctl01$phCon1$gridReports','sel1')" This is working well, however when the browser BACK option is selected, the browser opens goes through the ...

Ajax Get +JQuery

Hi, In my app i m using JQuery..In tat I m using tat Ajax GEt to retrive values from cakephp controller viewforms ....But if i alert myObject..It doesnt came.. It show me the error as missing ) in parenthetical {"attributes":[{"type":"Text","labels":"Untitled1"}]}) where {"attributes":[{"type":"Text","labels":"Untitled1"}]}) ...

saving history in ajax..

I am using ajax in my site. if a user enters a query and select a category, i will updates the page with result with ajax. also i updates the url with hash value which shows query and category seperated by a '&'. what i want is tht when the browser back button is pressed i want to display the previous result without reloading. what i am ...