ajax

Document Viewer- which one? Brava or Snowbound or Adeptol?

We have been looking for a document viewer for our application and have narrowed down to the three IG Brava, Snowbound and Adeptol AJAX Document Viewer Any help / past experiences on these would be helpful. ...

Get MYSQL Data Into AJAX

I'm an AJAX novice and I'm having major trouble trying to get data out of mySQL and into my javascript function. What I want to do is loop through my data in php and somehow send that data into various named divs on the page. Here's the code from my javascript page: function loadPageContent(){ var projectID = getQuerystring('pid'); ...

Using both POST and GET Ajax calls for the same WebMethod in ASMX Web Service

I can't seem to call a web service method from Ajax with both POST and GET. Initially only the POST would work and GET would causes this error: {"Message":"An attempt was made to call the method \u0027getData\u0027 using a GET request, which is not allowed.","StackTrace":" at System.Web.Script.Services.RestHandler.GetRawPa...

jQuery. Different performance on local and through the internet

I use jQuery 1.4 for AJAX, MVC on the server side. Everything works fast on the local computer. Tables with data are compiled and sent as HTML documents (I’m testing the system with large tables, over 100KB). When I download the same page through the internet, everything works 5-10 times slower or is simply pending. I checked Forefox...

How do I send an AJAX request on a different port with jQuery?

I need to send an AJAX request to, for example, port 8080 where a daemon is running there. ...

jQuery submit is not catching submit event after ajax loading of content

I load content to my popup with jQuery Ajax load function and I use submit function in load functions callback function, but for some reason event is not fired at all. (I use jQuery jquery-1.3.2.min.js) $('.popup-container').load(url, function(){ /** Do some stuff here */ $("form").submit(function() { alert("Form submi...

UI Abstraction with Ajax

Hi, I'm developing an ASP.NET framework for web applications and I'm using jQuery and AJAX to allow users to create content in a modal dialog, rather than navigating to different pages. As I intend to use the framework for different sites I am trying to abstract the UI from the logic. My problem is this. I have a control that allows the...

Checkboxes patently refuse to submit information onclick- HELP

Hi this is my second post (and second week programming, ever) so apologies in advance. I have a list of checkboxes that represent different search filters that I want passed to params. For example, if this were a restaurant search, I would want my users to be able to check off different types of cuisine that they are interested in. Ju...

AJAX request from one subdomain to another subdomain, but on the same domain

Hi all! I know that you can't do cross-domain ajax requests unless you use a 'proxy' one server. However, if I did an ajax request from server1.example.com to server2.example, would that not work, even though it's on the same domain of example.com? I'm pretty sure sites such as YouTube do ajax requests to different servers. such as a ...

Ajax send function wont fire?

Whenever I run this file the code runs up to the point where the send function fires and then it only fires if I have an alert function directly behind it, if I take out the alert("sent"); out then it replies with ServerReadyyState is:1. What could possibly be the problem? Someone please help, I've tried it on my local machine and on my...

.ASP MVC, access AjaxOptions in controller.

Hi, if I have an ajax form with AjaxOptions like this : (Ajax.BeginForm(new AjaxOptions { UpdateTargetId = "okContent", HttpMethod = "Post", LoadingElementId = "ajaxLoader" }) is it possible to change UpdateTargetId in controller(after pressing submit button)? Thank You. ...

Set default content for target div

Hi. If this is my code, how do i set page1.html to show by default on page load? Thanks in advance. <head>     <title>Test</title>     <meta http-equiv="content-type" content="text/html; charset=UTF-8">     <script type="text/javascript">     function swapContent(targetID, url) {         var target = document.getElementById(targetI...

Some Problem with Some ASPX Page

Please could some kind person help me out here. My aspx page comtain following: In the Content panel of the one page I have placed 3 AccordionPanes. In this I placed 3 gridview controls. The idea is that when I select one of the rows in the Gridview in Pane 1 or Pane 2 the row should be added to third gridview. ..I hope that makes sens...

ie freezes using mootools request.html ajax

this is the method: var ajaxRequest = new Request.HTML({ method: 'post', url: url + "?dt=" + Date(), onFailure: function(item) { alert(item.responseText); }, onRequest: function(item) { gui.preloader('on'); }, onSuccess: function(html) { gui.preloader('off'); element.s...

Slideshow background image

I have a php array that gets returned from a database, the array contains paths to images that I want o make up the background of my wrapper div in my HTML, I want to be able to add some javascript that will cycle through the array and a set interval show the next image in the array, is this possible, and is it possible to also have some...

How do I decide between a using a Swing GUI or a light-weight web client for the user front end of my Java application?

I always seem to have this internal struggle when it comes to user interface. I build up an application "engine" and tend to defer user interface to after I get my algorithms working. Then I go back and forth trying to decide how to let a user interact with my program. Personally, I'm a fan of the command line, but I can't expect that of...

How to set Request.IsAuthenticated to true when not using FormsAuthentication.RedirectFromLoginPage?

I am using Form Authentication and sending an Aajx request to the server for authentication. Based on the json result, the client decides where to go and what to do. That is the reason I am not using FormsAuthentication.RedirectFromLoginPage to not interfere the ajax/json response. In this case Request.IsAuthenticated returns false, eve...

How can I implement a "wizard" style page using JQuery?

I am implementing a questionnaire on the web and I'd like for each block of questions to have its own "page" so the user doesn't have to scroll. However, page loads have two problems: a) they take time (and have a noticeable flicker/refresh) and b) such an approach would force me to do a data table insert plus multiple updates (or store...

Rails: Ajax form validations with error_message_on

I've been trying to get get some ajax validations going in my form and have been running into a bit of trouble I have code like this in my form: <% form_for @user, :html => { :id => 'user_form', :multipart => true } do |f| %> <%= f.label :username %><br /> <%= f.text_field :username %> <%= error_message_on :user, :username %> ...

How to return a 200 ok status programmatically to ajax request in PHP?

I ask this question for the comment of this answer: http://serverfault.com/questions/104648/is-this-http-servers-issue/104679#104679 EDIT I missed an important point,should also keep the connection not closed. You guys can smell I'm trying to figure out how long polling actually works. ...