I think that a controller - like the following Rail Controller - will appear in Django, asynchronous form for updating an Ajax Submissions after page (assuming the following is true):
def can make @olate = omelette.new (param [: ametlet]) render: update. Page | If @Omletate.Serve page.RETHASAT_HTML 'Notice', 'Omelette was successfully cooked' and 'Page'. Replace_html 'notice', 'Sorry - can not be cooked and can not be cooked' End page. Replace_html 'omelets',: partial = & gt; 'Food / omelet_list' ,: local => {: Omelets = & gt; @ Omelette.males.omelets} and
expiration
I understand that the demo does not have the same built-in AJAX library, does it mean that the deeggo Will there be something more difficult / more wordbug like in the above?
"replace_html" calls really simplify things in Rails - I hope Django has an easy equivalent.
In addition, Django has a 'partial' concept - as the rail? "Page.replace_html" in Rail is actually an expression of RJS - that is Javascript which can be used by the server. (And the correct mime type is sent, etc.) and then the client takes that part of Javascript and inserts it somewhere in the dom (possibly replacing some other elements as defined by Dome ID). So it actually takes 2 coordinates: server-side clients to send back javascript and then work on receiving and receiving data for clients.
I do not know that Django supports this, but you're better off doing "RJS Dijenjo" for around and thus you are basically looking for RJS in Django.
Comments
Post a Comment