Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to drilldown a page?

Status
Not open for further replies.

lapple

Technical User
Feb 19, 2012
1
US
I am looking for a sample code/logic where I can drill down to N levels in a page.
Let us consider an example.
Let Page 0 - Drill down level - 2
What I mean by drill down level is the depth of navigation in page. In our example, assume that Page 0 has say 2 links in available.
On clicking on these two links (namely Link A, Link B) navigate to two different pages (Page 0_1 & Page 0_2). I say this as level 1.
Page 0 Contains Link A --> Page 0_1
Page 0 Contains Link B --> Page 0_2

We need to drill down to another level (as the level is 2 in this example)

Level 2 are the pages that will be displayed on navigating to the Links (say 2 links namely Link i, Link ii) in the Page0_1 & the Links (say 2 links namely Link iii, Link iv) in the Page0_2

Page 0 Contains Link A --> Page 0_1 Contains Link i --> Page 0_1_i
Page 0 Contains Link A --> Page 0_1 Contains Link i --> Page 0_1_ii

Page 0 Contains Link B --> Page 0_2 Contains Link iii --> Page 0_1_iii
Page 0 Contains Link B --> Page 0_2 Contains Link iv --> Page 0_1_iv

Similarly, for N levels. My input will be the Start URL and the depth of drill down (level).

This is similar to recursive function concept but not sure how to implement in this case.

Any suggestion or a code snippet which can be applied will be very useful.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top