ajax

Scriptaculous autocompleter problem

In Scriptaculous Ajax autocomplter it chooses the first entry by default . how do i stop it from choosing the first option by default?? ...

RichFaces: Displaying a notification "popup" when AJAX operation succeeded

We are currently developing a B2B web shop based on Java EE 5, JSF, Facelets and RichFaces. The technology has really worked very well so far, but now I am facing a small problem I just can't figure out how to solve: Products are listed as tables, where every item can be added to the shopping basket by clicking on a small icon at the en...

how to make acts_as_list behave with groupings

I have a small rails app that is using acts_as_list to implement drag and drop via ajax. The app has 3 main models: forms, sections, and questions. As it is designed, forms have many sections, and sections have many questions. I want a user to be able to do 3 things: reorder the sections in forms reorder the questions in the secti...

Embedding an image in an AJAX response

Is it possible (and supported cross-browser) to embed an image into the XML of an AJAX response, and then load that image using JavaScript? I have a system that does some calculations based on the number of sessions running through it. The results are then graphed, and returned in two parts: 1) XML containing information about the grap...

JQuery Ui or AjaxControlToolkit ?

I´m building an asp.net app, which technology I should use to get AJAX capabilities? And why ? By now I only need to use a Confirmation button into a gridview, but possible more features will be needed. I can use both, right? Thanks. ...

Server polling intervals for a javascript chat client

I'm building a basic little AJAX shoutbox/chat for my website, but I'm not sure exactly how to implement the server polling. Here's the basic program flow I'm thinking of: User comes to page and is shown the last 10 messages To get messages sent by others, the client javascript would request a URL with a timestamp parameter (set to th...

Allow User to Download File using Ajax

Hi I am looking for a way to allow users to download a file from my site using ajax. The reason why i need to do this is because the files are quite big (50 megs normally). So when the user clicks the download button it actually looks as if the page is not responding because it has to stream the file from my Amazon S3 to the user. So i...

prototype.js 1.6.0.3 Ajax.Updater not working in IE7 or IE8. Help Please!

This works on all other browsers...but fails on IE7 & IE8. Help Please! <html> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <script src="/javascripts/prototype.js" type="text/javascript" charset="utf-8"></script> </head> <body> <input type="button" value="Ajax Test" onclick="var myAjax = new Ajax.Updater(...

My trigger doesn't work in updatepanel?

i need to refresh UpdatePanel3'content , but if i click first btnTranslate , it doesn't work, but second click it works? <asp:Button ID="btnTranslate" runat="server" OnClick="btnTranslate_Click" Text=">>" class="buttons" ValidationGroup="ValidForm" /> </td> <td> ...

Best way to organise data

JavaScript takes a string of 4 hyphen delimited id's and string of 4 hyphen delimited titles and makes a request for JSON data to my C# web service. Then the C# web service makes a tracker with status "pending" and awaits the user to confirm the tracker before json can be served up on next request. When the user confirms the tracker th...

Do AJAX requests retain PHP Session info?

If I had a user logged onto my site, having his id stored in $_SESSION, and from his browser he clicked a 'Save' button which would make an AJAX request to the server. Will his $_SESSION and cookies be retained in this request, and can I safely rely on the id being present in the $_SESSION? ...

Which browsers have problems caching XMLHTTPRequest responses?

Do any of the currently popular browsers have particular problems caching* XMLHttpRequest responses that I need to be aware of? I'd like to be able to include XMLHttpRequest queries on every page as a method of dynamically loading content (ie JSON) or behaviour (like eval()ed Javascript) relevant to the type of page, but wanted to make ...

Scriptaculous Ajax.InPlaceEditor does not work with HTML

Hello, I'm using the Scriptaculous Ajax.InPlaceEditor to edit data from my database. Actually, it works perfectly at first, when there is no data in the database ; Here is what I have in my navigator source code : <p id="edit" title="Click to edit" > New text to edit here </p> I can create a new record, automaticly add some HTML to ...

yui or yui3

Is YUI3 ready mature enough? What are its advantages and disadvantes vs YUI ...

Building a "tag-editor" like the one here on stackoverflow to add/remove tags - in asp.net 3.5

Hi! For a customer project, I need to be able to add/remove tags from items (pictures in this case). I really like the way the Add Tag works here in stackoverflow. I know how to make the autosuggest-textbox (since there is a control for that in the Ajax Control Toolkit from asp.net), but I am not sure how to approach creating the l...

Why isn't my serverside callback occuring when I use 'jQuery ajax' in seaside 2.9?

I'm trying to do something like this in seaside 2.9 html button onClick: (html jQuery ajax serialize: (html jQuery this); script: [:s | s << (s jQuery id: stratId) append: [html text: 'bing'. html break]]); callback: [2 inspect]; with: 'add option'. and as I expect my div with stratId is getting appended but I'm not getting an ...

Redirect within Ajax call

I need to redirect an Ajax call without letting the client know. getPage.php is an application which returns html etc. for a given query. getPage.php?hash=interesting-article-title and getPage.php?page=3 returns the same. To avoid the client from having to cache both of these I would like getPage.php?hash=interesting-article-title to ...

How do I test for an empty Javascript object from JSON?

After an AJAX request, sometimes my application may return an empty object, like: var a = ({}); How can I check if that's the case? ...

How can I speed up Scriptaculous autocompletion?

Is there anyway in which the scriptaculous autocompleter can be made faster? Is there anything like a time property for which the autocompleter waits before sending out the suggestions? ...

On - window.location.hash - change?

I am using Ajax and hash for navigation. Is there a way to check if the window.location.hash changed like this? http://example.com/blah#123 to http://example.com/blah#456 It works if i check it when the document loads. But If I have #hash based navigation it doesnt work when I press the back Button on the browser (so I jump from blah#4...