This is a migrated thread and some comments may be shown as answers.

Any way to create multi-page projects using includes

1 Answer 45 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Zachary
Top achievements
Rank 1
Zachary asked on 16 Feb 2013, 04:56 PM
Being new to icenium.. I am slightly overwhelmed with the LONGGGG single page index.html file. Navigating is daunting especially in copy-paste situations, scrolling from top-to-bottom is very time consuming. The collapse functions works well although once closed all code is expanded. Is there any method of using multiple pages in ice projects?

Thx
Z

1 Answer, 1 is accepted

Sort by
0
Yavor Georgiev
Telerik team
answered on 17 Feb 2013, 04:29 PM
Hi Zachary,

 Including pages is really easy. Simply add a html file to your project and then, in your index.html, request its contents with ajax like so:
$.get("path/to/your/page.html", function(data) {
    $("#pagePlaceholder").html(data);
});

 I'm using jQuery in this example, but you can use any other framework, or make the ajax request yourself with XMLHttpRequest manually. Remember that URLs pointing to files in your project need to be relative to the page requesting them.

 You can use the same approach to load external Kendo UI templates, as detailed here.

Greetings,
Yavor Georgiev
the Telerik team

Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Pluralsight.
Tags
General Discussion
Asked by
Zachary
Top achievements
Rank 1
Answers by
Yavor Georgiev
Telerik team
Share this question
or