HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 1st, 2000, 05:46 PM
cornerman cornerman is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Posts: 1 cornerman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
when using the 'document.write' command within an innerHTML command, it clears the screen and opens a new document. I cannot figure another way to get around this in IE?

does anyone have suggestions?

Reply With Quote
  #2  
Old September 4th, 2000, 10:27 AM
kenowhere kenowhere is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Posts: 34 kenowhere User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Yes, this has happened to me a lot too. If you have data that changes a couple times on a page and you have to print this data, examine this example:
<img src="img1.gif" onClick="valueOfData">
<form name="theForm">
<input type="Text" name="field1">
</form>, to where function valueOfData is:
function valueOfData() {
document.theForm.field1.value=window.event.x;
}

window.event.x would be your changing value, say you have an image, (please check http://www.sitesuwant.com/exampleXY.html to clear this up), and when you click on it, the x and y coordinates are printed in the fields. If you use document.write(); it will reprint on another page. That's my advice. So, use the text fields for changing data instead of document.write().

Devin www.sitesuwant.com
sitesuwant@sitesuwant.com

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > document.write creates new document?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT