Because with Ajax you''ll likely be re-rendering small parts of the page to send to the client, you really need to break everything down into partials.. If you do that from the beginning it''s easy to add ajax later.. but if you leave everything in one big .rhtml then you have to start by seperating into partials anyway before you can begin.. On Friday 20 May 2005 08:29, Michael Gorsuch wrote:> Greetings all. > > I am in the midst of developing my Rails app, and > wanted to pose a design question to the group. > > I haven''t looked into the complexities (assuming they > exist) in implemented AJAX functionality into my app > yet, but I was wondering if this is something I should > be studying up before I release my initial version. > > What I''m getting at, is it hard to add AJAX features > after the fact? > > I am curerntly focusing on developing a clean design > that has the basic functionality needed to get the app > launched. I was then going to look at updating it to > include AJAX functionality for a later release. > > Any thoughts? Am I thinking things through properly? > > Thank you, > > Michael > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Greetings all. I am in the midst of developing my Rails app, and wanted to pose a design question to the group. I haven''t looked into the complexities (assuming they exist) in implemented AJAX functionality into my app yet, but I was wondering if this is something I should be studying up before I release my initial version. What I''m getting at, is it hard to add AJAX features after the fact? I am curerntly focusing on developing a clean design that has the basic functionality needed to get the app launched. I was then going to look at updating it to include AJAX functionality for a later release. Any thoughts? Am I thinking things through properly? Thank you, Michael
Depending on your platform requirements, you may have to go the traditional route first. If you have to target non-AJAX supporting browsers, build everything around normal submits first, then use some browser-specific javascript to allow AJAX submits for more modern browsers. But I agree with Luke 100% - if you plan for Ajax by making your views modular (even if you''re not using Ajax it can be highliy benifical) then adding it after the fact is very easy. On 5/20/05, Luke Galea <lgalea-vvW6YJTQFGvMohDmgNdYFA@public.gmane.org> wrote:> Because with Ajax you''ll likely be re-rendering small parts of the page to > send to the client, you really need to break everything down into partials.. > If you do that from the beginning it''s easy to add ajax later.. but if you > leave everything in one big .rhtml then you have to start by seperating into > partials anyway before you can begin.. > > On Friday 20 May 2005 08:29, Michael Gorsuch wrote: > > Greetings all. > > > > I am in the midst of developing my Rails app, and > > wanted to pose a design question to the group. > > > > I haven''t looked into the complexities (assuming they > > exist) in implemented AJAX functionality into my app > > yet, but I was wondering if this is something I should > > be studying up before I release my initial version. > > > > What I''m getting at, is it hard to add AJAX features > > after the fact? > > > > I am curerntly focusing on developing a clean design > > that has the basic functionality needed to get the app > > launched. I was then going to look at updating it to > > include AJAX functionality for a later release. > > > > Any thoughts? Am I thinking things through properly? > > > > Thank you, > > > > Michael > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- sam http://www.magpiebrain.com/
Michael Gorsuch
2005-May-20 16:32 UTC
Re: Question on when to implement AJAX functionality
Thank you both for this great advice. I will review my work in progress and make sure that it is as modular as possible. --- Sam Newman <sam.newman-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Depending on your platform requirements, you may > have to go the > traditional route first. If you have to target > non-AJAX supporting > browsers, build everything around normal submits > first, then use some > browser-specific javascript to allow AJAX submits > for more modern > browsers. But I agree with Luke 100% - if you plan > for Ajax by making > your views modular (even if you''re not using Ajax it > can be highliy > benifical) then adding it after the fact is very > easy. > > On 5/20/05, Luke Galea <lgalea-vvW6YJTQFGvMohDmgNdYFA@public.gmane.org> > wrote: > > Because with Ajax you''ll likely be re-rendering > small parts of the page to > > send to the client, you really need to break > everything down into partials.. > > If you do that from the beginning it''s easy to add > ajax later.. but if you > > leave everything in one big .rhtml then you have > to start by seperating into > > partials anyway before you can begin.. > > > > On Friday 20 May 2005 08:29, Michael Gorsuch > wrote: > > > Greetings all. > > > > > > I am in the midst of developing my Rails app, > and > > > wanted to pose a design question to the group. > > > > > > I haven''t looked into the complexities (assuming > they > > > exist) in implemented AJAX functionality into my > app > > > yet, but I was wondering if this is something I > should > > > be studying up before I release my initial > version. > > > > > > What I''m getting at, is it hard to add AJAX > features > > > after the fact? > > > > > > I am curerntly focusing on developing a clean > design > > > that has the basic functionality needed to get > the app > > > launched. I was then going to look at updating > it to > > > include AJAX functionality for a later release. > > > > > > Any thoughts? Am I thinking things through > properly? > > > > > > Thank you, > > > > > > Michael > > > _______________________________________________ > > > Rails mailing list > > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > > > http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > -- > sam > http://www.magpiebrain.com/ > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >