Re: [Rails-spinoffs] InPlaceEditor: XHTML validation

2005-10-27 Thread Jon Tirsen
The INPUT field is in a FORM field. Isn't it valid to have an INPUT field in a FORM tag? Cheers, Jon On 10/28/05, Jay Levitt <[EMAIL PROTECTED]> wrote: > It's not a critical bug by any means, but shouldn't InPlaceEditor put > DIV tags around the INPUT field? From what I can tell on the W3C > val

[Rails-spinoffs] InPlaceEditor: XHTML validation

2005-10-27 Thread Jay Levitt
It's not a critical bug by any means, but shouldn't InPlaceEditor put DIV tags around the INPUT field? From what I can tell on the W3C validator, INPUT has to be in a block-level tag for XHTML. Of course, there are probably a zillion other things that wouldn't validate, but every little step

Re: [Rails-spinoffs] Save output of Ajax.InPlaceEditor to a variable?

2005-10-27 Thread Jon Tirsen
> Really? The use case might not be common but it seems like it should > be easy to design the code so it's supportable. I assume after the > user types something in you'll have that in a variable then execute > the Ajax stuff. Wouldn't it be simple to just short circuit the ajax > call and return

Re: [Rails-spinoffs] Save output of Ajax.InPlaceEditor to a variable?

2005-10-27 Thread Bill Lynch
On 10/27/05, Jon Tirsen <[EMAIL PROTECTED]> wrote: > This should be possible to do with some heavy hacking of the > InPlaceEditor. Essentially just strip out the Ajax calls from it and > instead save the new value in a field. I'll try that. > This is a pretty special requirement so I don't think

Re: [Rails-spinoffs] InPlaceEditor scrolls to top in Firefox?

2005-10-27 Thread Jay Levitt
Jay Levitt wrote: Jay Levitt wrote: If anyone's curious, the degenerate JS fail case is below. I'll submit a Firefox bug in the a.m. after I have another look. You can call it with onclick='enterEditMode(this)'. This is now bug # 31487 in Mozilla bugzilla: https://bugzilla.mozilla.org/sh

Re: [Rails-spinoffs] Save output of Ajax.InPlaceEditor to a variable?

2005-10-27 Thread Jon Tirsen
This should be possible to do with some heavy hacking of the InPlaceEditor. Essentially just strip out the Ajax calls from it and instead save the new value in a field. This is a pretty special requirement so I don't think we'll at this stage try to support it in the standard implementation. On 1

Re: [Rails-spinoffs] Event + Keycodes

2005-10-27 Thread Thomas Fuchs
For a start, try this page (with Firefox):http://www.din.or.jp/~hagi3/_javascript_/JSTips/Mozilla/Samples/KeyEvent.htmThomasAm 27.10.2005 um 19:34 schrieb Michael Ladum: Hi, Could someone please give me a quick and simple example of using various keys with the event object in prototype? I am not re

Re: [Rails-spinoffs] Save output of Ajax.InPlaceEditor to a variable?

2005-10-27 Thread Bill Lynch
Michael, Thanks, but that's not quite what I was looking for. I want a way do zero ajax calls -- basically, edit the field and get the new value in a variable without hitting the server (I have a blank URL parameter). Is that possible? Thanks, --Bill On 10/27/05, Michael Krog <[EMAIL PROTECTED]>

[Rails-spinoffs] Event + Keycodes

2005-10-27 Thread Michael Ladum
Hi,   Could someone please give me a quick and simple example of using various keys with the event object in prototype? I am not really sure how to use these.   Thanks   Brgds, Michael ___ Rails-spinoffs mailing list Rails-spinoffs@lis

Re: [Rails-spinoffs] Problem passing event object

2005-10-27 Thread Jason Hummel
Thanks for the feedback, the bind(this) worked like a charm, I was beating my head against my monitor trying to come up with a solution. I'm confused, though, as to why javascript loses the reference to "this" without that bind method can somebody explain? Also why doesn't onSuccess: this.switchP

[Rails-spinoffs] Hello. About the dragable list in script.aculo.us

2005-10-27 Thread Paulo Levi
Hi. I'm trying to make a 'special' dragable list with script.aculo.us. Special in that only one of its elements can be draged. I first tried to use the 'only: someclass' for the class that I wanted to move in the Sortable.create method, but that disabled movement. I've never even tried java

Re: [Rails-spinoffs] Ajax.Updater to replace element, not the content

2005-10-27 Thread Simon Arnaud
Francois Beausoleil a écrit : Hi ! Add a container element above the one you want to replace, and make the updater target that instead ? I already done that, but I don't like it much. That's why I asked :) Thanks anyway Simon ___ Rails-spinoffs m

RE: [Rails-spinoffs] Content-Type: application/rdf+xml

2005-10-27 Thread Maninder, Singh
Nobody answered my questionseems like no one ever faced this problem Either no one is playing around with xmlResponses (just using Ajax.Updator always I guess :) or it was too easy for everyone. Anyways, here is an article that explains the problem beautifully and gives a solution too.

Re: [Rails-spinoffs] Ajax.Updater to replace element, not the content

2005-10-27 Thread Francois Beausoleil
Hi ! 2005/10/27, Simon Arnaud <[EMAIL PROTECTED]>: > Is there something equivalent to Ajax.Updater to replace the element, > intead of replacing it's content ? > > An option to Updater, or another function ? Add a container element above the one you want to replace, and make the updater target th

RE: [Rails-spinoffs] Problem passing event object

2005-10-27 Thread Rahul Bhargava
A few thoughts : 1) You need to bind the object to get it to work: onSuccess: this.switchPrompt.bind(this), onFailure: this.dontCheck.bind(this) that will fake out Javascript and set up the "this" reference to work correctly for you I think. 2) On another note, I've noticed that it's appropri

[Rails-spinoffs] Ajax.Updater to replace element, not the content

2005-10-27 Thread Simon Arnaud
Is there something equivalent to Ajax.Updater to replace the element, intead of replacing it's content ? An option to Updater, or another function ? ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailm

[Rails-spinoffs] Problem passing event object

2005-10-27 Thread Jason Hummel
Hi all, I'm having a problem with an Ajax.Request. I can't figure out how I can pass an event (an onclick on a checkbox) which causes the Ajax Request, to be recognized in an onSuccess function. Here's my simplified code: var RequiredField = Class.create(); RequiredField.prototype = { initiali

Re: [Rails-spinoffs] InPlaceEditor scrolls to top in Firefox?

2005-10-27 Thread Jon Tirsen
Wow! Yeah, it crashes 1.0.6 on Mac too. I'll look into it. On 10/27/05, Thomas Fuchs <[EMAIL PROTECTED]> wrote: > The patch has been applied. > > Btw, the unit test now crashes Firefox 1.0.4, I can consistenly > reproduce this here. > > Cheers, > Thomas > > Am 26.10.2005 um 23:31 schrieb Jon Tirs

Re: [Rails-spinoffs] InPlaceEditor scrolls to top in Firefox?

2005-10-27 Thread Thomas Fuchs
The patch has been applied. Btw, the unit test now crashes Firefox 1.0.4, I can consistenly reproduce this here. Cheers, Thomas Am 26.10.2005 um 23:31 schrieb Jon Tirsen: Oh yeah! That works perfectly! Thanks Michael! Once again, use the latest patch from here: http://dev.rubyonrails.com

Re: [Rails-spinoffs] Save output of Ajax.InPlaceEditor to a variable?

2005-10-27 Thread Michael Krog
Hi Bill. There should be a getText-value on the editor. var field=new Ajax.InPlaceEditor('editme', '', {onComplete:readValue}); function readValue(){ alert(field.getText()); } Bill Lynch wrote: All, The Ajax.InPlaceEditor control is nice but I'd like the ability to read the changed

[Rails-spinoffs] restricting movement in sortable list

2005-10-27 Thread Bill Lynch
Hello, I'd like to know if this is possible. Say you have a sortable list like so: one two three -- A four five -- B Is there any way to restrict the movement of "three -- A" and "five -- B" such that they never cross? For example, you could click on five and move it above four

[Rails-spinoffs] Save output of Ajax.InPlaceEditor to a variable?

2005-10-27 Thread Bill Lynch
All, The Ajax.InPlaceEditor control is nice but I'd like the ability to read the changed value. Basically, I'm creating a form with editable elements but it's only when I do the submit that the form elements are submitted. I'd still like to allow in-place editing but what I'd like to do is get the

[Rails-spinoffs] Possible bug?

2005-10-27 Thread Erik Troy Uy
first of all, hi! you've got reaaaly nice scripts here and i'm having fun just mixing and matching one with another! well then here's the situation. i tried to use a div's on mouse over and mouse out to call blind down and blind up effect respectively inside cells in a table. works fine AND beauti