[Rails-spinoffs] problem with drag and drop

2006-04-05 Thread Daniel Herrero
Hello, I'm creating an application wich can be seen at
http://158.227.7.9/serious_serv/prueba_xml_test(31-3)/interfElemen/integMenuContextFileUpl.htm
The instructions for working with it are the following: with
rigth-click you can click "Añadir una imagen" to load an image into the
page, then you can drag and drop it in the box with "aqui van las
imagenes" into it. With rigth-click and "Nueva etiqueta" you can
generate a text wich can be drag and dropped into an image wich is in
the box. The problem is that when I drag and drop several images into
the box and then scroll it down, when I want to drag and drop texts
into the images that are in the  below part they are not appended
to the image selected and the behaviour becomes weirdo. which can be
the problem?
-Note: the images loaded are stored, so please  try this
application with a non-copyrighted, non-personal photo, (the same photo
can be loaded multiple times).
Thank you.-- Daniel Herrero Dávila
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


[Rails-spinoffs] Help with new EventSelectors in prototype

2006-04-05 Thread Alexander Rebholz
Hello,I can't seem get to work the newly inctroduced EventSelectors of protoype.I downloaded the latest release via SVN.  And included both prototypeand scriptaculous.This is a short extract of my test:
This is a footer
    var Rules = { '#footer:loaded': function(element) {
    Element.setStyle('footer', {backgroundColor:'red'});
  }    
}

EventSelectors.start(Rules);
But the error message is always : EventSelectors is not defined.What am I doing wrong??TIA,Alex ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Re: [Rails-spinoffs] Help with new EventSelectors in prototype

2006-04-05 Thread Todd Ross
On 4/5/06, Alexander Rebholz <[EMAIL PROTECTED]> wrote:
> I can't seem get to work the newly inctroduced EventSelectors of protoype.
> I downloaded the latest release via SVN.  And included both prototype
> and scriptaculous.

I don't see any EventSelectors code in prototype or script.aculo.us.

[EMAIL PROTECTED]:~/repos/spinoffs$ ls
prototype  scriptaculous
[EMAIL PROTECTED]:~/repos/spinoffs$ svn update
At revision 4168.
[EMAIL PROTECTED]:~/repos/spinoffs$ find ./ -name '*' -type f | xargs grep
-i 'eventselect'
[EMAIL PROTECTED]:~/repos/spinoffs$

nada

Todd
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


Re: [Rails-spinoffs] Help with new EventSelectors in prototype

2006-04-05 Thread Steve Longdo
Maybe you can find some help here: http://encytemedia.com/event-selectors/
http://encytemedia.com/blog/articles/2006/03/27/prototype-gets-attribute-selectors On 4/5/06, Todd Ross <
[EMAIL PROTECTED]> wrote:On 4/5/06, Alexander Rebholz <
[EMAIL PROTECTED]> wrote:> I can't seem get to work the newly inctroduced EventSelectors of protoype.> I downloaded the latest release via SVN.  And included both prototype> and scriptaculous.
I don't see any EventSelectors code in prototype or script.aculo.us.[EMAIL PROTECTED]:~/repos/spinoffs$ lsprototype  scriptaculous[EMAIL PROTECTED]:~/repos/spinoffs$ svn update
At revision 4168.[EMAIL PROTECTED]:~/repos/spinoffs$ find ./ -name '*' -type f | xargs grep-i 'eventselect'[EMAIL PROTECTED]:~/repos/spinoffs$nadaTodd___
Rails-spinoffs mailing listRails-spinoffs@lists.rubyonrails.orghttp://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


Re: [Rails-spinoffs] Help with new EventSelectors in prototype

2006-04-05 Thread Alexander Rebholz
@SteveNo unfortunately not. I already knew these links. Anyway thanks. I guess Todd is right. EventSelectors don't seem to be in the code anymore.2006/4/5, Steve Longdo <
[EMAIL PROTECTED]>:Maybe you can find some help here: 
http://encytemedia.com/event-selectors/

