Multi-page web site

Hi all,
I am new to DHTMLX touch.

I am planning to develop a web site using DHTMLX touch ,where I am having more than html pages.
For ex. I have 5 buttons in home page and i need to navigate to each page on clicking a button.

My Questions

  1. Is it possible to have more than html pages or I need to have only one page?
  2. How to have a common header for all pages, instead of repeating the same code?

Please help.
Thanks

Hi,

Is it possible to have more than html pages or I need to have only one page?

It is possible. Why not

How to have a common header for all pages, instead of repeating the same code?

We do not recommend to use iframes. As they are not scrollable.

You may take a look at the Multiview component (one html page in this case). Possibly it will fit:

dhtmlxTouch_v12_120913/samples/01_views/09_multiview.html

Hi Alexandra,
Thank you for the reply.

You have answered it is possible to have more than one html pages, can I get some samples on how to navigate from one html page to another html page by clicking a link

Thanks in advance

Hi,

Possibly I misunderstood the issue… You may use simple html links in this case. Or you may set onClick event handler for buttons. If you need a sample, please explain what is not clear about links to you.

Hi Alexandra,
I am clear in using simple links or onclick event.
If I need to link to another page on list item click how can I handle this?

You can set onItemClick event handler :

$$('mylist').attachEvent("onItemClick", function(id){ // your code here });

Thank you Alexandra,
Will work with some samples and get back to you for any doubts.