ajax

Library for browser based outliner

I'm looking for a free (GPL or BSD-type license) outliner library that works in a browser. It doesn't have to be too complicated, just allow keyboard control of collapsing and expanding items, and changing their order. Anyone know a good library for this? Do any of the big UI component libraries have an outliner? If not, how would I g...

php/Ajax - Best practice for pre-loading images

I have put together a script which is very much like the flickr photostream feature. Two thumbnails next to each other, and when you click the next or prev links the next (or previous) two images slide in. Cool! Currently when the page loads it loads the two images. The first time nxt / prv is used then the next two images or previous t...

AJAX - Do I need to return a full HTML document on the server side?

I am using JQuery to post with AJAX to another ASP page. Do I need this ASP page to return a full html page. Or can I just have it send back a value ( I just need a status ) . Here is my function. $.ajax({ url: "X.asp", cache: false, type: "POST", data: queryString, success: function(html){ $('#x_'+Num).append(htm...

AJAX on the iPhone?

I have a site that I've developed that makes decent use of Javascript, and minimal use of AJAX for a few things. The site worked fine on the iPhone until I added the function to create an HttpRequest handle at which point all Javascript on the iPhone now silently fails. So, I have a few questions. (1) It seems that AJAX does not work at...

rails: how to update a has_many :through relation via jQuery?

Hey guys! Sorry, if this is a noobish question, but I'm just getting started with Rails and jQuery. I have the following scenario: I have 3 classes: contacts, companies and contact_company_joins (ccj). For all three classes I created models, controller and views. Obviously, contacts and companies are connected via the join-table ccj (...

How do you screen scrape ajax pages?

How do you screen scrape ajax pages? ...

ASP.NET Ajax Framework

Is there an ASP.NET AJAX framework other than just using UpdatePanel & Friends or the ASP.NET AjaxControlToolkit? Currently I am using plain ICallbackEventHandler calls but it gets quite complicated a while as a lot of serialization needs to be done. Any suggestions? ...

How can I update meta refresh from javascript when using asynchronous calls?

I have a system that uses a meta refresh to a logout page, which cleans up after idle users. (Don't worry, the server also times out the session) I started doing some operations via ajax (not really xml, but that's beside the point). I can run javascript returned from the async request, so I'm wondering if it's possible to reset the m...

jQuery Ajax error resolution

I'm working on a stripes app that uses a bit of jQuery to make the UI more dynamic/usable. I set up an Error Resolution, so if an error is thrown, the user is redirected to an error.jsp page. However, if an error is thrown during a jQuery Ajax call, instead of redirecting to the error.jsp page, I get html printed to the page where the ...

javascript problem

i have a php script and i'm using ajax with it . i have a textarea form connect with the ajax class the problem when i pass a text like ( &some text ) the function return an empty text ,i geuess that i have a problem with (&) , what is the problem here ? here the javascript function function sendFormData(idForm, dataSource, divID, if...

best way to pass parameters to jquery's .load()

is there a difference in passing parameters to .load $("#myDiv").load("myScript.php?var=x&var2=y&var3=z") vs $("#myDiv").load("myScript.php", {var:x, var2:y, var3:z}) also is there a size limit to how much .load can handle? can myScript.php return a couple hundred rows of data without issue? ...

How to catch an exception in VB.NET when using jQuery ajax

I'm using jQuery to handle all my ajax needs for an ASP.NET site coded in VB. When I use the built in $.ajax function to POST to a code-behind function and there is an exception, it simply exits the function, and shows an error on the client side. Besides making debugging difficult when coding, the bigger issue is that the Application_E...

Browser history for Flash (or AJAX)

What is the best tool / practice to enable browser history for Flash (or AJAX) websites? I guess the established practice is to set and read a hash-addition to the URL like http://example.com/#id=1 I am aware of the Flex History Manager, but was wondering if there are any good alternatives to consider. Would also be interested in a ge...

Javascript and Accessibility

As a web developer, a number of the projects I work on fall under government umbrellas and hence are subject to 508 Accessibility laws, and sometimes W3C accessibility guidelines. To what extent can Javascript be used while still meeting these requirements? Along these lines, to what extent is Javascript, specifically AJAX and using pac...

UpdatePanel Slowness in IE

I'm working on an ASP.Net application and working to add some Ajax to it to speed up certain areas. The first area that I am concentrating is the attendance area for the teachers to report attendance (and some other data) about the kids. This needs to be fast. I've created a dual-control set up where the user clicks on the icon and via ...

How do I add Ajax to my ASPnet page so that a dropdown change can immediately affect the backend db

I have a couple of dropdown boxes on a normal ASP.Net page. I would like the user to be able to change these and to have the page Pseudo-post back to the server and store these changes without the user having to hit a save button. I don't really need to display anything additional as the dropdown itself will reflect the new value, but ...

Code separation in AJAX applications

What are some strategies to achieve code separation in AJAX applications? I am building a PHP application that I would like to have a nice AJAX front end on. I have long since learned to use some kind of templating in my PHP code to make sure I maintain good separation between my logic and display code, but I'm having trouble finding g...

Scroll to bottom of div?

I am creating an ajax chat in rails and I am trying to get a div to scroll to the bottom without much luck. I am wrapping everything in this div: #scroll { height:400px; overflow:scroll; } Is there a way to keep it scrolled to the bottom by default using JS? is there a way to keep it scrolled to the bottom after an ajax requ...

Recommended Java/AJAX design pattern?

Hi Folks, We need some input on what is a good design pattern on using AJAX in a Java application. Consider a simple scenario: User clicks a button which sends a request to a Java method to fetch data from DB. Java object is returned by method and needs to be converted into a HTML table. HTML table is shown on JSP. What we current...

What is more efficient - server calls with ASP.NET AJAX or jQuery?

I used jQuery exclusively on my last project to do all my AJAX calls. I used both $.ajax and $.getJSON calls to return data to the page. However, I see a ton of examples online using jQuery to handle UI and data formatting, but using ASP.NET AJAX to actually perform web service calls and retrieve data. Is it more efficient to use ASP.NET...