web page titel

mod_harbour is an Apache module that allows to run PRGs directly on the web !!!

web page titel

Postby Otto » Wed Nov 11, 2020 8:11 pm

Hello,
I use a 2nd hash for the web page name.

Code: Select all  Expand view
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: Select all  Expand view

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>

Image
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Return to mod_harbour

Who is online

Users browsing this forum: No registered users and 6 guests