show the different html links details in another single page dynamically - html

i have 7 links in one html page and when i clicking any links leads to another page with link heading(eg: link heading) of that link.
My question is ,for this instead of creating 7 other pages for 7 links ,is that possible to create a single page which shows the links headings dynamically when the links are clicked?
Is that possible by using xml ?am new to xml parsing ?

You'll have to use a programming language such as php to dynamically load the data. Then the links can be like: http://example.com/link.php?target=3

Related

Is it possible to create an internal html page to my index.html?

I'm creating a new website and I will have different pages on it. However, instead of creating new HTML files for each page and an anchor for each, I want all my pages contained in one HTML file. Is it possible in any way?
You can try Vue js or React js or many js frameworks ... which contain components.
Using HTML
You can control HTML page section how tabs working in HTML, take a look in Bootstrap Tabs, or you can hide/show sections using CSS or using JS, you may store HTML for each page in array of js and load that HTML to Body based on URL you create
Using Server Side Language
Also if you need single page application with multiple pages you need a Server Side language, where Database contains your website configurations and you can load based on the URL each page's layout or text like heading forms etc...

How to make a back button that goes to the parent page in C# Razor and 2sxc App?

I have a 2sxc app that is a simple parent-and-child setup. So there's a listing of cards and each card has a details view. I use this app on 6 pages - each with their own unique content. I want to make a "back" link inside of the details view that goes back to that detail's parent.
So one of the pages is called "Motivate", and I want it so if a user goes to "Motivate" and then clicks on one of the details views, let's say "motivate/details/marketer", I want a back link on that details view that goes back to the "Motivate" page. But this link would have to work for each of the 6 categories dynamically. How would I create this in c# razor?
Can you post your code just so that I can see how its all done?
You can the current page id in 2sxc using "#Dnn.Tab.TabID"
If you can get the parent page ID you can use the following link to go to that page
"http://www.example.com/Default.aspx?tabid=TABID"
Regards
Kieran
I was overthinking this. Here's my code:
Go back
This works because when I'm on the details view (a different template), the landing page is still the Tab's Full URL.

How do i create and link another webpage with Visual Studio Code?

Currently I am following tutorials online that uses 1 index.html file, and 1 app.js file that results in only 1 page. However I would like to have multiple pages, that links back and forth with a click of a button, how do I have multiple pages?
Do I have to code all the pages in the same index.html file? Or do I need to create another html?
Or do I need to create another html?
Yes. Unless you are building a SPA or dynamically generating your HTML with server side code: Each HTML file is a page.
that links back and forth with a click of a button
The <a> element is used to create links between pages.
Other page

DocBook with WebHelp - can you specify a page anchor at the root of the HTML page and find it deep in the document?

I am using WebHelp to render my DocBook document.
Within my DocBook file, if I have an anchor as follows:
<anchor id="thisIsSomeExample" />
I am able to reach it within my WebHelp render using a URL such as:
http://localhost:8080/MyWebHelpProject/book/pages/ch01s01.html#thisIsSomeExample
This is great, but what I really want to be able to do is find that anchor, irrespective of what section of whatever chapter is currently open on my screen:
http://localhost:8080/MyWebHelpProject/book/pages/#thisIsSomeExample
Is this possible?
Edit: Following the sound suggestion of #Sitapati Das to render the entire document in one page I must add that we require to split the document up by chapter. The document is very large (over 300 pages when printed in A4).
This would be possible if you render your help file as html-single, and use unique anchor IDs.

How to open a specific tab in a different page

I have a home page on which, inside an IFrame a different HTML page is shown.
On that page there's a link, which on click, needs to open another page inside the same IFrame with specific tab shown. The new page has 3 tabs and the link need to open the second one.
There are other links too, which needs to open specific tabs. The problem is all this is for a demo purpose and no dynamic setting is there. No database or anything. All are static HTML pages.
Tab 2
assuming the page can parse the hash