HTML5 Data Bindings Support Product Page

Add 'append' as a dmxDataBindingsAction

Shared 25 Sep 2013 15:58:48
3
like this idea
25 Sep 2013 15:58:48 Jonathan Heintzeman posted:
When loading data it would be great if you could allow append as an optional Bindings Action. That way data could be added too instead of just replacing what is already there. You may have to include the ID of the region you want to do the appending to:

dmxDataBindingsAction('append','%binding-name%','%binding-url%','%region-id%');

Replies

Replied 26 Sep 2013 08:42:55
26 Sep 2013 08:42:55 Teodor Kuduschiev replied:
Hello Jonathan,

Can you please explain your idea a little more detailed?
Replied 26 Sep 2013 14:50:27
26 Sep 2013 14:50:27 Jonathan Heintzeman replied:
I have revised my idea a little. What I am trying to accomplish is a page that shows results once the user enters the search criteria.. such as address:
<form ..>
   Address: <input name=address value="8th St" />
   <button ...>Search</button>
</form>

Once they hit the "Search" button it loads the results:

Result Row 1
Result Row 2
Result Row 3
Result Row 4
Result Row 5
Result Row 6
Result Row 7
Result Row 8
Result Row 9
Result Row 10

[load more]

I would like it if "load more" could have a data binding that would load records 11-20 and append it to the result set rather than replace it. The append setting may be better set in the div that contains the results.

Maybe something like this:
data-binding-refresh-method="append"

Which would be used like this:
<div data-binding-repeat-children="{{GetListings.listing}}" data-binding-refresh-method="append" id="ID001">
	<div>
		<img src="http://clarenproject.com/rmlsimages/200/{{imagename}}" width="100%" />
		<div class="price">Price:{{price}}</div>
		<div data-binding-show="{{beds}}" class="beds">Beds:{{beds}}</div>
	</div>
</div>

Setting the "append" method in the div would give a better control over what tags get replaced and what ones get appended to.
Replied 26 Sep 2013 15:02:35
26 Sep 2013 15:02:35 Teodor Kuduschiev replied:
Thank you for your idea! I will discuss your suggestion with our developers to see if it is possible to be implemented in the next updates!
Replied 26 Sep 2013 15:08:05
26 Sep 2013 15:08:05 Jonathan Heintzeman replied:
Thank you for your consideration of my idea. Might I say also that "data-binding-show" was an addition that vastly enhanced what I could do using this extension. THANK YOU VERY, VERY MUCH FOR THAT!!!!!

Reply to this topic