Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


window.open? I dunno

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,3318
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> window.open? I dunno
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 window.open? I dunno - 6/9/2005 1:58:13 PM   
  JKW2068

 

Posts: 71
Score: 0
Joined: 4/14/2005
From:
Status: offline
What I'm trying to accomplish is this, I want to clear all the existing contents on a page and write new data to it. I know Window.open will open a new page but I'd like to keep the existing one. Any ideas? Thanks
 
 
Post #: 1
 
 Re: window.open? I dunno - 6/9/2005 2:42:57 PM   
  TNO


Posts: 1072
Score: 10
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
Use the document.write method

(in reply to JKW2068)
 
 
Post #: 2
 
 Re: window.open? I dunno - 6/10/2005 2:55:50 AM   
  JKW2068

 

Posts: 71
Score: 0
Joined: 4/14/2005
From:
Status: offline
Hey TNO, by using document.wite, it just appends data to the page. How do I initially clear the page of all exisitng data. i.e Do the equiv of "cls" for Dos. Here, take a look at this.



      

(in reply to JKW2068)
 
 
Post #: 3
 
 Re: window.open? I dunno - 6/10/2005 8:15:48 AM   
  esnmb

 

Posts: 448
Score: 0
Joined: 1/11/2005
From: USA
Status: offline
Ok, so how would I write data to the screen without clearing the whole page??

(in reply to JKW2068)
 
 
Post #: 4
 
 Re: window.open? I dunno - 6/10/2005 8:48:25 AM   
  JKW2068

 

Posts: 71
Score: 0
Joined: 4/14/2005
From:
Status: offline
quote:
Originally posted by esnmb

Ok, so how would I write data to the screen without clearing the whole page??




The example I provided above will not clear the page. It will simply add "hello" to the body.

(in reply to JKW2068)
 
 
Post #: 5
 
 Re: window.open? I dunno - 6/10/2005 5:16:46 PM   
  Snipah


Posts: 1343
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
Use DIV tags and ABSOLUTE positioning (overlap) :: tadaa ! =)

(in reply to JKW2068)
 
 
Post #: 6
 
 Re: window.open? I dunno - 6/11/2005 9:49:21 AM   
  JKW2068

 

Posts: 71
Score: 0
Joined: 4/14/2005
From:
Status: offline
Snipah, perhaps you have a sample? Thanks

(in reply to JKW2068)
 
 
Post #: 7
 
 Re: window.open? I dunno - 6/11/2005 5:08:25 PM   
  TNO


Posts: 1072
Score: 10
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
If you use document write in the <BODY> of a webpage, data will appear in that location. Whereas if you use it in the <HEAD> tag it will replace the entire page.

<body>
<script>
document.write "Hola Mundo!";
</script>
</body>

<head>
<script>
document.write "Hola Mundo!";
</script>
</head>

(in reply to JKW2068)
 
 
Post #: 8
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> window.open? I dunno Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts