Click here to Skip to main content
15,120,477 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: XML NodeList Java object showing null in Nashorn Javascript Pin
Richard MacCutchan24-Oct-20 22:59
mveRichard MacCutchan24-Oct-20 22:59 
GeneralRe: XML NodeList Java object showing null in Nashorn Javascript Pin
shampoo7225-Oct-20 7:04
Membershampoo7225-Oct-20 7:04 
GeneralRe: XML NodeList Java object showing null in Nashorn Javascript Pin
Richard MacCutchan25-Oct-20 7:14
mveRichard MacCutchan25-Oct-20 7:14 
AnswerRe: XML NodeList Java object showing null in Nashorn Javascript Pin
shampoo7225-Oct-20 17:36
Membershampoo7225-Oct-20 17:36 
QuestionGetting a video webm from client to server Pin
Rayj201023-Oct-20 10:58
MemberRayj201023-Oct-20 10:58 
Questionimport declarations may only appear at top level of a module Pin
jkirkerx19-Oct-20 10:38
professionaljkirkerx19-Oct-20 10:38 
AnswerRe: import declarations may only appear at top level of a module Pin
jkirkerx19-Oct-20 11:16
professionaljkirkerx19-Oct-20 11:16 
QuestionGetting a textbox in another frame Pin
jkirkerx18-Oct-20 13:18
professionaljkirkerx18-Oct-20 13:18 
I know nothing about frames, or just forgot from 17 years ago.
I have this PHP project, original authors used frames.
I need to store a calculated value in child frame, and store it in a textbox in the parent frame.

Can't seem to grab the frame, undefined.

The HTML
<frameset rows="45, 75%" FRAMEBORDER="0" BORDER="0" FRAMESPACING="0" onUnload="logout()">
   <frameset cols="*, 450" FRAMEBORDER="0" BORDER="0" FRAMESPACING="0">
        <frame id="basicFrame" name="basic" src="page_top.phtml" marginheight="0" marginwidth="0" noresize border="0" scrolling="yes"  >
        <frame id="msrpFrame" name="msrp" src="page_blank.html" marginheight="0" marginwidth="0" noresize border="0">
   </frameset>
   <frame id="mainFrame" name="main" src="page_main.phtml" marginheight="0" marginwidth="0" noresize border="0">
</frameset>

My textbox is in a frame called mainFrame, and my script and calculated value is in a iframe called msrpFrame.
<script language='JavaScript' type='text/javascript'>    
    var mFrame = document.getElementById('mainFrame');
    if (mFrame !== null || mFrame !== undefined) {
        var contentDoc = mFrame.contentDocument || mFrame.contentWindow.document;
        var txtUV = contentDoc.getElementById('undefinedValue');
        if (txtUV !== null) {
            txtUV.value = " . $GLOBALS[undefinedValue] . "
        }
    }
</script>

I thought I was pretty good with JavaScript but this eludes me. I'm not a big fan of how this project was authored either. And this seems to be the best solution at the moment. Unless I try to make the global var work in PHP across multiple frames and multiple PHP pages.
If it ain't broke don't fix it
Discover my world at jkirkerx.com

Answer[abandon] the idea Pin
jkirkerx19-Oct-20 10:29
professionaljkirkerx19-Oct-20 10:29 
AnswerRe: Getting a textbox in another frame Pin
DerekT-P19-Oct-20 10:46
professionalDerekT-P19-Oct-20 10:46 
GeneralRe: Getting a textbox in another frame Pin
jkirkerx19-Oct-20 11:12
professionaljkirkerx19-Oct-20 11:12 
QuestionVirtual populate in JS Pin
adids122123-Sep-20 2:38
Memberadids122123-Sep-20 2:38 
QuestionSetting max length property of masked input control in ember js Pin
simpledeveloper22-Sep-20 6:45
Membersimpledeveloper22-Sep-20 6:45 
AnswerRe: Setting max length property of masked input control in ember js Pin
ZurdoDev22-Sep-20 7:07
professionalZurdoDev22-Sep-20 7:07 
QuestionNeed to mask Alphanumeric values with some special characters allowed Pin
simpledeveloper9-Sep-20 11:02
Membersimpledeveloper9-Sep-20 11:02 
AnswerRe: Need to mask Alphanumeric values with some special characters allowed Pin
W Balboos, GHB11-Sep-20 9:59
mveW Balboos, GHB11-Sep-20 9:59 
GeneralRe: Need to mask Alphanumeric values with some special characters allowed Pin
simpledeveloper21-Sep-20 9:14
Membersimpledeveloper21-Sep-20 9:14 
GeneralRe: Need to mask Alphanumeric values with some special characters allowed Pin
W Balboos, GHB21-Sep-20 10:07
mveW Balboos, GHB21-Sep-20 10:07 
GeneralRe: Need to mask Alphanumeric values with some special characters allowed Pin
simpledeveloper21-Sep-20 10:28
Membersimpledeveloper21-Sep-20 10:28 
GeneralRe: Need to mask Alphanumeric values with some special characters allowed Pin
W Balboos, GHB22-Sep-20 3:27
mveW Balboos, GHB22-Sep-20 3:27 
GeneralRe: Need to mask Alphanumeric values with some special characters allowed Pin
simpledeveloper22-Sep-20 6:47
Membersimpledeveloper22-Sep-20 6:47 
GeneralRe: Need to mask Alphanumeric values with some special characters allowed Pin
W Balboos, GHB22-Sep-20 6:53
mveW Balboos, GHB22-Sep-20 6:53 
GeneralPixelated in javascript Pin
Hasan Moussawi8-Sep-20 21:52
MemberHasan Moussawi8-Sep-20 21:52 
QuestionI have HTML and jQuery as below, I want to convert that into EmberJS Pin
simpledeveloper8-Sep-20 10:44
Membersimpledeveloper8-Sep-20 10:44 
SuggestionRe: I have HTML and jQuery as below, I want to convert that into EmberJS Pin
ZurdoDev9-Sep-20 11:36
professionalZurdoDev9-Sep-20 11:36 

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.