[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: use a gambas web cgi in a phpBB forum
[Thread Prev] | [Thread Next]
- Subject: Re: use a gambas web cgi in a phpBB forum
- From: Lee <t.lee.davidson@xxxxxxxxx>
- Date: Thu, 4 Dec 2025 14:39:59 -0500
- To: user@xxxxxxxxxxxxxxxxxxxxxx
On 12/4/25 10:41 AM, Bruce Steers wrote:
if found this little beauty...
var e = a.parentNode.parentNode.getElementsByTagName('CODE')[0];
a is passed in the onclick handler as "this" like so...
<a href="#" style="color:green" onclick="runCode(this); return false;">💻 Run code</a>
That gets the correct code box then e.innerText has the code with line breaks and no html.
Yes, I'm still interested to learn how the code highlighting issue might be solved. And, I still don't understand how you solved it, because getting a handle on the current element ("this") requires user interaction, ie. the "onClick" event. I see how that would work for executing the code, but not how it would work for highlighting it on page load.
Anyway, in post #66 in that thread, you said, "Anyone got experience in getting a website server certified?"You don't need to get the website server certified. All you need to do is install a SSL certificate. Then, set your server to also use port 443 perhaps in a virtual host depending on the server software. For the certificate, you might want to take a look at https://letsencrypt.org/.
-- Lee --- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ---- --- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----
| Re: use a gambas web cgi in a phpBB forum | Bruce Steers <bsteers4@xxxxxxxxx> |
| Re: use a gambas web cgi in a phpBB forum | Bruce Steers <bsteers4@xxxxxxxxx> |