473,604 Members | 2,513 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Communicating Back to Main Window

hi, i can't get a child window communicate Back to the Main Window
This is my code:

var win1 = window.opener;
function f_close()
{
win1.corredor_f rame.sp_text_co rredor.innerTex t = "change this value";
window.close();
}

corredor_frame is the frame where the child window was opened, my problem is
this doesn't work with Mozilla , i got "win1.corredor_ frame has no
properties" error, instead it works fine with IE.

I'm very newbie with Javascript, it seems like i'm using some "only" IE
code, but i can't find the standar way.

Any help would be appreciated
Jul 20 '05 #1
1 1548
DU
chauz wrote:
hi, i can't get a child window communicate Back to the Main Window
This is my code:

var win1 = window.opener;
function f_close()
{
win1.corredor_f rame.sp_text_co rredor.innerTex t = "change this value";
window.close();
}

corredor_frame is the frame where the child window was opened, my problem is
this doesn't work with Mozilla , i got "win1.corredor_ frame has no
properties" error, instead it works fine with IE.

sp_text_corredo r is what? A paragraph? An input?

Try

function f_close()
{
opener.corredor _frame.sp_text_ corredor.childN odes[0].nodeValue =
"change this value";
window.close();
}

I'm pretty sure I could figure out your problem if only I could see the
whole code.

DU
I'm very newbie with Javascript, it seems like i'm using some "only" IE
code,
innerText is IE only. childNodes[index].nodeValue is DOM and is well
supported by W3C DOM 2 compliant browsers (and that includes MSIE 6 for
Windows). Any DOM 2 CharacterData compliant browser will also support
childNodes[index].data or childNodes[index].nodeValue as long as the
targeted node is of type TEXT_NODE.

Be careful with Mozilla-based browsers as white spaces count as TEXT_NODE.

but i can't find the standar way.
Any help would be appreciated


Can you provide an url?

DU

Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1838
by: Eric Brunel | last post by:
Hi all, We're trying to communicate with Microsoft Visual C++ 6.0 via COM to make it perform a few operations. Our main need is to set a breakpoint on a given line in a given file. We ended up with the following script: --------------------------------------------- import win32com.client import time
3
23859
by: Stan | last post by:
Hallo, I have developed an application in MS Access 2000 (Polish version) under MS Windows XP prof (also Polish). Now I would like to run this code on MS Windows XP EN and MS Access XP EN. I have converted the mdb to version 2002 under MS Access XP Polish and under this version everything works OK. The problem starts when I copy the mdb file to Windows XP EN and start it with MS Access XP EN. I get following error: "The expression On...
2
1430
by: Matthew Playne | last post by:
Hi, I am having a problem communicating between to classes. I have an MDI application. The parent window contains a mainMenu and a toolbar and toolbuttons, and the child form contains a richTextBox. What I am trying to do is to when a the selected text in the richTextBox is bullet indented, a menu option on the parent window is toggled on or off depending on what is
3
6754
by: Alan | last post by:
I have a form that contains many fields for the user to enter. After entering the data the user can click a link to open a new window, the new window contains six columns (pull down menu) and 30 rows to allow user choose their options. <SCRIPT LANGUAGE="JavaScript"> function win(QID) { msg=window.open("QuotationPE.asp?QID=" + QID ,"","height=600,width=800,left=80,top=80, scrollbars=yes"); }
2
2004
by: Veleek | last post by:
An alternate title for this might be "Creating my own set of core classes". Just a quick overview. In order to learn C#, Sockets, Multithreading and whatever else I can, I am attempting to create MSN Messenger (My Sucky New Messenger), ie. a simple IM program as it is a interesting way to incorporate all of the project. This will utilize a server which all the useres will connect to in order to determine who is online. After users...
7
1664
by: maralfarshadi | last post by:
Dear All I am working on a Java based Web app - In this application, a window contains many textboxes which open the same child window. The user should choose among the option boxes provided and the choice should be reported back to parent window. 1. To know which textbox caused the child window to open, the two hidden inputs namely cbox and statbox are used to keep track. 2. The javascript code goes through the option boxes to find...
0
7929
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8406
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8065
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
5882
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5441
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3906
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2433
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1522
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1262
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.