rejetto forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - nano28

Pages: 1
1
HTML & templates / Re: Incremental number in template
« on: May 26, 2012, 07:18:41 PM »
Thanks for the answer.. it works.  :D

2
HTML & templates / Re: Incremental number in template
« on: May 24, 2012, 09:26:52 AM »
Hi...

Thanks for the reply.

I love to do this using javascript but still don't know how to make it work.

Is it possible to call function from javascript within HTML ID ?

Eg.

//JS code
var num=0;
counter(){
    num++;
    return num;   
}

//HTML body
<div id=counter()>%item-name%</div>

3
HTML & templates / Incremental number in template
« on: May 23, 2012, 10:36:33 PM »
Hi, I am new in HFS template development.

Can I know whether is it possible to put incremental number automatically?

This is because I want to assign different ID to every filename.

In browser, I hope to get something like this:

<div id="1">Filename 1</div>;
<div id="2">Filename 2</div>;
<div id="3">Filename 3</div>;

... and so on depending on the number of file in the folder.

Thanks.

Pages: 1