OK, I figured out the problem.
My dialog boxes are opened with the showModalDialog() method of the window object instead of the window.open() method. And, according to my JavaScript reference, the showModalDialog() method does not maintain a connection to the originating window via the opener...
I might add...
if I delete from the code the 2 variable assignments at the start of the function and the 2 if constructs from the 'Handle_OK{}' function. The code for the entire page works without errors in Internet Explorer. (Of course, then I lose being able to set a new value on the Data...
Line 791 points to the line of code that begins:
var RF_Obj = self.opener....
There is no "document.opener" anywhere in the code. I am not sure why the error message states it that way, because the code is "self.opener.opener.opener.document". That is the way the examples in my JavaScript...
I have code where a dialog box window needs to send data back to an opening window (3 back in the chain). This is my code:
function HandleOK()
{
//window.alert("Close this window.");
var RF_Obj = self.opener.opener.opener.document.DataEntryForm.RF_ComboBox;
var MF_Obj...
Thanks everyone for the help.
feherke's code snippet did the trick for Firefox. I must have done something stupid when testing for IE, because the code snippet for IE that I had in the original post does work.
The Trim function is in a piece of code that is commented out in the original post.
The Trim function is my own function and it works perfectly fine. Also, the commented out code (the first 3 lines of actual JavaScript code) work perfectly fine. I commented them out, because they are not...
I have a page with a table of database records. In one of the table cells, I have an onclick event in the <td> tag that calls a function.
<td onclick="javascript:GetText(this)">
What I want to happen is that when the user clicks on the cell, the text within the cell becomes selected. I...
I don't understand what I am to do with the information in your reply. Could you please add some more detail? How is that supposed to take the data from my tables and make the list I want in the Combo Box look like the list in my original post?
I just started learning Access a few months ago...
I need help trying to figure out how to write a query to populate a combo box on a form. Here's the scenario:
I have a list of parts that are kept in supply or available for order. The table holds the list of parts. There are columns in the table for the 'Part Name' and 'Part Number' there...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.