ajax

How to make synchronous AJAX calls in greasemonkey?

Hello, I have a list of URLs and need to load each page, one after another. This is my main function that i have in my Mind. mainFunction() { loop { // Loop through URL list oPage = func1(URL); //Get page contents aResult = func2(oPage); //Analyse the contents func3(aResult); //Do current page modifications } } func1 uses GM_xml...

Where am i going wrong - ajax

I have the following link- <a href="ex.com" onClick="return popitup2('<?php echo $var3; ?>');">Grab Coupon</a> Where i have initialized $var3 like this $var3 = "brand1,camp2"; The code for the function popitup2() is - <script language="javascript" type="text/javascript"> function popitup2(id) { $.ajax({ url: "http://jainkunal...

jquery and the # sybmol in the url (and ajax)

So I've got a simple page with different ways to filter the data (almost everything is working.) For example, you have a page with a list of the users. You can choose a page number, you can choose what to sort by (and what direction to sort in) and how many results per page. The way it works is whenever one of those variables are change...

Too large an AJAX response for mobile safari?

I am running into a bit of a problem in debugging a web application for mobile safari. The web app is a front-end for a fairly complex server-side simulation tool. The overview of how the web app works is: User is presented with a screen where they fill in values for the simulation to be performed. User clicks "run simulation" at whi...

.Net UpdatePanel and javascript disabled

This may sound, or actually be, a stupid question but I need to find the best way to proceed with a project I am on. I have a multipage webform, using the multiview control. That multiview is in an updatepanel control, and everything works great so far. My question is about users with javascript disabled. What I have noticed is that in...

Pass request headers in a jquery AJAX GET call

I am trying to pass request headers in an AJAX GET using jQuery. In the following block, "data" automatically passes the values in the querystring. Is there a way to pass that data in the request header instead ? $.ajax({ url: "http://localhost/PlatformPortal/Buyers/Account/SignIn", data: { signature: authHeader }, ...

jQuery Ajax Memory Leaks

I've seen some other posts on this, but it appears that when i do ajax calls with jquery over and over again (every 30 seconds in my case), I get a memory leak. Changing from a $get to a $post (whilst more secure as well) cuts down on the size - it still happens. Even if I do NOTHING in the response. Any ideas anyone? EDIT: Here is ...

Having a script provide a boolean 'answer' to jQuery's .load() method

A quick question of perhaps a more speculative nature. I've been getting heavy into jquery lately to handle all the ajax in my web apps. Right now I'm building a bidding system in PHP that makes heavy use of mod_rewrite. I'm using jQuery with a confirm dialog to send an Ajax request that will spend some of the user's predeposited cred...

How do I use AJAX to GET info from server without resetting the session timeout?

I would like to make a periodic background request from JavaScript on the client to my web application (ASP.NET, IIS 7), but I don't want the request to affect the ASP.NET session timeout. Is there a way to do this? ...

XmlHttpRequest corrupts headers in Firefox 3.6 with "Content-Type:multipart/form-data"

I'm working on "multiple ajax uloader". Works fine in bleeding edge browsers (Chrome 6, Firefox 4). But in Firefox 3.6 I must manualy create output string to be sended, cos this browser doesn't support FormData object. I followed many tutorial, especialy this. Author notify about correct setup of headers & content of body to be sended. ...

Logging into a remote system through ajax and setting cookies

I am working on an application that pulls in information from another one and iframes it in mine. I need to be able to authenticate off the other system. It was/is working using a jQuery submit to a hidden form, but timing issues are making it tricky. What I would like to do is an ajax post to the other system and have the cookies set...

Ajax Partial Update with Partial View not working in ASP.NET MVC2

Hi, I've ran into some trouble trying to get partial updates to work in ASP.NET MVC2. (I think) I followed the tutorials I found online pretty closely, but the Ajax part isn't working. The controller does what it's supposed to do without errors, but the page doesn't update itself. When I refresh the page I can see the result of my actio...

Anybody know of this bug in jQuery Address plugin?

Using jQuery Address plugin, if i create 2 bookmarks on IE 7 or 8: http://www.asual.com/jquery/address/samples/api/#/section/?id=1&amp;name=n1&amp;name=n2 http://www.asual.com/jquery/address/samples/api/#/section/2 now i go to google.com (or any other website) first, and then i visit bookmark 1 above, and then bookmark 2 above, and cl...

The use of a lightbox and the click events

I'm using a lightbox for image viewing and I just have to use rel="lightbox" inside <a>. The problem is that my site has AJAX for every link, so I coded $('a').live('click', function() { $('#content').load($(this).attr('href')); return false; }); This way, every link turns to be an AJAX request. What is pissing me off is that ...

Can you retrieve your Skype status using JSON?

Does anyone know of a URL to get your Skype status using JSON? I've only found an XML status URL so far (http://mystatus.skype.com/username.xml). (I'm trying to query Skype using AJAX. Yes, I could use a server-side proxy script to beat the cross-domain limits, but a direct call would be preferred.) Simon. ...

ModalPopupExtender inside a GridView ItemTemplate

How do I use a GridView TemplateField containing a LinkButton that is to display the modal on click? I have rows of data that I want to update the details of when clicking the 'Edit' LinkButton in that row. There is a bunch of data I need to load via codebehind just before the Modal displays. I was trying the following, but I can't do M...

Excessive HTTP 401s using Windows Authentication, AJAX, ASMX and external ISA

Enviornment: ASP.NET WebForms .NET 3.5 jQuery for AJAX ASMX web services Windows Authentication SSL When we run our production web application, our AJAX calls often have 2-3 HTTP 401s before we get our HTTP 200. Is this normal? Is there something we may be doing wrong? NOTE: The calls do not fail, the 401s try until they succe...

Is there a REST based ORM?

I've been looking at JavaScriptMVC, and I'm pretty interested in the idea. I'm wondering, though, if there are any ORM solutions for such an architecture. It seems like you will end up having to write two data access layers, one server side to fetch items from the database and one on the client side to retrieve items via AJAX. My ques...

Good practice method for loading JavaScript via ajax

Disclaimer: I'm fairly new to AJAX! I've looked around, and I'm not sure which method to use to load javascript using ajax. I'm using ajax to request pages that each require their own 6-10 short methods. In total there will be maybe 5-6 of these pages, so an approximate total of 35+ methods. I would prefer to access necessary javascri...

Can someone who is very familiar with jQuery and Javascript confirm this jQuery History plugin fix?

The following is to fix a bug for this issue: http://stackoverflow.com/questions/3242512/toggling-between-2-bookmarks-or-see-a-page-and-load-another-page-from-bookmark The code is: var IframeImpl = { // init: [...] check: function() { var current_iframeHash = iframeWrapper.get(); var current_mainHash = locati...