Hi,
I am trying to write the content of one html page to another. But the
problem is it overwrites everything that other html page has.
For Example, I have two pages. One is 1.html & second is 2.html. There
is a div in 1.html. I want to write that div contents to 2.html.
2.html has some content in it. But when I write to 2.html, the div
content is overwriting everything that is in 2.html and I dont want to
do that.
I am using this to write:
printWin = window.open("2. html","printSpe cial");
printWin.docume nt.open();
printWin.docume nt.write(html);
printWin.docume nt.close();
Any Ideas what I am doing wrong here? 1 1267
webmaniac schreef:
Hi,
I am trying to write the content of one html page to another. But the
problem is it overwrites everything that other html page has.
For Example, I have two pages. One is 1.html & second is 2.html. There
is a div in 1.html. I want to write that div contents to 2.html.
2.html has some content in it. But when I write to 2.html, the div
content is overwriting everything that is in 2.html and I dont want to
do that.
I am using this to write:
printWin = window.open("2. html","printSpe cial");
printWin.docume nt.open();
printWin.docume nt.write(html);
printWin.docume nt.close();
Any Ideas what I am doing wrong here?
Hi,
You probably closed the document before writing to it.
Once closed, subsequent open/write class will start on empty document.
Solution: do not close.
Regards,
Erwin Moller
--
"There are two ways of constructing a software design: One way is to
make it so simple that there are obviously no deficiencies, and the
other way is to make it so complicated that there are no obvious
deficiencies. The first method is far more difficult."
-- C.A.R. Hoare This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Art |
last post by:
NEWBIE ALERT!
Esteemed List Participants and Lurkers:
(System: P-II 350, 192 meg, Win98 SE, Python 2.2.3,
wxPythonWIN32-2.4.1.2-Py22.exe)
I'm having a lot of fun getting started with Python ... it is the most
elegant and graceful language I have ever used (Fortran, Cobol, Basic, many
assemblers, Forth, C, VB, etc.). I don't have the resources or the
|
by: Harlan Messinger |
last post by:
Can you help me figure out what to do about popups?
Sometimes we develop web applications where popups make very good sense for
precisely the same reasons they make sense in traditional locally-installed
application interfaces. I understand some people object, on grounds having
nothing to do with disabilities, to links that generate new browser windows.
I don't know what the basis of their objection is, but I wonder whether the
same...
|
by: PSERVE |
last post by:
Is the a way of preventing popups from other sites while your page is
loading?
--
Regards
Nik
http://www.itconsultancy.org
|
by: Tom Szabo |
last post by:
Hi,
>>IE in Windows XP Service Pack 2 has a popup blocker that blocks
unsolicited
>>popups
>>IE (other than Windows XP Service Pack 2) also has many add-ons (Google
toolbar,
>>Yahoo! toolbar, Norton Internet Security, etc) that block unsolicited
popups.
|
by: songstre |
last post by:
I would like to write a service that handles certain tasks fro a third
party back end. There is an API for the back end that I can use to
accomplish this, but there are certain calls I have to make to the API
that put up a UI. There is no way to aviod the UI, but if write the
service will it crash when the API trys to put up a UI? I'd really like
to know this before I go ahead and put all the effort into writing the
service. Any help would...
| |
by: ciprian.dosoftei |
last post by:
Hello,
I just finished a tutorial website regarding the development of DHTML
popups. The site features several examples with downloadable samples.
It also feature more complex effects like drop-down popups, fade
in/out, slide in etc.
The URL is: http://dhtmlpopups.webarticles.org/
I hope you will find the information useful. Any feedback is welcomed
|
by: dd |
last post by:
I have a scenario where my popups are being blocked
by IE6+ and Firefox. The problem is that although the
popup is a direct result of the user clicking on the link
(meaning that they WANT the popup), when it comes
to opening it, I'm doing it via a JavaScript function and
by the time the popup is opened the browser doesn't
know it was as a result of that click. The link between
click and popup open attempt is broken. The reason
for this...
|
by: YotamElal |
last post by:
Hello,
I have a popup problem.
When a popup is opened, I want all other popups to close immediatly.
(except for its self and it's child popups)
Here is my code:
code:
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
<html>
|
by: Moe Sisko |
last post by:
Using : ASP.NET 2.0, IE 7.
This is a strange problem with popups not working in IE to remote sites,
even though popups are allowed in IE.
To reproduce, create web site with two pages, Default.aspx and
Default2.aspx. Note that the example is a deliberately simplified example -
just used to reproduce the problem, and not meant to be very useful.
Default.aspx - add button1. In codebehind, hookup click event :
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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: 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();...
|
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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |