similar to: Event Overload

Displaying 20 results from an estimated 10000 matches similar to: "Event Overload"

2008 Mar 31
1
How to make a ajax (xhr) redirect?
Hi all, In my application, I want seamless degradability so I use request.xhr? to check whether a request is an ajax call. However here and there, I need to use redirect_to - in this case the request is not xhr anymore, and the check doesn''t work as expected. Is there a way to make xhr- like redirect (which allow to get to another controller+action)? Thanks, - Chuong
2008 Feb 21
1
Using Really Simple History on Rails
Hello all, I am getting Really Simple History working in rails. I''ve got this history content up etc, but I am a bit lost on how to capture the XHR response data from the Rails app to insert into the history. My understanding would be to have some way of grabbing the response data from the Rails app, inserting that into the history with dhtmlHistory.add(''PageName'',
2007 Sep 04
0
Saving State in Ajax Applications
Greetings Everyone, I had posted about a method for handling the back and forward buttons for your ajax applications. I have completed a working prototype for the other half of the history coin, enabling the bookmark. The basic premise falls in line with many other approaches, stashing JSON notation in the URL after a # hash symbol. The difference is that this approach complies
2008 Jan 21
4
Can't change paramName with InPlaceCollectionEditor
Hi all, I use prototype v1.5 and script.aculo.us controls v1.7.0 I did this simple code : --------------------------------------------------------------------------------------------------- new Ajax.Request("myPageSel.asp", { method: "get", parameters: {r:$el.id}, onSuccess: function(xhr) { new Ajax.InPlaceCollectionEditor($el.id, ''myPageMaj.asp'', {
2006 Nov 16
3
Scriptaculous 1.6.5 Checkbox problems
I''d report this on the rails trac site but it won''t let me open a new ticket. I figured this was important enough to bring this up now. I replaced the prototype version in Scriptaculous 1.6.4 with the version in 1.6.5 in a rails site I''m working on. I noticed though that even though I was clicking the checkbox to confirm the acceptance of a terms of service that I kept
2007 Oct 25
4
""throw $continue" is deprecated, use "return" instead"
I am using the firebug plugin to debug my javascript code, and I get the following message while debugging. Anyone familiar with this error? See my code below: <title>My Test </title> <script src="json.js" type="text/javascript"></script> <script src="prototype.js" type="text/javascript"></script>
2008 Jun 26
7
Strange readyStates in prototype Ajax
Hi, I''ve never posted here before so please forgive me if I''m not observing proper decorum, yadda yadda yadda :-) I''ve ran into a very, very strange bug with Prototype I wanted to share and see if anyone else has seen this. In a few of my projects involving Ext JS, I''m using the TreePanel control, which uses AJAX to load child nodes asynchronously. Because I
2006 Mar 29
0
MaxConnections in IE and Ajax.Request/Sortable
Hi all, IƤve built some functionality in a CMS where you can drag and drop small elements on the page between 2+ panes/containers/divs. Whenever a drag-drop event has occurred (onUpdate) I make a Ajax.Request to save the new layout in the CMS. The code is as follows: in an onload-function: var a = ["subcontent", "main"]; for (var i=0; id=a[i]; i++) { if ($(id)) {
2007 Dec 01
3
Event.observe and normal event
Hello! I posted in another mail that I had a problem with this code: paths.each( function(img, i) { this.imglist[i] = new Image(); this.imglist[i].src = img; Event.observe( this.imglist[i], ''onload'',
2008 Mar 21
4
Prototype.js event.stop(event) FF2 not working
stop: function(event) { if (event.preventDefault) { event.stopPropagation(); event.preventDefault(); } else { event.returnValue = false; event.cancelBubble = true; } } /* br original stop: function(event) { Event.extend(event); event.preventDefault(); event.stopPropagation(); event.stopped = true; } */ };
2006 Jun 15
3
RE: Yahoo!-like Event object emulation/abstractionin Prototype?
Event.observe(myelement, ''click'', myfunc.bindAsEventListener()); That might fix your wagon. Greg > -----Original Message----- > From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs- > bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Sam Rowe > Sent: Thursday, June 15, 2006 11:24 AM > To:
2007 Aug 16
2
event.target.readAttribute undefined
...using 1.6 RC0... event.target.readAttribute is undefined on IE 6 and 7 and Safari 1.3.2. ...works fine on other browsers. Is this a bug? Thx, Les --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to
2006 Jan 10
5
using dynamic element ids with visual_effect
Mike and I demo an Ajaxified version of the Depot application in the Rails Studio. Part of the demo is a cart in the sidebar which updates when you add a product to it. As well as updating the div, it also highlights the most recently added link item. Right now, we do it with: <script language="JavaScript"> function flash_cart(request) { var id =
2007 Sep 28
2
Event.observe doesn't work
Hi, The following simple html doesn''t work with errors, why? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/ html4/strict.dtd"> <html> <title>click</title> <head> <h2>Click!</h2> <script type="text/javascript" language="javascript">
2007 Sep 22
2
How to fire an event when the page completes loading?
I''m looking for an event handler in Prototype (or plain old JavaScript) similar to onContentReady() in the YUI library: (see http://developer.yahoo.com/yui/examples/event/event-timing.html) How can I implement this? If I''m not mistaken, my testings showed the document.onLoad() happens too early (as soon as the page loads it fires, even before some dom elements are on the page
2007 Jun 28
1
base Event.Observe question
I would like to putting all of the onXXXX inside an Event.observe(window, ''load''...) When I click the button it would''t alert the mssage in FF but IE is work? I believe it is related to bind.....but I''m not really familiar with this...so anyone can teach me how to do? <script> function hello(e){ alert(Event.element(e) + '' clicked'');
2008 Jul 02
1
Stop sortable dop event
Hi! I have a sortable list Every item in this list has a droppable area In this area I could drop some elements of the same list Everything is ok except I need to stop the sortable event when I drop an item in the droppable area Is this possible? Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby
2008 Jun 18
1
strange fire custom event
im not good in English, so code here ----------------------------------------------------------------------------------------------------- <form id="form"> <input type="submit" value="submit" /> </form> <script src="http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.2/ prototype.js"></script> <script> //i pass the
2006 Feb 21
1
RE: [Prototype] onSuccess Event and, Ajax.Updater bug in IE
Joe, After removing all occurrences of charset=utf-8 from my headers I am still getting the same bug in IE. Currently, it''s Content-Type: text/html Any other suggestion? Nathan. > Message: 2 > Date: Mon, 20 Feb 2006 09:13:57 -0500 > From: "Joe Hudson" <joe-x8g0hQFNjJhWk0Htik3J/w@public.gmane.org> > Subject: RE: [Rails-spinoffs] [Prototype] onSuccess Event
2008 Mar 09
1
Event delegation library that interacts with Scriptaculous
Hey Guys, Wanted to let you know about an event delegation library that interacts with Scriptaculous that we''ve used to make interactive UI elements with really clean code. We used it with Scriptaculous to create the scrolling widgets on the homepage of http://javascriptmvc.com/. It''s called Controller and it is an event delegation library that helps logically organize your