ajax

jQuery & AJAX login form

Hi I am busy developing a site where I have a login box in the top right corner. I want the user to be able to log in on the same page, without refreshing. OK, I got that part working, but I am still struggling with post-login process, my look as follows: (HTML) <li class="login"> <? if (!isset($_SESSION['logged_in'])) { include(...

multithreading And Subscribe/Publish approach in javascript

Hi, I understand that there is no multithreading support in javascript. And i wanted some expert advice on the below scenario.. My requirement is to perform a AJAX call and upon successful completetion, i want to trigger set of events (to update the different parts of UI parallely) I am planned to use Subscribe/Publish pattern, is i...

Showing a ModalPopupExtender control when an UpdateProgress control is activated

I'm trying to show a ModalPopupExtender when an UpdateProgress control is activated. I managed this by putting a ModalPopupExtender within a UpdateProgress and then setting the ModalPopupExtender to always show in the page load. However this messes up the tabbing on the page which isn't an option. Any suggestions? ...

Returning Error Details from AJAX-Enabled WCF Service

Short Version: Is there a/what is the suggested way to return error details to the client when an exception is thrown in an AJAX-Enabled WCF Service (aside from just throwing the gates open and sending back all of the exception details)? Long Version: I've got a relatively simple AJAX-enabled WCF service that I'm calling from the clien...

Ajax (calling web service) with MVC

I have an asp.net mvc application and i need to to use ajax in this application , i need to add a scriptmanager and add a service refrences with the path of a web service and then call the web service from tag . I have the following code and it doesn't see the web service : <form> <input id="SubmitBtn" type="button" value="Sumbit" oncl...

Tricky: Surpress "Loading ..." title in Firefox for JSONP polling

I am working on a jQuery plugin that people can include in their own page. The plugin spawns jobs at a service I am operating which is on a different domain. To breach the domain boundary I am using jQuery's JSONP functionality which works fine for spawning the job. However, I also need to display the "progress" (0 -> 100%). So far my p...

LinkButton's server-Side event not firing when disabled=true, and inside an UpdatePanel, in IE8

It is hitting the Page_Load event, but not the LinkButton's click : <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt;...

Is it possible to position ValidatorCalloutExtender dynamically?

I have two ajax validator callout extenders that are programmed via VB.net.I am validating one textbox but I want the popup to appear next to a different textbox. How can I tell the ajax popup where to appear? Dim custval As New CustomValidator custval.ID = "ValidPage" custval.ErrorMessage = "<font color=red>Please Enter a '...

Rails, jQuery, Ajax create and update.js.erb

Alright. I am working with RoR and jQuery and I have already got my update and create links working and functioning with their .js.erb files. The problem arises when in create with this line of code. #create.js.erb $("#promo_types").append("<%= escape_javascript(render(:partial => "promotion_type"))%>"); it is throwing an error: You ...

best way to pass authentication when using ajax

I'm working on developing a page that pulls data down only via ajax: http://itprojectguide.org/projectmatrix/itprojectguideprojectmatrix.html the page currently pulls a status json data file. To authenticate I'll be adding a preliminary signin (user name/password) and I'm thinking about doing the following to ensure a valid logged in u...

jquery ajax & full server path

Is there a way to use a full server path instead of a url when submitting a form via ajax with jquery? The exemple below doesn't work but it will give you an idea of what I'm trying to do. I know you can't do cross domain ajax requests but this is all on the same physical server. I don't want to set up proxy or anything too fancy, if t...

Comet, responseText and memory usage

Is there a way to clear out the responseText of an XHR object without destroying the XHR object? I need to keep a persistent connection open to a web server to feed live data to a browser. The problem is, there is a relatively large amount of data coming through (several hundred K per second constantly), so memory usage is a big problem...

Problem with prototype framework in cake php

This question is somewhat related to my previous question (not necessary to go through it) link text , although this one is more of an Ajax problem. I tested my page in firebug and I am getting the following error Event.Observe is not a function Event.observe('form908983160', 'submit', function(event) { new Ajax.Updater('comments','/...

Race Condition because of multiple AJAX reqeusts

hi, my problem is the following. I wrote a class AJAXEngine, which creates in the constructor a new XMLHttpRequest object. The class contains a method called responseAnalyser, which is called when the "onreadystatechange" of the XMLHttpRequest object has changed. So now I created lets say 4 instances of AJAXEngine => 4 XMLHttpRequest ob...

Asynchronous file upload (AJAX file upload) using jsp and javascript

I am planning on having asynchronous file uploads. That is the file should be uploaded to a jsp or servlet and return something to the html/jsp page without reloading the original page. It should happen like an AJAX call. Is there any way to do it in AJAX or any other way to do it. ...

jQuery AJAX live update on multiple elements on the same page

I'm delving into some AJAX and I'm trying to utilise jQuery. I have an index page which links to multiple pages and next to each page is a view count. I would like the view count to refresh and automatically update every couple of seconds so that those on the page can view live updates of the page counts. I've come accross the followi...

Manipulate standard table with thead and tbody tags - to be later able to filter and sort

Hi there, I would like to modify a table that is generated by a wiki. This is why it has NO thead and tbody tags. What we try is to add these tags at the correct positions. Remember, the table itself is generated by awiki which means that lines can be added after a while. Here is my code (html and dojo): <script type="text/javas...

Rails active search with ajax and Greek letters

Hello, I'm new to programming and to Ruby on Rails, and I'm trying to implement an address book on rails with active search with ajax. Active search is working fine with English letters, but when I'm trying to search Greek entries I don't get any result. I wrote a code showing what is searching so I noticed that if I put a Greek letter...

Ajax loaded html doen't show images in Firefox

I loaded some async html with $.ajax({ url: target, beforeSend: function() { }, success: function(html) { targetTabBox.html(html); } }); The url: t...

ASP.Net AJAX - Any end-to-end examples of writing a WebControl?

I'm trying to write an AJAX enabled WebControl. This is my first AJAX control and apart from the usual use of UpdatePanels and ScriptManagers, I've not got a lot of experience in the other angles and use of AJAX. I've found a number of examples and projects that claim to be AJAX enabled control's, although they all seem to be missing th...