skip to Main Content

Trying to get javascript variables on one php page to show in another using WYSIWYG Web Builder 19

I have a javascript in the head of the index page and this function stores the variables from the functions in localstorage: <script type="text/javascript"> function storeGlobals() { localstorage.setItem("name", name.value) localstorage.setItem("current_age", current_age.value) localstorage.setItem("retirement_age", retirement_age.value) localstorage.setItem("base_salary", base_salary.value) localstorage.setItem("emailid", emailid.value) localstorage.setItem("FEGLI_BASIC_LIFETIME_COST", "$"+total_FEGLI_BASIC_LIFETIME_COST) localstorage.setItem("fegli_opa_cost",…

VIEW QUESTION

Javascript – inject() Angular making it difficult

How could I be using the inject() functionality in Angular 15 for this case? Way using constructor(): import { datadogRum } from '@datadog/browser-rum'; constructor(...) { datadogRum.init({ applicationId: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', clientToken: 'EX-app', ... }); } Way using inject(): import { datadogRum }…

VIEW QUESTION
Back To Top
Search