FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index mod_harbour web page titel
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
web page titel
Posted: Wed Nov 11, 2020 08:11 PM
Hello,
I use a 2nd hash for the web page name.

Code (fw): Select all Collapse
static hWebPageName: = {=>}

function main
...
  hWebPageName ["datakunden: exec: brief"] = "QRCode Notes"
  hWebPageName ["landing"] = "Langing Page Generator"
  hWebPageName ["landingpage: exec: edit"] = "Setup switch landing page"


Inside ROUTER I read the hash value:

Code (fw): Select all Collapse
function router ()
...
cWebPageName: = hb_HGetDef (hWebPageName, hashkey, 'home')



Web Page Name is displayed in the body.view.

<a id="title" class="navbar-brand mr-auto" style="color:white;padding-left:30px;"> {{WebPageName ()}} </a>


<script>
$ (document) .ready (function () {
document.getElementById ('title'). innerHTML = '{{WebPageName ()}}';
});
</script>

Continue the discussion