[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gb.web webpage, pass javascript value to the class?


On 12/15/25 10:32 AM, Bruce Steers wrote:
Is it possibleto pass a Javascript from a Main.webpage file to the Main.class?

Or is it possible to get the webpage Javascript info in the class?

I want to do something like this in Main.webpage...
<DOCTYPE html>
<head>
<script>
let sOrigin = location.origin;
</script>
</head>
<%
Init(sOrigin)
%>

Or if that's not possible is it possible to get location.origin in Main.class?

Thanks
Respects
BruceS


Couldn't you concatenate the relevant CGI environment values. eg.
Init(CGI["REQUEST_SCHEME"] & "://" & CGI["SERVER_NAME"])
?


--
Lee

--- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ----
--- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----


Follow-Ups:
Re: gb.web webpage, pass javascript value to the class?Bruce Steers <bsteers4@xxxxxxxxx>
References:
gb.web webpage, pass javascript value to the class?Bruce Steers <bsteers4@xxxxxxxxx>