Ok, here''s the thing :)
Following code doesnt work in IE6
this.area.insert({
before:new Element(''div'')
});
this.area.wrap(''div'', {class:''somename''});
this.area is a TEXTAREA object.
The following code does work.. but this is not how i wanna do it :)
this.area.insert({
before:''<div />''
});
Time for a big fix i guess...
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---
Roland, can you please submit a ticket. Failing test is very appreciated. thanks, kangax --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
@kangax, Roland: Element#update is *not* intended at setting the values of form elements. You should be using Element#setValue instead. This is not a bug so please do not open a ticket about it, I just closed a similar one last week. You can search the trac to view the reasoning behind this decision. Regards, Tobie On Nov 16, 6:31 pm, kangax <kan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Roland, can you please submit a ticket. > Failing test is very appreciated. > > thanks, > kangax--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Why should i want did this result? <textarea><div /></textarea> What i want is to insert the elements <strong>before</strong> and <strong>after</strong> the textarea element and then wrap it up. but wrap() has is own issues i guess =] Ik go make a demo-page now and post a ticket. On 16 nov, 18:52, Tobie Langel <tobie.lan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> @kangax, Roland: > > Element#update is *not* intended at setting the values of form > elements. > > You should be using Element#setValue instead. > > This is not a bug so please do not open a ticket about it, I just > closed a similar one last week. > > You can search the trac to view the reasoning behind this decision. > > Regards, > > Tobie > > On Nov 16, 6:31 pm, kangax <kan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Roland, can you please submit a ticket. > > Failing test is very appreciated. > > > thanks, > > kangax--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Sorry, I''m obviously tired out of my brains. It''s the second post I completely misread today. I sincerely apoligize. Please do open a ticket, failing tests would be awsome. Regards, Tobie On Nov 16, 7:24 pm, Roland <franssen.rol...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Why should i want did this result? > <textarea><div /></textarea> > > What i want is to insert the elements <strong>before</strong> and > <strong>after</strong> the textarea element and then wrap it up. > > but wrap() has is own issues i guess =] > > Ik go make a demo-page now and post a ticket. > > On 16 nov, 18:52, Tobie Langel <tobie.lan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > @kangax, Roland: > > > Element#update is *not* intended at setting the values of form > > elements. > > > You should be using Element#setValue instead. > > > This is not a bug so please do not open a ticket about it, I just > > closed a similar one last week. > > > You can search the trac to view the reasoning behind this decision. > > > Regards, > > > Tobie > > > On Nov 16, 6:31 pm, kangax <kan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Roland, can you please submit a ticket. > > > Failing test is very appreciated. > > > > thanks, > > > kangax--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
http://dev.rubyonrails.org/ticket/10189 --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
class is a reserved keyword in JavaScript. You must either use
className or escape it.
try either of the following:
this.area.setValue(this.options.value).wrap(''div'',
{''class'':''editor-
wrapper''}).insert({
top: new Element(''div'',
{''class'':''editor-buttons''}).update(''top-
bar''),
bottom:new Element(''div'',
{''class'':''editor-
smiles''}).update(''bottom-bar'')
});
this.area.setValue(this.options.value).wrap(''div'',
{className:''editor-
wrapper''}).insert({
top: new Element(''div'', {className:''editor-
buttons''}).update(''top-bar''),
bottom:new Element(''div'', {className:''editor-
smiles''}).update(''bottom-bar'')
});
Regards,
Tobie
On Nov 16, 7:42 pm, Roland
<franssen.rol...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> http://dev.rubyonrails.org/ticket/10189
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---
page updated.. i should have seen that.. but IE still does it wrong. On 16 nov, 19:51, Tobie Langel <tobie.lan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> class is a reserved keyword in JavaScript. You must either use > className or escape it. > > try either of the following: > > this.area.setValue(this.options.value).wrap(''div'', {''class'':''editor- > wrapper''}).insert({ > top: new Element(''div'', {''class'':''editor-buttons''}).update(''top- > bar''), > bottom:new Element(''div'', {''class'':''editor- > smiles''}).update(''bottom-bar'') > > }); > > this.area.setValue(this.options.value).wrap(''div'', {className:''editor- > wrapper''}).insert({ > top: new Element(''div'', {className:''editor- > buttons''}).update(''top-bar''), > bottom:new Element(''div'', {className:''editor- > smiles''}).update(''bottom-bar'') > > }); > > Regards, > > Tobie > > On Nov 16, 7:42 pm, Roland <franssen.rol...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > >http://dev.rubyonrails.org/ticket/10189--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
What do you mean by do it wrong ? Throws errors ? On Nov 16, 8:05 pm, Roland <franssen.rol...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> page updated.. i should have seen that.. but IE still does it wrong. > > On 16 nov, 19:51, Tobie Langel <tobie.lan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > class is a reserved keyword in JavaScript. You must either use > > className or escape it. > > > try either of the following: > > > this.area.setValue(this.options.value).wrap(''div'', {''class'':''editor- > > wrapper''}).insert({ > > top: new Element(''div'', {''class'':''editor-buttons''}).update(''top- > > bar''), > > bottom:new Element(''div'', {''class'':''editor- > > smiles''}).update(''bottom-bar'') > > > }); > > > this.area.setValue(this.options.value).wrap(''div'', {className:''editor- > > wrapper''}).insert({ > > top: new Element(''div'', {className:''editor- > > buttons''}).update(''top-bar''), > > bottom:new Element(''div'', {className:''editor- > > smiles''}).update(''bottom-bar'') > > > }); > > > Regards, > > > Tobie > > > On Nov 16, 7:42 pm, Roland <franssen.rol...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > >http://dev.rubyonrails.org/ticket/10189--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
No errors.. my fresh created elements aren''t displayed on IE. On 16 nov, 20:12, Tobie Langel <tobie.lan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> What do you mean by do it wrong ? > > Throws errors ? > > On Nov 16, 8:05 pm, Roland <franssen.rol...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > page updated.. i should have seen that.. but IE still does it wrong. > > > On 16 nov, 19:51, Tobie Langel <tobie.lan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > class is a reserved keyword in JavaScript. You must either use > > > className or escape it. > > > > try either of the following: > > > > this.area.setValue(this.options.value).wrap(''div'', {''class'':''editor- > > > wrapper''}).insert({ > > > top: new Element(''div'', {''class'':''editor-buttons''}).update(''top- > > > bar''), > > > bottom:new Element(''div'', {''class'':''editor- > > > smiles''}).update(''bottom-bar'') > > > > }); > > > > this.area.setValue(this.options.value).wrap(''div'', {className:''editor- > > > wrapper''}).insert({ > > > top: new Element(''div'', {className:''editor- > > > buttons''}).update(''top-bar''), > > > bottom:new Element(''div'', {className:''editor- > > > smiles''}).update(''bottom-bar'') > > > > }); > > > > Regards, > > > > Tobie > > > > On Nov 16, 7:42 pm, Roland <franssen.rol...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > >http://dev.rubyonrails.org/ticket/10189--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Found it!
this.area.wrap(''div'',
{''class'':''editor-wrapper''}); //<!--
DOESNT WORK
Element.wrap(this.area, ''div'',
{''class'':''editor-wrapper''}); //<!-- FIX
On 16 nov, 20:18, Roland
<franssen.rol...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> No errors.. my fresh created elements aren''t displayed on IE.
>
> On 16 nov, 20:12, Tobie Langel
<tobie.lan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> > What do you mean by do it wrong ?
>
> > Throws errors ?
>
> > On Nov 16, 8:05 pm, Roland
<franssen.rol...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> > > page updated.. i should have seen that.. but IE still does it
wrong.
>
> > > On 16 nov, 19:51, Tobie Langel
<tobie.lan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> > > > class is a reserved keyword in JavaScript. You must either
use
> > > > className or escape it.
>
> > > > try either of the following:
>
> > > >
this.area.setValue(this.options.value).wrap(''div'',
{''class'':''editor-
> > > > wrapper''}).insert({
> > > > top: new Element(''div'',
{''class'':''editor-buttons''}).update(''top-
> > > > bar''),
> > > > bottom:new Element(''div'',
{''class'':''editor-
> > > > smiles''}).update(''bottom-bar'')
>
> > > > });
>
> > > >
this.area.setValue(this.options.value).wrap(''div'',
{className:''editor-
> > > > wrapper''}).insert({
> > > > top: new Element(''div'',
{className:''editor-
> > > > buttons''}).update(''top-bar''),
> > > > bottom:new Element(''div'',
{className:''editor-
> > > > smiles''}).update(''bottom-bar'')
>
> > > > });
>
> > > > Regards,
>
> > > > Tobie
>
> > > > On Nov 16, 7:42 pm, Roland
<franssen.rol...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> > > > >http://dev.rubyonrails.org/ticket/10189
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---
Uhm, IE doesn''t automatically extend nodes, you have to manually extend
dom
nodes in order to call Element methods on them.
$(this.area).wrap("div", { "class":
"editor-wrapper" }); // should work fine
-Nicolas
On Nov 16, 2007 5:27 PM, Roland
<franssen.roland-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> Found it!
>
> this.area.wrap(''div'',
{''class'':''editor-wrapper''}); //<!--
DOESNT WORK
> Element.wrap(this.area, ''div'',
{''class'':''editor-wrapper''}); //<!-- FIX
>
> On 16 nov, 20:18, Roland
<franssen.rol...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> > No errors.. my fresh created elements aren''t displayed on IE.
> >
> > On 16 nov, 20:12, Tobie Langel
<tobie.lan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> >
> > > What do you mean by do it wrong ?
> >
> > > Throws errors ?
> >
> > > On Nov 16, 8:05 pm, Roland
<franssen.rol...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> >
> > > > page updated.. i should have seen that.. but IE still does
it wrong.
>
> >
> > > > On 16 nov, 19:51, Tobie Langel
<tobie.lan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> >
> > > > > class is a reserved keyword in JavaScript. You must
either use
> > > > > className or escape it.
> >
> > > > > try either of the following:
> >
> > > > >
this.area.setValue(this.options.value).wrap(''div'',
> {''class'':''editor-
> > > > > wrapper''}).insert({
> > > > > top: new Element(''div'',
>
{''class'':''editor-buttons''}).update(''top-
> > > > > bar''),
> > > > > bottom:new Element(''div'',
{''class'':''editor-
> > > > >
smiles''}).update(''bottom-bar'')
> >
> > > > > });
> >
> > > > >
this.area.setValue(this.options.value).wrap(''div'',
> {className:''editor-
> > > > > wrapper''}).insert({
> > > > > top: new Element(''div'',
{className:''editor-
> > > > >
buttons''}).update(''top-bar''),
> > > > > bottom:new Element(''div'',
{className:''editor-
> > > > >
smiles''}).update(''bottom-bar'')
> >
> > > > > });
> >
> > > > > Regards,
> >
> > > > > Tobie
> >
> > > > > On Nov 16, 7:42 pm, Roland <
franssen.rol...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> >
> > > > > >http://dev.rubyonrails.org/ticket/10189
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---