search for: historyupdate

Displaying 2 results from an estimated 2 matches for "historyupdate".

2006 May 12
0
draft-proposal for Ajax.History - History/Bookmark handling in Ajax apps
...getBookmark: function(){ try{ return window.location.hash.substring(1)||''''; }catch(e){ return ''''; } } } Sample Usage: first you have to define a callback method for the history handler which replays a previous ajax request: var historyUpdate = function(hash) { new Ajax.Request( .... } in the onSuccess/onComplete of a Ajax.Request or Ajax.Updater (etc) you have to add an history point: var handleSuccess = function(request){ //... update DOM or smth like that Ajax.History.add(request.options.parameters) //......
2006 Jun 29
11
Autocompleter without a default choice
Hi, I have an ajax auto completer for a text field in a form. All''s good. Unfortunately, I also want the form to be submitted when the user hits ''return'' in the text field. This combination of circumstances means that if the user is typing his entry and then hits return to submit it is possible that dang auto completer will pop up and complete his entry for even if he