Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pop up window without the document info 1

Status
Not open for further replies.

mimi2

Technical User
Apr 2, 2002
407
CA
hi, i am using this javascript function to open a new window.
i still get the location and the name of my document when the window is opened.
is there any thing i should add ?
thanks

function newWindow(url, W,H) {
new = window.open(url, "_blank", "width=" + W + ",H=" + H + ",location=no,menubar=no,toolbar=no,directories=no,scrollbars=yes,status=no,resizable=no");}
 
I wrote all about it here:
faq215-2087

If you mean getting rid of the blue title bar at the top of the page, skip to the last section in the faq.

Rick if(($question=="has been bugging me"
AND $answer=="fixed the problem") OR $answer=="really good post"){
print("Star");
}else{
print("Thanks.");
}
 
thanks ritsmo,
what i want to do is display the documentation (word document) to the user whithout giving him the path to the file. with the "fullscreen" trick it works perfectly but the user can't close the document ! i need the little "x" on the right side to close the topic (hahaha)
thanks again.
 
You can also put this after opening the new window (assuming the new window is named new_win):

new_win.resizeTo(250,300);
new_win.moveTo(10,70);

Rick if(($question=="has been bugging me"
AND $answer=="fixed the problem") OR $answer=="really good post"){
print("Star");
}else{
print("Thanks.");
}
 
Thanks. the word document cannot be closed independently. that's a major problem for me.
the user should be able to close the document and continue to search in my apllication.
 
>>i need the little "x" on the right side to close the topic (hahaha)

You made it, right? If not, just put this in where you want it:

<button onClick=&quot;this.close();&quot;>&nbsp;&nbsp;&nbsp;X&nbsp;&nbsp;&nbsp;&nbsp;</button>


Rick if(($question==&quot;has been bugging me&quot;
AND $answer==&quot;fixed the problem&quot;) OR $answer==&quot;really good post&quot;){
print(&quot;Star&quot;);
}else{
print(&quot;Thanks.&quot;);
}
 
acctually, from a coldfusion document, i am opening my word document (<body onload=&quot;new_window()&quot;>). by clicking on my documentation hyperlink, my actual document opens. but i should be able to close it whenever i want to without quitting the application. there is no button on my word document, so i can't use the onclick method.
thanks for your time.
 
Assuming that the new window is named new_win, you can do this:

new_win.document.body.innerHTML+='<button onClick=&quot;this.close();&quot; style=&quot;position:absolute;right:0;top:0;&quot;> X </button>';


Rick if(($question==&quot;has been bugging me&quot;
AND $answer==&quot;fixed the problem&quot;) OR $answer==&quot;really good post&quot;){
print(&quot;Star&quot;);
}else{
print(&quot;Thanks.&quot;);
}
 
wow !! that was it !

this question is little bit harder (may be): when the mouse is on the document icon on the bottom of the screen, the complet url is displayed !! (example: is there a way to remove that too ?
thanks a lot.
 
You mean when you mouse over the button thing that windows displays? I don't understand what Icon you are talking about.

Rick if(($question==&quot;has been bugging me&quot;
AND $answer==&quot;fixed the problem&quot;) OR $answer==&quot;really good post&quot;){
print(&quot;Star&quot;);
}else{
print(&quot;Thanks.&quot;);
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top