Thomas Fuchs
2005-Sep-25 18:28 UTC
[Rails-spinoffs] [ANN] script.aculo.us 1.5 release candidate 1
So, the first script.aculo.us 1.5 release candidate is out! Important changes and fixes from 1.5_pre4 (for a detailed list, see the CHANGELOG file): * Droppables w/greedy and hoverclass are now reverted when dragged item is no longer over them, fixes #2184 * Let Effect.Highlight correctly parse IE colors, add String.prototype.parseColor() for this, fixes #2037 * Make scriptaculous.js work if a query strings are used when calling it * Fixed a bug with Safari and the InPlaceEditor with form submission. Add support for interpreting simple <BR>s into linebreaks. [Jon Tirsen] * New Control.Slider() for horizontal and vertical sliders [Marty Haught] * Autoapplying a ''layout'' on IE with Effect.Opacity on elements that have no Layout * Make Effect.Parallel render final frames and call beforeFinish/ afterFinish on included effects * Added focusing the text field or text area created when using Ajax.InPlaceEditor #2126 [thx to Lee Mallabone] * Fixed Element.Class.childrenWith not returning the correct elements #2120 [cmees AT rogers DOT com] * Fix issues with form elements inside draggables not clickable with Firefox #2129 * Make effects "stateless" by cleaning up element.style after finish of effect #2133 [[Martin Bialasinski] * Add "internal" events to effects, to make them more easily extendable [Martin Bialasinski] * Controls.js Autocompleter.Base.updateElement() hook #2116 [Rob Wills] * Refactoring to use the Prototype enumerable extensions * Update to Prototype 1.4.0_pre4 Please test, test, test, write patches, contribute documentation, etc. etc. :) Thomas
Clay Loveless
2005-Sep-25 18:50 UTC
[Rails-spinoffs] [ANN] script.aculo.us 1.5 release candidate 1
Thomas Fuchs (thomas@fesch.at) wrote:> So, the first script.aculo.us 1.5 release candidate is out! > ... > * Update to Prototype 1.4.0_pre4The Prototype 1.4.0_pre4 that''s in the Prototype repository is not the same as the one distributed with this release. And, Prototype is up to 1.4.0_pre6 as of today, and the hacks that have been made in the bundled prototype.js library are not yet in the official Prototype 1.4.0_pre4, 5 or 6 packages. Is script.aculo.us forking Prototype? If not, the discrepancies between the Prototype 1.4.0_pre4 statement in the release, and the actual version in this location: http://dev.conio.net/repos/prototype/pkg/prototype-1.4.0_pre4.tar.gz ... Are very confusing to the outside observer like myself. Looks like Sam is releasing versions today -- is it possible to sync these issues up to get everyone on the same page? -Clay -- Killersoft.com
Thomas Fuchs
2005-Sep-25 19:42 UTC
[Rails-spinoffs] [ANN] script.aculo.us 1.5 release candidate 1
Didn''t reply to the whole list on first try, so here it goes: Am 26.09.2005 um 00:26 schrieb Clay Loveless:> The Prototype 1.4.0_pre4 that''s in the Prototype repository is not > the same > as the one distributed with this release. > And, Prototype is up to 1.4.0_pre6 as of today, and the hacks that > have been > made in the bundled prototype.js library are not yet in the official > Prototype 1.4.0_pre4, 5 or 6 packages. > > Is script.aculo.us forking Prototype? >No. But because both Prototype and script.aculo.us are currently in development slight differences can occur. :)> If not, the discrepancies between the Prototype 1.4.0_pre4 > statement in the > release, and the actual version in this location: > http://dev.conio.net/repos/prototype/pkg/prototype-1.4.0_pre4.tar.gz > ... Are very confusing to the outside observer like myself. > > Looks like Sam is releasing versions today -- is it possible to > sync these > issues up to get everyone on the same page? >Providing Prototype in the downloadable package is just for ''preview release'' convenience, the final script.aculo.us 1.5 package won''t include the prototype.js file. Hope that clarifies things. Btw, success/bug reports on using script.aculo.us V1.5_rc1 with Prototype 1.4.0_pre6 are welcome. :) My tests with it indicate that everything seems to work just fine. :) Thomas
Maninder, Singh
2005-Sep-26 05:09 UTC
[Rails-spinoffs] [ANN] script.aculo.us 1.5 release candidate 1
Hi, I just downloaded the new release of the prototype library and scriptaculous library. On using these with the code that earlier worked, I am getting JS errors now. The following code worked fine with earlier prototype version but with Version: ''1.4.0_pre6'', I am not able to get it to work. Error from Firefox Console: Error: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.getResponseHeader]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: http://hydws0011/ajax/javascripts/prototype.js :: anonymous :: line 532" data: no] Source File: http://hydws0011/ajax/javascripts/prototype.js Line: 532 Clicking this goes to the following - evalJSON: function() { var json = this.transport.getResponseHeader(''X-JSON''), object; [THIS LINE] Code: <html> <head> <title>AJAX Usage</title> <script src="javascripts/prototype.js" type="text/javascript"></script> <script src="javascripts/scriptaculous.js" type="text/javascript"></script> </head> <body> <script type="text/javascript" language="javascript"> // <![CDATA[ var opt = { // Use POST method: ''post'', // Send this lovely data postBody: ''state=YT'', // Handle successful response onSuccess: function(t) { alert(t.responseText); }, // Handle 404 on404: function(t) { alert(''Error 404: location "'' + t.statusText + ''" was not found.''); }, // Handle other errors onFailure: function(t) { alert(''Error '' + t.status + '' -- '' + t.statusText); } } new Ajax.Request(''http://hydws0011/ajax/php/handler.php'', opt); // ]]> </script> </body> </html> What am I doing wrong? Is it something to do with JSON? Thanks, Mandy.
François Beausoleil
2005-Sep-26 22:13 UTC
[Rails-spinoffs] [ANN] script.aculo.us 1.5 release candidate 1
Hi ! Maninder, Singh said the following on 2005-09-26 04:44:> Error from Firefox Console: > > Error: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.getResponseHeader]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: http://hydws0011/ajax/javascripts/prototype.js :: anonymous :: line 532" data: no] > Source File: http://hydws0011/ajax/javascripts/prototype.js > Line: 532 > > > Clicking this goes to the following - > evalJSON: function() { > var json = this.transport.getResponseHeader(''X-JSON''), object; [THIS LINE] > > What am I doing wrong? > > Is it something to do with JSON?Don''t know, but I have the same error. For the moment, I updated to r2343 of prototype.js. That did the trick. Bye, Fran?ois
Maninder, Singh
2005-Sep-27 01:32 UTC
[Rails-spinoffs] [ANN] script.aculo.us 1.5 release candidate 1
Even I reverted back to the previous version of prototype and it worked! But, can someone help us fix this issue? Otherwise, being on the previous version we won''t be able to take advantage of the new features that prototype library has to offer. Does JSON have any dependency - that is, in the new version of prototype there are references to JSON - do we need something for it? -----Original Message----- From: rails-spinoffs-bounces@lists.rubyonrails.org [mailto:rails-spinoffs-bounces@lists.rubyonrails.org]On Behalf Of Fran?ois Beausoleil Sent: Tuesday, September 27, 2005 7:19 AM To: rails-spinoffs@lists.rubyonrails.org Subject: Re: [Rails-spinoffs] [ANN] script.aculo.us 1.5 release candidate 1 Hi ! Maninder, Singh said the following on 2005-09-26 04:44:> Error from Firefox Console: > > Error: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.getResponseHeader]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: http://hydws0011/ajax/javascripts/prototype.js :: anonymous :: line 532" data: no] > Source File: http://hydws0011/ajax/javascripts/prototype.js > Line: 532 > > > Clicking this goes to the following - > evalJSON: function() { > var json = this.transport.getResponseHeader(''X-JSON''), object; [THIS LINE] > > What am I doing wrong? > > Is it something to do with JSON?Don''t know, but I have the same error. For the moment, I updated to r2343 of prototype.js. That did the trick. Bye, Fran?ois _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Hi, I couldn''t find anything documented on the script.aculo.us page, therefore I thought I would ask here. I am looking into using the sorted list function for, yes you guessed it, sorting lists. Moving elements within a list or between two different lists works like a charm. Great stuff. However, moving an element into a nested list doesn''t seem to be implemented at the moment. I''ve seen some comment about a parameter called "tree", and the comment said "to do". Therefore I guess it is on the way. I was wondering what the problem is with moving elements into a nested list. Is there a description of the problem somewhere? Cheers, Jens
Has anyone successfully used a sortable in a scrolled div(autoflow:auto;)? I''ve found if you scroll down and try to drag something out of the div, it jumps down the screen as soon as it leaves the scrolled div. If the div is scrolled enough, it disappears completely. It seems like the item moves down as far as the div has been scrolled so I''m sure that is somehow related. Despite it disappearing, it still seems to drop correctly, however I don''t think anyone would have the common sense to think something that just jumped off the screen is still working. I think this hint''s that this kind of thing could be easily fixed. Another bug i noticed. Lets say you have a scrollable div above another. The top div has say, 3 rows of items. If you try to sort the bottom sortable, objects start appearing in the div on the top. It seems even though the div is scrolling, the drop zone becomes as large as the space the images would take up if they werent scrolling and this runs behind the bottom div. I think if these things were fixed sortables would become a very powerful tool. It seems like everytime I get an idea for a really cool thing to do with them, it doesn''t work for some reason or another. Joe
Thomas Fuchs
2005-Sep-27 08:19 UTC
[Rails-spinoffs] [ANN] script.aculo.us 1.5 release candidate 1
For the time being, you can patch your prototype.js 1.4.0_pre6 file with: evalJSON: function() { var object; try { var json = this.transport.getResponseHeader(''X-JSON''); if(json) object = eval(json); } catch (e) { } return object; }, You can send JSON along your response with a call like headers[''X-JSON''] = %q!{''A'':"B",''C'':[1,null,3,"ABC",{"D": 56,"E":"JSON"}]}! in your controller. Note that there''s a ruby-json gem to help you serialize Ruby objects into JSON, try "gem install ruby-json". See the included rdocs for more info. Thomas Am 27.09.2005 um 07:06 schrieb Maninder, Singh:> Even I reverted back to the previous version of prototype and it > worked! > > But, can someone help us fix this issue? Otherwise, being on the > previous version we won''t be able to take advantage of the new > features that prototype library has to offer. Does JSON have any > dependency - that is, in the new version of prototype there are > references to JSON - do we need something for it? > > -----Original Message----- > From: rails-spinoffs-bounces@lists.rubyonrails.org > [mailto:rails-spinoffs-bounces@lists.rubyonrails.org]On Behalf Of > Fran?ois Beausoleil > Sent: Tuesday, September 27, 2005 7:19 AM > To: rails-spinoffs@lists.rubyonrails.org > Subject: Re: [Rails-spinoffs] [ANN] script.aculo.us 1.5 release > candidate 1 > > > Hi ! > > Maninder, Singh said the following on 2005-09-26 04:44: > >> Error from Firefox Console: >> >> Error: [Exception... "Component returned failure code: 0x80040111 >> (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.getResponseHeader]" >> nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS >> frame :: http://hydws0011/ajax/javascripts/prototype.js :: >> anonymous :: line 532" data: no] >> Source File: http://hydws0011/ajax/javascripts/prototype.js >> Line: 532 >> >> >> Clicking this goes to the following - >> evalJSON: function() { >> var json = this.transport.getResponseHeader(''X-JSON''), object; >> [THIS LINE] >> >> What am I doing wrong? >> >> Is it something to do with JSON? >>
Maninder, Singh
2005-Sep-27 11:27 UTC
[Rails-spinoffs] [ANN] script.aculo.us 1.5 release candidate 1
Thomas, I see that you have added a patch for this and given a new release prototype.js 1.4.0_pre7. I just updated to it. Now it works fine for me in Firefox / Opera but is not working fine in IE. Did you check on IE? Please let me know. Thank you, Mandy. -----Original Message----- From: rails-spinoffs-bounces@lists.rubyonrails.org [mailto:rails-spinoffs-bounces@lists.rubyonrails.org]On Behalf Of Thomas Fuchs Sent: Tuesday, September 27, 2005 5:23 PM To: rails-spinoffs@lists.rubyonrails.org Subject: Re: [Rails-spinoffs] [ANN] script.aculo.us 1.5 release candidate 1 For the time being, you can patch your prototype.js 1.4.0_pre6 file with: evalJSON: function() { var object; try { var json = this.transport.getResponseHeader(''X-JSON''); if(json) object = eval(json); } catch (e) { } return object; },
Thomas Fuchs
2005-Sep-27 11:49 UTC
[Rails-spinoffs] [ANN] script.aculo.us 1.5 release candidate 1
_pre7 is the latest dev release from the prototype site. Do you have any specific information ob this not working in IE, any errors or so? Can you put up a live test page where this happens? This would be of great help! :) Thomas Am 27.09.2005 um 17:00 schrieb Maninder, Singh:> Thomas, > > I see that you have added a patch for this and given a new release > prototype.js 1.4.0_pre7. > > I just updated to it. > > Now it works fine for me in Firefox / Opera but is not working fine > in IE. > > Did you check on IE? > > Please let me know. > > Thank you, > Mandy. >
Maninder, Singh
2005-Sep-27 12:12 UTC
[Rails-spinoffs] [ANN] script.aculo.us 1.5 release candidate 1
Using Microsoft Script Debugger (which is useless :) I get the following error: Line 438: Error: Object doesn''t support this property or method. var Ajax = { getTransport: function(ajaxRequest) { var transport = Try.these( function() {return new ActiveXObject(''Msxml2.XMLHTTP'')}, function() {return new ActiveXObject(''Microsoft.XMLHTTP'')}, function() {return new XMLHttpRequest()} ); transport.ajaxRequest = ajaxRequest; //THIS IS THE LINE WHERE THE ERROR IS return transport; } } It takes me to the following code and highlights transport.ajaxRequest=ajaxRequest; Everything for me is on localhost so I can''t offer a link. I''ll put something up at some place in some time. Thank you, Mandy.
I use this to make a tree structure with scriptadelicious <div id="tree"> <ul> <li> <ul> <li>droppable zone 2px height </li> <li>dragable & droppable zone with the actual text </li> <li>droppable zone 2px height </li> </ul> <li> <li> <ul> <li>droppable zone 2px height </li> <li>dragable & droppable zone with the actual text <ul> <li>droppable zone 2px height </li> <li>dragable & droppable zone with the actual text </li> <li>droppable zone 2px height </li> </ul> </li> <li>droppable zone 2px height </li> </ul> <li> <li> <ul> <li>droppable zone 2px height </li> <li>dragable & droppable zone with the actual text </li> <li>droppable zone 2px height </li> </ul> <li> </ul> </div> the PHP reply by the complete set of the tree. Hope that can help. Thomas R. On 27/09/05, Jens Schumacher <jens.schumacher@gmail.com> wrote:> Hi, > > I couldn''t find anything documented on the script.aculo.us page, > therefore I thought I would ask here. > > I am looking into using the sorted list function for, yes you guessed > it, sorting lists. Moving elements within a list or between two > different lists works like a charm. Great stuff. However, moving an > element into a nested list doesn''t seem to be implemented at the > moment. I''ve seen some comment about a parameter called "tree", and > the comment said "to do". Therefore I guess it is on the way. > > I was wondering what the problem is with moving elements into a > nested list. Is there a description of the problem somewhere? > > Cheers, > Jens > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >
Thomas Fuchs
2005-Sep-27 14:32 UTC
[Rails-spinoffs] [ANN] script.aculo.us 1.5 release candidate 1
That was a bug in _pre7 of Prototype. The new SVN trunk of script.aculo.us features an updated version (from the prototype site), where this problem shouldn''t occur. Thomas Am 27.09.2005 um 17:45 schrieb Maninder, Singh:> Using Microsoft Script Debugger (which is useless :) I get the > following error: > > Line 438: > Error: Object doesn''t support this property or method. > > var Ajax = { > getTransport: function(ajaxRequest) { > var transport = Try.these( > function() {return new ActiveXObject(''Msxml2.XMLHTTP'')}, > function() {return new ActiveXObject(''Microsoft.XMLHTTP'')}, > function() {return new XMLHttpRequest()} > ); > transport.ajaxRequest = ajaxRequest; //THIS IS THE LINE WHERE > THE ERROR IS > return transport; > } > } > > It takes me to the following code and highlights > transport.ajaxRequest=ajaxRequest; > > Everything for me is on localhost so I can''t offer a link. > > I''ll put something up at some place in some time. > > Thank you, > Mandy. > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >
Maninder, Singh
2005-Sep-28 02:07 UTC
[Rails-spinoffs] [ANN] script.aculo.us 1.5 release candidate 1
Thank you very much. Just checked it out. Things are back to normal :) -Mandy. -----Original Message----- From: rails-spinoffs-bounces@lists.rubyonrails.org [mailto:rails-spinoffs-bounces@lists.rubyonrails.org]On Behalf Of Thomas Fuchs Sent: Tuesday, September 27, 2005 11:36 PM To: rails-spinoffs@lists.rubyonrails.org Subject: Re: [Rails-spinoffs] [ANN] script.aculo.us 1.5 release candidate 1 That was a bug in _pre7 of Prototype. The new SVN trunk of script.aculo.us features an updated version (from the prototype site), where this problem shouldn''t occur. Thomas