http://encytemedia.com/blog/articles/2006/03/27/prototype-gets-attribute-selectors On 4/5/06, 
Todd Ross <
[EMAIL PROTECTED]> wrote:On 4/5/06, Alexander Rebholz <

[EMAIL PROTECTED]> wrote:> I can't seem get to work the newly inctroduced EventSelectors of protoype.> I downloaded the latest release via SVN.  And included both prototype> and scriptaculous.
I don't see any EventSelectors code in prototype or script.aculo.us.[EMAIL PROTECTED]:~/repos/spinoffs$ ls
prototype  scriptaculous[EMAIL PROTECTED]:~/repos/spinoffs$ svn update
At revision 4168.[EMAIL PROTECTED]:~/repos/spinoffs$ find ./ -name '*' -type f | xargs grep-i 'eventselect'[EMAIL PROTECTED]:~/repos/spinoffs$nadaTodd___
Rails-spinoffs mailing listRails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


___Rails-spinoffs mailing listRails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


RE: [Rails-spinoffs] Help with new EventSelectors in prototype

2006-04-05 Thread Ryan Gahl








Alexander… you’re missing a very big thing…
EventSelectors is a 3rd party thing… a plugin so-to-speak. It
was never a part of prototype or scriptaculous. So what you need to do is get
that library (from the links in that previous post) and make sure you are
including it in your project.

 





The information transmitted in this electronic mail is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material.  Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers.
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


Re: [Rails-spinoffs] Help with new EventSelectors in prototype

2006-04-05 Thread Alexander Rebholz
Doh! How could I have overseen that big, big download link??? I thought it is part of the new prototype version. How embarrasing!!! *flush* Thank you for the clarification Ryan!Alex
2006/4/5, Ryan Gahl <[EMAIL PROTECTED]>:













Alexander… you're missing a very big thing…
EventSelectors is a 3rd party thing… a plugin so-to-speak. It
was never a part of prototype or scriptaculous. So what you need to do is get
that library (from the links in that previous post) and make sure you are
including it in your project.

 





The information transmitted in this electronic mail is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material.  Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers.


___Rails-spinoffs mailing listRails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


RE: [Rails-spinoffs] Help with new EventSelectors in prototype

2006-04-05 Thread Ryan Gahl








Lol, no problem. We all have those moments.

 





The information transmitted in this electronic mail is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material.  Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers.
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


[Rails-spinoffs] Re: (SOLVED) Re: autocompletion: hooking'afterUpdateElement' in Rails

2006-04-05 Thread Alain Ravet


   > I've added this to the rails trunk, but slightly altered the proposed
   > patch, (see the comment on #3691).

It must be obvious by I can't find my way the new syntax.
With the "old" syntax (patch 3691), I had written code like this :

<%= text_field_with_auto_complete :city, :name, {},
:after_update_element => remote_function(
:url => { :action => :update_city_zips },
:with =>"'selected_city_name='+element.value")
%>

How should it be rewritten for the new syntax?


TIA
Alain

___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


[Rails-spinoffs] Firefox - Form within a table issue

2006-04-05 Thread Maninder, Singh
Hi, 

Has anyone seen this issue before?

Oversimplified Problem:

I have a table within which I have a form -


  

  

 


  

  

  


Somehow, whenever I have such a case, Form.serialize() returns empty in FIREFOX 
(IE WORKS FINE).

As soon as I put my form outside the table it starts working, ie the following 
code works.



  


 


  


  



Well, if it's such an easy fix, why don't I do it? The reason is maintenance of 
legacy code that has a nested structure of tables so before I take the 
re-scripting approach, if someone has a fix for this it would be great if you 
could share.

Thank you,
Mandy.
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


RE: [Rails-spinoffs] Firefox - Form within a table issue

2006-04-05 Thread Gregory Hill
A form element cannot be inserted into a table element like that.  You
can put it inside the td element or outside the table element, but not
in between the table and tr.

IE doesn't enforce that, Firefox does.

Greg

> -Original Message-
> From: [EMAIL PROTECTED]
[mailto:rails-spinoffs-
> [EMAIL PROTECTED] On Behalf Of Maninder, Singh
> Sent: Wednesday, April 05, 2006 11:27 AM
> To: rails-spinoffs@lists.rubyonrails.org
> Subject: [Rails-spinoffs] Firefox - Form within a table issue
> 
> Hi,
> 
> Has anyone seen this issue before?
> 
> Oversimplified Problem:
> 
> I have a table within which I have a form -
> 
> 
>   
> 
>   
> 
>  type=text name=age value=26> 
> 
> 
>OnClick="alert(Form.serialize('table_form'))">
> 
>   
> 
>   
> 
> 
> Somehow, whenever I have such a case, Form.serialize() returns empty
in
> FIREFOX (IE WORKS FINE).
> 
> As soon as I put my form outside the table it starts working, ie the
> following code works.
> 
> 
> 
>   
> 
> 
>  type=text name=age value=26> 
> 
> 
>OnClick="alert(Form.serialize('table_form'))">
> 
> 
>   
> 
> 
> 
> Well, if it's such an easy fix, why don't I do it? The reason is
> maintenance of legacy code that has a nested structure of tables so
before
> I take the re-scripting approach, if someone has a fix for this it
would
> be great if you could share.
> 
> Thank you,
> Mandy.
> ___
> Rails-spinoffs mailing list
> Rails-spinoffs@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


Re: [Rails-spinoffs] Event.observe on IE

2006-04-05 Thread Ed C.
preventDefault() doesn't work in IE, you'd need to do "return false" which is wrapped nicely in Prototype. I think you could replace:
 
"if ( event.preventDefault ) event.preventDefault();"
 
with:
 
"Event.stop(event);"
 
? 
On 4/3/06, Bill Moseley <[EMAIL PROTECTED]> wrote:
On Mon, Apr 03, 2006 at 03:41:21PM -0500, Todd Ross wrote:> On 4/3/06, Gregory Hill <
[EMAIL PROTECTED]> wrote:> > IE is loading the page in the 'href'.  Not sure there's a way to prevent> > that.That's because it doesn't seem to be running the event code at all.
> Return false from the onclick event.Or set event.preventDefault(); as I'm doing.  But I don't thinkthat's related to the problem I'm having.--Bill Moseley
[EMAIL PROTECTED]___Rails-spinoffs mailing listRails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


[Rails-spinoffs] Nuby Sortable Question? How do you pass multiple lists back to the server

2006-04-05 Thread Larry White
I have multiple drag and drop lists.  If you sort within one list, you can pass the list back to the server using:

<%= sortable_element 'task-list' << person.id.to_s   ,
             :url ="" { :action ="" "noop", :id => @user },
            ...
        %>

Which causes this to be included in the _javascript_: 
onUpdate:function(){new Ajax.Request('/tasklist/noop/101',... parameters:Sortable.serialize('task-list101') 

If you are dragging between two lists, how do you pass both back? (or
does  the onUpdate get called twice (once for each list?))

What if you wanted to pass all the lists back after multiple drags and drops?

thanks
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


[Rails-spinoffs] Re: Nuby Sortable Question? How do you pass multiple lists back to the server

2006-04-05 Thread Larry White
what if we keep track in flash of all the lists that get updated - then
we can persist all the changes at the end and run the schedule routine
then.On 4/5/06, Larry White <[EMAIL PROTECTED]> wrote:
I have multiple drag and drop lists.  If you sort within one list, you can pass the list back to the server using:

<%= sortable_element 'task-list' << person.id.to_s   ,
             :url ="" { :action ="" "noop", :id => @user },
            ...
        %>

Which causes this to be included in the _javascript_: 
onUpdate:function(){new Ajax.Request('/tasklist/noop/101',... parameters:Sortable.serialize('task-list101') 

If you are dragging between two lists, how do you pass both back? (or
does  the onUpdate get called twice (once for each list?))

What if you wanted to pass all the lists back after multiple drags and drops?

thanks


___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs