|
List Info
Thread: Missing Form
|
|
| Missing Form |

|
2007-11-06 09:43:11 |
|
Hi,
I'm trying to update the content of a div with a form. So I did (the form comes from an Ajax.Request):
new Ajax.Request('return_form.php', {
evalScript s:true,
parameters:{ foo:'bar' }, onSuccess:function(res){
alert(res.responseText); // Here I can see the form. $(39;my_div39;).update(res.responseText); alert($('my_div').innerHTML); // Here I can't see the form :(
}
});
It seems that update() method is parsing out the form or something....Can that be possible?
Saludos, Fede.
--~--~---------~--~----~------------~-------~--~----~
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 googlegroups.com To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
|
| Re: Missing Form |
  United States |
2007-11-06 11:02:16 |
On Nov 6, 2007, at 9:43 AM, xfedex gmail.com wrote:
>
> It seems that update() method is parsing out the form
or
> something....Can that be possible?
I've observed that as well. Something in Prototype 1.6rc0
fixes it,
but I'm not sure what.
--
~akk
http://therealadam.com
--~--~---------~--~----~------------~-------~--~----~
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 googlegroups.com
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=
en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: Missing Form |
  United States |
2007-11-06 11:04:16 |
On Nov 6, 2007, at 9:43 AM, xfedex gmail.com wrote:
> Hi,
>
> I'm trying to update the content of a div with a form.
So I did
> (the form comes from an Ajax.Request):
>
> new Ajax.Request('return_form.php', {
> evalScripts:true,
> parameters:{ foo:'bar' },
> onSuccess:function(res){
> alert(res.responseText); // Here I can see the form.
> $('my_div').update(res.responseText);
> alert($('my_div').innerHTML); // Here I can't see the
form :(
> }
> });
>
I've observed that as well. Something in Prototype 1.6rc0
fixes
that, but I'm not sure what.
--
~akk
http://therealadam.com
--~--~---------~--~----~------------~-------~--~----~
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 googlegroups.com
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=
en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: Missing Form |

|
2007-11-06 11:15:44 |
|
Adam,
I9;ve just test it with version 1.6.0_rc0 and nothing seems to change, the form is still missing :(
Saludos, Fede.
On 11/6/07,
Adam Keys < adamkkeys gmail.com">adamkkeys gmail.com> wrote:
On Nov 6, 2007, at 9:43 AM, xfedex gmail.com">xfedex gmail.com wrote: > > It seems that update() method is parsing out the form or > something....Can that be possible?
I've observed that as well. Something in Prototype
1.6rc0 fixes it, but I'm not sure what.
-- ~akk http://therealadam.com
--~--~---------~--~----~------------~-------~--~----~
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 googlegroups.com To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
|
| Re: Missing Form |

|
2007-11-06 13:41:41 |
|
[SOLVED]
The problem was that I had another form, like: <form name="one"> <div id="my_div"></div> </form>
The code above don't work. This code works:
<form name="one">
</form>
<div id="my_div"></div>
Hope it helps, Federico.
On 11/6/07, xfedex gmail.com">xfedex gmail.com
< xfedex gmail.com">xfedex gmail.com> wrote:Adam,
I39;ve just test it with
version 1.6.0_rc0 and nothing seems to change, the form is still missing :(
Saludos, Fede.
On 11/6/07,
Adam Keys < adamkkeys gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">adamkkeys gmail.com> wrote:
On Nov 6, 2007, at 9:43 AM, xfedex gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">xfedex gmail.com wrote: > > It seems that update() method is parsing out the form or
> something....Can that be possible?
I've observed that as well. Something in Prototype
1.6rc0 fixes it, but I'm not sure what.
-- ~akk http://therealadam.com
--~--~---------~--~----~------------~-------~--~----~
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 googlegroups.com To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
|
[1-5]
|
|