Hello: i want load a jsp into other jsp. The first jsp is a tree that load others jsp. In the second jsp i have functions with the event onLoad but, ajax:updater load the jsp but don''t call this functions on javascript. Why? Thank you very much. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hey, JTristan a écrit :> In the second jsp i have functions with the event onLoad but, > ajax:updater load the jsp but don''t call this functions on > javascript.Because onload indicates a body load, a page load. If you''re loading another page (full page, with html, head and body) into an existing page, you''re in trouble semantically, to start with: your 2nd JSP should produce only the XHTML fragment you need to insert. Then if you need this fragment to run a script once it''s loaded, put an inline <script> element with it at the *end* of your fragment, and don''t forget to enable the evalScripts option in the Ajax.Updater call. If you''re loading a full page into a frame or iframe, then what the heck do you need AJAX for?! -- Christophe Porteneuve aka TDD 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 -~----------~----~----~----~------~----~------~--~---
Thank you. You''re all right. I''m using a bad idea. Thank you for all. On Jan 31, 4:24 pm, Christophe Porteneuve <t...-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org> wrote:> Hey, > > JTristan a écrit : > > > In the second jsp i have functions with the event onLoad but, > > ajax:updater load the jsp but don''t call this functions on > > javascript. > > Because onload indicates a body load, a page load. > > If you''re loading another page (full page, with html, head and body) > into an existing page, you''re in trouble semantically, to start with: > your 2nd JSP should produce only the XHTML fragment you need to insert. > Then if you need this fragment to run a script once it''s loaded, put > an inline <script> element with it at the *end* of your fragment, and > don''t forget to enable the evalScripts option in the Ajax.Updater call. > > If you''re loading a full page into a frame or iframe, then what the heck > do you need AJAX for?! > > -- > Christophe Porteneuve aka TDD > t...-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 -~----------~----~----~----~------~----~------~--~---