Note that there are some explanatory texts on larger screens.

plurals
  1. POBest way to create widget-like ajax page sections?
    primarykey
    data
    text
    <p>So, I have a page that is made up of 4 different AJAX containers (meaning they are populated with HTML via AJAX). I have an attachment section that refreshes the section whenever a new upload has been performed. </p> <p>Currently I have a DIV that gets replaced with the content I want, then when I execute some kind of AJAX POST action, it returns with the updated HTML content. In one case, I have an AJAX section that includes an AJAX section that includes and AJAX section. It is a 'quote' screen with a 'location' section which populates with a page for each location attached to the quote...and each location has a 'line item' section that populates with a list of current line items assigned to that location. I have an AJAXform attached to each location that refreshes the line item list when an item is added. Also, I have a form attached to the quote page that refreshes the location list when a location is added.</p> <pre><code>&lt;!-- Quote page --&gt; &lt;div id="locations&gt; &lt;!-- AJAX page listing locations --&gt; &lt;/div&gt; &lt;form id="ajax-form-for-adding-locations"&gt; &lt;input id="location-name" type="text"/&gt; &lt;/form&gt; </code></pre> <hr> <pre><code>&lt;!-- Location page --&gt; &lt;div id="line items"&gt; &lt;!-- AJAX page listing line items for this location --&gt; &lt;/div&gt; &lt;form id="ajax-form-for-adding-line-items"&gt; &lt;input id="item-name" type="text"/&gt; &lt;/form&gt; </code></pre> <p>The nested AJAX sections seems a little excessive to me. Is there a better way to set this up?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload