i have a popup window that's built from javascript with something like:
source += "<html>";
source += " <head>";
source += " </head>";
source += " <frameset rows='100,*'>";
source += " <frame id='controls' name='controls' />";
source += " <frame id='data' name='data' />";
source += " </frameset>";
source += "</html>";
i'd like to "push" some content into the frames in mozilla. in IE, we
use the following:
popupwindow.doc ument.frames['data'].document.write (source);
but i get an error message that document doesn't exist. i use
mozilla's debugger and surely there's no document object on the frame
object. any ideas on how i can push content into these frames?
thanks!
~mark 3 1563 ml*******@gmail .com wrote: i have a popup window that's built from javascript with something like:
source += "<html>"; source += " <head>"; source += " </head>"; source += " <frameset rows='100,*'>"; source += " <frame id='controls' name='controls' />"; source += " <frame id='data' name='data' />"; source += " </frameset>"; source += "</html>";
i'd like to "push" some content into the frames in mozilla. in IE, we use the following: popupwindow.doc ument.frames['data'].document.write (source);
but i get an error message that document doesn't exist. i use mozilla's debugger and surely there's no document object on the frame object. any ideas on how i can push content into these frames?
I guess it is going to work if you start with
<frame name='data' src='about :blan k'>
--
Martin Honnen http://JavaScript.FAQTs.com/
i add the src, and it still doesn't seem to work. here's a test html
page. i had to turn off the pop up blocker in moz, as i couldn't figure
out how to unblock a local html file.
<html>
<head>
<script language="javas cript">
function init() {
alert( 'begin' );
var traceWindow = null;
try {
var iwinWidth = 320; // width of the new window
var iwinHeight = 600; // height of the new window
var iwinLeft = screen.width - (iwinWidth + 10); //(screen.width /
2) - (iwinWidth / 2);
var iwinTop = 10; //(screen.height / 2) - (iwinHeight / 2);
var sConfig="top=" + iwinTop + ",left=" + iwinLeft +",height=" +
iwinHeight + ",width=" + iwinWidth + ",scrollbars=ye s, resizable=yes";
var source;
traceWindow = window.open("", "_blank", sConfig);
source = "";
source += "<html>";
source += " <head>";
source += " </head>";
source += " <frameset rows='100,*'>";
source += " <frame id='controls' name='controls'
src='about:blan k'/>";
source += " <frame id='data' name='data' src='about:blan k' />";
source += " </frameset>";
source += "</html>";
traceWindow.doc ument.write(sou rce);
traceWindow.doc ument.close();
source = "";
source += "<html>";
source += " <head>";
source += " </head>";
source += " <body>";
source += "here";
source += " </body>";
source += "</html>";
traceWindow.doc ument.frames['controls'].document.write (source);
} catch (ex) {
alert(ex);
}
}
</script>
</head>
<body onload="init(); ">
testing
</body>
</html> ml*******@gmail .com wrote: traceWindow.doc ument.frames['controls'].document.write (source);
That needs to be
traceWindow.fra mes['control'].document.open( );
traceWindow.fra mes['control'].document.write (...);
traceWindow.fra mes['control'].document.close ();
to work with Netscape/Mozilla. Should work that way with IE too.
--
Martin Honnen http://JavaScript.FAQTs.com/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: ^CeFoS^ |
last post by:
Hello to everybody,
I've done an application that draws in a frame the trajectory of a
robot. The robot position is readed through the serial port, and
several commands are wrote through the same port to change the
direction of the robot.
The trajectory frame is managed by an applet, and the project works
good when the applet is called by a html document allocated in the
same local machine under W98 where the classes and the serial port...
|
by: Maik Wiege |
last post by:
Hi!
I want to show a blinking text over my derived CMDIChildWnd-class. The
blinking is done by one view which is hold by my frame. I set up a timer and
write text to the parent frame, which works fine. But I can't get the text
away the next time the timer fires. Here is some code:
void MyView::OnTimer(UINT nIDEvent)
{
if (nIDEvent!=1) return;
showText = !showText;
|
by: MTC |
last post by:
Hi all and thanks in advance
I have an HTML page with 3 frames. Lets call them top middle and bottom.
On the top frame there is a button to run some java script! When it is run
I want to put some text into the middle frame, but in to a text box on a
form call "testform" textbox name is "TestText"
I know I need to address the frame name but what am I missing?
Parent.frames("middle").TextText.value = "here is the data"
|
by: Frame |
last post by:
I'm looking for tutorials or articles considering HTML Frames and how to
handle them with Javascript.
E.g. samples how Frames can exchange information, can a Frame instruct
other Frame to update it's content etc.
This kind of information is welcome.
Cheers!
|
by: Tim Johnson |
last post by:
Hello all:
I have a page with two frames named "menu" and "display".
An event handler in "menu" changes the src attribute for
"display", resulting in a different page being loaded for
each choice in a option list.
I accomplish this as follows:
// .... code
var frameTag = top.document.getElementById("display");
var optionValue =
| |
by: dduran |
last post by:
I'm on Windows XP using Visual C++ 6.0.
I need to capture the image in the video frame buffer,
modify it by putting a small graphic along the bottom
sixteenth of the image, and write it back to the video
frame buffer for display in somewhat real time.
Any leads to working code or function calls in openML,
openGL, or other would be most appreciated. A solution
comparable to the openGL DMbuffer extensions for
|
by: xzzy |
last post by:
VS 2003, code behind is C#
Situation:
1. a webpage has 4 frames:
TOP
LEFT RIGHT
BOTTOM
|
by: Aaron Gray |
last post by:
How do I set the innerHTML property of a contained IFRAME ?
Many thanks in advance,
Aaron
|
by: Krzysztof Retel |
last post by:
Hi guys,
I am struggling writing fast UDP server. It has to handle around 10000
UDP packets per second. I started building that with non blocking
socket and threads. Unfortunately my approach does not work at all.
I wrote a simple case test: client and server. The client sends 2200
packets within 0.137447118759 secs. The tcpdump received 2189 packets,
which is not bad at all.
But the server only handles 700 -- 870 packets, when it is...
|
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,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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...
|
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,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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...
|
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
| |
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...
| |