[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gb.web webpage, pass javascript value to the class?
[Thread Prev] | [Thread Next]
- Subject: Re: gb.web webpage, pass javascript value to the class?
- From: Lee <t.lee.davidson@xxxxxxxxx>
- Date: Mon, 15 Dec 2025 13:52:32 -0500
- To: user@xxxxxxxxxxxxxxxxxxxxxx
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] ----
| Re: gb.web webpage, pass javascript value to the class? | Bruce Steers <bsteers4@xxxxxxxxx> |
| gb.web webpage, pass javascript value to the class? | Bruce Steers <bsteers4@xxxxxxxxx> |