Having a strange problem with replacing a form with another form. If I
do this
Element.replace("some_form_id", "<form>dummy
text</form>") where
"some_form_if" is the id of a form element only the text between the
form tags is inserted, not the form tags. Tend to think I must be
doing something dumb, as can''t find any discussions on this anywhere.
I''m using 1.5.0 and testing on Firefox 2.0 with Firebug.
Thanks
Chris
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
Forms don''''t behave like other HTML elements. You need to use
something like:
var n = $("some_form_id");
n.parentNode.removeChild(n);
On Jun 10, 11:21 am, ChrisT
<chrismtagg...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Having a strange problem with replacing a form with another form. If I
> do this
> Element.replace("some_form_id", "<form>dummy
text</form>") where
> "some_form_if" is the id of a form element only the text between
the
> form tags is inserted, not the form tags. Tend to think I must be
> doing something dumb, as can''t find any discussions on this
anywhere.
>
> I''m using 1.5.0 and testing on Firefox 2.0 with Firebug.
> Thanks
> Chris
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
Please check if that''s still the case in 1.5.2, if so, please open a ticket. On Jun 11, 1:44 pm, Diodeus <diod...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Forms don''''t behave like other HTML elements. You need to use > something like: > > var n = $("some_form_id"); > n.parentNode.removeChild(n); > > On Jun 10, 11:21 am, ChrisT <chrismtagg...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Having a strange problem with replacing a form with another form. If I > > do this > > Element.replace("some_form_id", "<form>dummy text</form>") where > > "some_form_if" is the id of a form element only the text between the > > form tags is inserted, not the form tags. Tend to think I must be > > doing something dumb, as can''t find any discussions on this anywhere. > > > I''m using 1.5.0 and testing on Firefox 2.0 with Firebug. > > Thanks > > Chris--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---