Click here to Skip to main content
15,311,014 members
Home / Discussions / JavaScript
   

JavaScript

 
QuestionGoogle Map API & JavaScript Issue (Snowload Calculator) Working Model for easier troubleshooting Pin
Member 1497471825-Oct-20 4:31
MemberMember 1497471825-Oct-20 4:31 
QuestionXML NodeList Java object showing null in Nashorn Javascript Pin
shampoo7224-Oct-20 9:40
Membershampoo7224-Oct-20 9:40 
AnswerRe: XML NodeList Java object showing null in Nashorn Javascript Pin
Richard MacCutchan24-Oct-20 21:59
mveRichard MacCutchan24-Oct-20 21:59 
GeneralRe: XML NodeList Java object showing null in Nashorn Javascript Pin
shampoo7225-Oct-20 6:04
Membershampoo7225-Oct-20 6:04 
GeneralRe: XML NodeList Java object showing null in Nashorn Javascript Pin
Richard MacCutchan25-Oct-20 6:14
mveRichard MacCutchan25-Oct-20 6:14 
AnswerRe: XML NodeList Java object showing null in Nashorn Javascript Pin
shampoo7225-Oct-20 16:36
Membershampoo7225-Oct-20 16:36 
QuestionGetting a video webm from client to server Pin
Rayj201023-Oct-20 9:58
MemberRayj201023-Oct-20 9:58 
Questionimport declarations may only appear at top level of a module Pin
jkirkerx19-Oct-20 9:38
professionaljkirkerx19-Oct-20 9:38 
I searched around on this, and can't figure out what the module is.

I wrote this for that PHP project. A file called js_undefinedValue.js. The idea is to write my undefined value to local storage and read it back when I need it.

Overall, I can't reference and use the functions.
ReferenceError: writeUndefinedValue is not defined
export class UndefinedValue {

    projectNumber;
    variableContingencyValue;
    actualCost;
    varibleContingencyCost;
    actualPlusContingencyCost;

}

export function writeUndefinedValue(projectNumber, variConRate, actualCost, variConCost, actualPlusCost) {

    let uVo = new UndefinedValue();
    uVo.projectNumber = projectNumber;
    uVo.variableContingencyValue = variConRate;
    uVo.actualCost = actualCost;
    uVo.varibleContingencyCost = variConCost;
    uVo.actualPlusContingencyCost = actualPlusCost;

    localStorage.setItem('undefinedValue', JSON.stringify(uVo));
}

export function readUndefinedValue(projectNumber) {

    let uVo = JSON.Parse(localStorage.getItem('undefinedValue'));
    if (uVo !== undefined || uVo !== null) {
        return uVo;
    }
    return null;

}

And in the top of the frame code, added this.
<script type="text/javascript">
    import { readUndefinedValue, writeUndefinedValue, UndefinedValue } from './source/js_undefinedValue.js';
</script>
If it ain't broke don't fix it
Discover my world at jkirkerx.com

AnswerRe: import declarations may only appear at top level of a module Pin
jkirkerx19-Oct-20 10:16
professionaljkirkerx19-Oct-20 10:16 
QuestionGetting a textbox in another frame Pin
jkirkerx18-Oct-20 12:18
professionaljkirkerx18-Oct-20 12:18 
Answer[abandon] the idea Pin
jkirkerx19-Oct-20 9:29
professionaljkirkerx19-Oct-20 9:29 
AnswerRe: Getting a textbox in another frame Pin
DerekT-P19-Oct-20 9:46
professionalDerekT-P19-Oct-20 9:46 
GeneralRe: Getting a textbox in another frame Pin
jkirkerx19-Oct-20 10:12
professionaljkirkerx19-Oct-20 10:12 
QuestionVirtual populate in JS Pin
adids122123-Sep-20 1:38
Memberadids122123-Sep-20 1:38 
QuestionSetting max length property of masked input control in ember js Pin
simpledeveloper22-Sep-20 5:45
Membersimpledeveloper22-Sep-20 5:45 
AnswerRe: Setting max length property of masked input control in ember js Pin
ZurdoDev22-Sep-20 6:07
professionalZurdoDev22-Sep-20 6:07 
QuestionNeed to mask Alphanumeric values with some special characters allowed Pin
simpledeveloper9-Sep-20 10:02
Membersimpledeveloper9-Sep-20 10:02 
AnswerRe: Need to mask Alphanumeric values with some special characters allowed Pin
W Balboos, GHB11-Sep-20 8:59
mveW Balboos, GHB11-Sep-20 8:59 
GeneralRe: Need to mask Alphanumeric values with some special characters allowed Pin
simpledeveloper21-Sep-20 8:14
Membersimpledeveloper21-Sep-20 8:14 
GeneralRe: Need to mask Alphanumeric values with some special characters allowed Pin
W Balboos, GHB21-Sep-20 9:07
mveW Balboos, GHB21-Sep-20 9:07 
GeneralRe: Need to mask Alphanumeric values with some special characters allowed Pin
simpledeveloper21-Sep-20 9:28
Membersimpledeveloper21-Sep-20 9:28 
GeneralRe: Need to mask Alphanumeric values with some special characters allowed Pin
W Balboos, GHB22-Sep-20 2:27
mveW Balboos, GHB22-Sep-20 2:27 
GeneralRe: Need to mask Alphanumeric values with some special characters allowed Pin
simpledeveloper22-Sep-20 5:47
Membersimpledeveloper22-Sep-20 5:47 
GeneralRe: Need to mask Alphanumeric values with some special characters allowed Pin
W Balboos, GHB22-Sep-20 5:53
mveW Balboos, GHB22-Sep-20 5:53 
GeneralPixelated in javascript Pin
Hasan Moussawi8-Sep-20 20:52
MemberHasan Moussawi8-Sep-20 20:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.