Countdown inside dataView

It´s possible to put a countdown jquery script inside a template of the dataView. I want show items with a limit of time and must show how many time there are for see.

I have a jquery countdown but don’t work. I think jquery don’t see the div I use for the countdown.

Please check if you run your code for countdown before dataview was loaded:

dataview.load(url,function(){ //your code here })

Good information. Thank you.


abercrombie and fitch uk/Abercrombie

How I can do if I use attachDataView() ???

The same situation. You should wait till all data is loaded

Sorry, how I can do this? I have some event function for do this?

dataview.load(url,function(){ //your code here })

it’s possible recover some data from every item?

I make some tests and only work on the first item, and when select this one, dissapears. How I can solve this? I want to put the countdown on all the items, with differents times (for this I need recover data from the item).

By default dataview works in dyn. render mode - which means it renders items only when they are visible, so in common case it is not possible to attach custom jquery code to all items.

But you can

dataview.attachEvent(“onItemRender”, function(obj){
dhtmlx.delay(function(){
var html = dataview.locate(obj.id);
… do anything with html …
});
});