List Info

Thread: Missing Form




Missing Form
user name
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', {
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 :(
}
});


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-spinoffsgooglegroups.com
To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Re: Missing Form
country flaguser name
United States
2007-11-06 11:02:16
On Nov 6, 2007, at 9:43 AM, xfedexgmail.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-spinoffsgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=
en
-~----------~----~----~----~------~----~------~--~---


Re: Missing Form
country flaguser name
United States
2007-11-06 11:04:16
On Nov 6, 2007, at 9:43 AM, xfedexgmail.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-spinoffsgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=
en
-~----------~----~----~----~------~----~------~--~---


Re: Missing Form
user name
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 < adamkkeysgmail.com">adamkkeysgmail.com> wrote:

On Nov 6, 2007, at 9:43 AM, xfedexgmail.com">xfedexgmail.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&quot; group.
To post to this group, send email to rubyonrails-spinoffsgooglegroups.com
To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Re: Missing Form
user name
2007-11-06 13:41:41
[SOLVED]

The problem was that I had another form, like:
<form name=";one"&gt;
<div id="my_div"></div>
</form>

The code above don't work.
This code works:
&lt;form name=";one"&gt;
</form>
<div id="my_div"></div>


Hope it helps,
Federico.

On 11/6/07, xfedexgmail.com">xfedexgmail.com < xfedexgmail.com">xfedexgmail.com> wrote:
Adam,

I&#39;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 < adamkkeysgmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">adamkkeysgmail.com> wrote:

On Nov 6, 2007, at 9:43 AM, xfedexgmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">xfedexgmail.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&quot; group.
To post to this group, send email to rubyonrails-spinoffsgooglegroups.com
To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )