[Proto-Scripty] Re: Sortable onUpdate not working on IE7

2009-06-17 Thread Adriano Santi
On Jun 17, 1:31 am, "T.J. Crowder" wrote: > Is the script tag including that JS file *below* the script tag that > contains the document.observe call?  If so, move it above it. It's way above. All my external .js files are called on the head of the html. First one called is prototype, then scrip

[Proto-Scripty] Clarification on PUT method in Ajax.Request

2009-06-17 Thread P. Douglas Reeder
The documentation on Ajax.Request, for the "method" option, says: method 'post' The HTTP method to use for the request. The other widespread possibility is 'get'. As a Ruby On Rails special, Prototype also reacts to other verbs (such as 'put' and 'delete' by actually using 'pos

[Proto-Scripty] Re: MySQL - order ID

2009-06-17 Thread Walter Lee Davis
We're not getting this done by pasting little bits of code back and forth. You're missing something in here, the server process that does the clone in the database has to return the new ID -- that's the only place it can come from. If you go back to my example, I had the last line of the

[Proto-Scripty] Re: Handle on sortable list doesn't work in IE.

2009-06-17 Thread Maya
Perfect! Thank you. It works now. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe fr

[Proto-Scripty] Re: Prototype and forms

2009-06-17 Thread Alex McAuley
Maybe add it on "onSuccess" too ! just to be safe! - Original Message - From: "anthony" To: "Prototype & script.aculo.us" Sent: Wednesday, June 17, 2009 5:30 PM Subject: [Proto-Scripty] Re: Prototype and forms Here was the problem. I should have been calling the function (getAdjForm

[Proto-Scripty] Re: Prototype and forms

2009-06-17 Thread Rick Waldron
Always nice to find your own mistakes and learn from them - well done! On Wed, Jun 17, 2009 at 12:30 PM, anthony wrote: > > Here was the problem. > > I should have been calling the function (getAdjForm) using onComplete: > > function getTerritories() { > >var params = $('createAdjForm')

[Proto-Scripty] Re: Need help resolving conflict between Proto and Uize frameworks

2009-06-17 Thread Rick Waldron
Maybe I'm nuts but you're calling setMovie() in the body tag meanwhile... you have an Ajax.Request getting some data that will call... setMovie() when successful So... i suspect, that onload starts playing, then the ajax request finishes and resets your player. I dont recommend onload='' ev

[Proto-Scripty] Re: Curvy Corners + draggables (script.aculo.us)

2009-06-17 Thread Rick Waldron
Before I take a look at your issue... I have a rewrite of CurvyCorners that i did that makes it run way faster. I was using it in a project and was annoyed by how long it took to render the corners. I can't say its any cleaner, but I corrected an unecessary loop. I've attched the rewrite to this em

[Proto-Scripty] Re: MySQL - order ID

2009-06-17 Thread WLQ
I'm quite positive that it's something wrong with your script, because on drop (clone) this gets inserted in html: (x)Description Instead of being: Description (x) For some reason it creates 2 instances instead of one (both of the above). If you drag out items in ascending order by the id (1,2,3

[Proto-Scripty] Re: AJAX exception handling

2009-06-17 Thread rasmus
> No harm in > asking!https://prototype.lighthouseapp.com/projects/8886-prototype/overview > Thank you for the reference. I found this interesting ticket on the subject: https://prototype.lighthouseapp.com/projects/8886/tickets/634-no-exception-on-error-in-oncreate-method-of-ajaxrequest Tobie L

[Proto-Scripty] Re: Prototype and forms

2009-06-17 Thread anthony
Here was the problem. I should have been calling the function (getAdjForm) using onComplete: function getTerritories() { var params = $('createAdjForm').serialize(); new Ajax.Updater( "territories", "url(array('controller'=>'index', 'action'=>'get- territories'))

[Proto-Scripty] Re: Handle on sortable list doesn't work in IE.

2009-06-17 Thread Walter Lee Davis
Sure. You have to use a className for the handles, since you presumably have more than one of them. You cannot have the same ID more than once in any given page. If you do, you get either unpredictable results or nothing, depending on how pedantic the browser or code is feeling that partic

[Proto-Scripty] Re: Need help resolving conflict between Proto and Uize frameworks

2009-06-17 Thread Alex McAuley
is it run inside a dom:loaded wrapper ? - Original Message - From: "piers" To: "Prototype & script.aculo.us" Sent: Wednesday, June 17, 2009 4:14 PM Subject: [Proto-Scripty] Need help resolving conflict between Proto and Uize frameworks > > I know it's probably a lousy idea but I have

[Proto-Scripty] Re: Prototype and forms

2009-06-17 Thread Alex McAuley
Because the contents are from an AJAX request and they dont exist in the DOM probably . OR.. They are outside the tag Paste full code to a pastie and we can help - Original Message - From: "anthony" To: "Prototype & script.aculo.us" Sent: Wednesday, June 17, 2009 4:52 PM

[Proto-Scripty] Re: Prototype and forms

2009-06-17 Thread anthony
Ok, I have found a better way to explain this. var params = $('createAdjForm').serialize(); alert(params); This does not show the form elements that were included via: Why is that the case? On Jun 17, 9:06 am, anthony wrote: > Thanks for the cleanup. I have made those changes. Feel free to

[Proto-Scripty] Need help resolving conflict between Proto and Uize frameworks

2009-06-17 Thread piers
I know it's probably a lousy idea but I have both prototype and uize referenced in the of my document: [code] [/code] The only time I use a prototype function in the of the document is to create a function that plays a movie when a thumbnail is clicked. The function is: [code] fun

[Proto-Scripty] Handle on sortable list doesn't work in IE.

2009-06-17 Thread Maya
I've assigned a handle on my sortable and it works fine in Firefox but not at all in IE. In IE you can use any of the elements in the LI to reorder the list. I would like to only be able to use the "REORDER" element to reorder the list. Any suggestions? Item Name - Date - Detail - REORDER

[Proto-Scripty] Curvy Corners + draggables (script.aculo.us)

2009-06-17 Thread Rafael M Ximenes
Hi, everybody! I'm a Brazilian WebDev and I've found a script to round corners without images (Script's name is Curvy Corners: http://www.curvycorners.net/demos/). I was trying to round corners of the draggables, but they lose your functions. Some help? Regards. Rafael --~--~-~--~---

[Proto-Scripty] Re: Prototype and forms

2009-06-17 Thread anthony
Thanks for the cleanup. I have made those changes. Feel free to post others. The problem I have is that the form had two dynamic places: and There is an onChange that calls the javascript function getTerritories () allows the to display which has a form element called territory. At the end of

[Proto-Scripty] Re: AJAX request - select element

2009-06-17 Thread fufolewe
Hi, thx a lot! It works! On 16 Jun., 14:55, ColinFine wrote: > On Jun 15, 1:41 pm, "T.J. Crowder" wrote: > > > 2. Alternately, use a document fragment[1][2].  This is to a large > > extent what document fragments are for -- holding copies of things and > > mucking about with them off-to-the-

[Proto-Scripty] Re: Creating new lines and bypassing them through escapeHTML

2009-06-17 Thread T.J. Crowder
Sorry, "holy war" reads a lot stronger than I meant it to. I'm just frustrated by the utter bollocks that comes out of the W3C more often than not. -- T.J. On Jun 17, 9:44 am, "T.J. Crowder" wrote: > @kangax & Rob: > > I didn't mean to step into someone's holy war here.  By "seems to be > reco

[Proto-Scripty] Re: Event.stop with two observers on same object

2009-06-17 Thread T.J. Crowder
> Maybe a clarifying line in the docs would help here, > e.g. I'm with you; open a ticket on Lighthouse[1] and assign it to me? [1] https://prototype.lighthouseapp.com/projects/8886-prototype/overview -- T.J. :-) On Jun 17, 8:33 am, steffenb wrote: > OK, I read those two points on Event#stop,

[Proto-Scripty] Re: Creating new lines and bypassing them through escapeHTML

2009-06-17 Thread T.J. Crowder
@kangax & Rob: I didn't mean to step into someone's holy war here. By "seems to be recommended" I meant what I said earlier, used in the unit tests and such. Let's just change them to something reasonable and move on. -- T.J. On Jun 17, 7:10 am, RobG wrote: > On Jun 15, 5:48 pm, "T.J. Crowde

[Proto-Scripty] Re: Problems with pollDoScroll and IE family (1.6.1 rc)

2009-06-17 Thread T.J. Crowder
Hi, > When I replace pollDoScroll.defer(); with pollDoScroll.delay(0); > everything works. That's weird, since xyz.defer() is functionally equivalent (with a bit more overhead) to xyz.delay(0.01). > How is the process to get in tough with the Prototype devels? http://prototypejs.org/contribute

[Proto-Scripty] Re: Sortable onUpdate not working on IE7

2009-06-17 Thread T.J. Crowder
Hi, > The updateTeamList is a function in a .js file that is used by this > page. Is the script tag including that JS file *below* the script tag that contains the document.observe call? If so, move it above it. If that's not it, I'd pick up with #3 on this list: http://proto-scripty.wikidot.c

[Proto-Scripty] Sortable onUpdate not working on IE7

2009-06-17 Thread Adriano Santi
I have a page with a simple sortable UL, with the id attribute "lister". I'm using the following code: document.observe("dom:loaded", function() { Sortable.create('lister',{tag:'li', onUpdate:updateTeamList}); }); However, when the page is loaded, IE7 gives me the following errors: A Ru

[Proto-Scripty] Re: Event.stop with two observers on same object

2009-06-17 Thread steffenb
OK, I read those two points on Event#stop, but still believed Event#stop would prevent any further event processing, as the method name indicates. Maybe a clarifying line in the docs would help here, e.g. Note: further observers on the same element will be called despite Event#stop. Steffen On