mdelfino
2007-Jun-14 17:31 UTC
How run a js script when you retunr the info form a ajax result?
HI , ne again, now i have this issue, i make a list froma result, now i sort this list form a list box and return the result with ajax, now this new list have this <p class="Lsta"><a href="javascript:SCate.BorroActuaAlgo(1,1);" title="Delete This Item"><img src="../files/img_gen/Delet.gif" align="absmiddle" border="0"></a> - <span id="editoCate1">Argenitna</ span></p> <br /> <script>System.inplaceEditText(''editoCate1'',''../php_files/ clases/Admin/AdminSinCate/ActuaPais.php?idcol=1'');</script> bur when i retunr this from ajax, the inplaceeditor seems to no works any idea? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Christophe Porteneuve
2007-Jun-14 20:53 UTC
Re: How run a js script when you retunr the info form a ajax result?
Hey Mario, Look, I don''t mind answering your questions, but I think the list in general would appreciate that: 1. You look at the docs prior to posting 2. You search the archives if the docs didn''t help 3. You try better formatting your posts so we can easily tell code from text, and 4. You re-read yourself to correct the easy typo''s. In this specific instance, if you return (X)HTML with <script> elements, and want those run, use Ajax.Updater with its evalScripts option set to true. ''HTH -- Christophe Porteneuve a.k.a. TDD "[They] did not know it was impossible, so they did it." --Mark Twain Email: tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Delfino Mario
2007-Jun-14 20:57 UTC
Re: How run a js script when you retunr the info form a ajax result?
OKi, sorry, i will not doit again, sorry all list Documento sin tÃtulo ----- Original Message ----- From: "Christophe Porteneuve" <tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org> To: <rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Sent: Thursday, June 14, 2007 5:53 PM Subject: [Rails-spinoffs] Re: How run a js script when you retunr the info form a ajax result?> > Hey Mario, > > Look, I don''t mind answering your questions, but I think the list in > general would appreciate that: > > 1. You look at the docs prior to posting > 2. You search the archives if the docs didn''t help > 3. You try better formatting your posts so we can easily tell > code from text, and > 4. You re-read yourself to correct the easy typo''s. > > In this specific instance, if you return (X)HTML with <script> elements, > and want those run, use Ajax.Updater with its evalScripts option set to > true. > > ''HTH > > -- > Christophe Porteneuve a.k.a. TDD > "[They] did not know it was impossible, so they did it." --Mark Twain > Email: tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---