User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 361,877 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,286 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 3705 | Replies: 6
Reply
Join Date: Jul 2005
Posts: 155
Reputation: aparnesh is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 7
aparnesh's Avatar
aparnesh aparnesh is offline Offline
Junior Poster

Question Can I hide a pop-Up window

  #1  
May 1st, 2007
I am developing an intranet application, in which, in some pages, when the user selects an option, I am using a pop-up window to retrieve the data and displaying it in the main page. The pop-up opens, fetches data, puts in main page and closes itself.

Since the user is not interacting with the pop-up, I would prefer it to be hidden. Can this be done ? I checked a Javascript book, which says the 'alwaysLowered' property can be used to send the pop-up behind other windows but this is a security feature and available only for signed scripts.

My Questions are:
1. Can the pop-up be hidden ?
2. What is a signed script ?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Sep 2006
Location: Canada
Posts: 55
Reputation: GliderPilot is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 2
GliderPilot's Avatar
GliderPilot GliderPilot is offline Offline
Junior Poster in Training

Re: Can I hide a pop-Up window

  #2  
May 1st, 2007
It depends on the way your creating the window. I'm sure there are many ways to do it. If I remeber correctly you can do it via this method:

 
var win = new PopupWindow();
 
win.showPopup();
 
win.setUrl("http://www.site.com");
 
win.hidePopup();
 

Hope this helps you.
Reply With Quote  
Join Date: Jul 2005
Posts: 155
Reputation: aparnesh is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 7
aparnesh's Avatar
aparnesh aparnesh is offline Offline
Junior Poster

Re: Can I hide a pop-Up window

  #3  
May 2nd, 2007
Sorry, it's not working. I am getting the error
"PopupWindow is undefined"

Here's the code (with what I was using earlier)
var newWindow ;
var v_Options;
var v_Bars;
v_Bars = 'directories=no, location=no, menubar=no, status=no,titlebar=no,toolbar=no';
v_Options = 'scrollbars=yes,resizable=no,Height=10,Width=10,left=100,top=100,visible=false,alwaysLowered=yes';
//newWindow = window.open("Popdata.htm",'PrintWin',v_Bars + ',' + v_Options);
newWindow = new PopUpWindow() ;
newWindow.showPopup();
newWindow.setURL("Popdata.htm");
newWindow.hidePopup();
Reply With Quote  
Join Date: Dec 2006
Posts: 17
Reputation: pojke is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
pojke pojke is offline Offline
Newbie Poster

Re: Can I hide a pop-Up window

  #4  
May 2nd, 2007
Use windows called popunder. Its used often in internet advertisements.
Here u have example:
http://javascriptkit.com/script/script2/popunder.shtml
Reply With Quote  
Join Date: Jan 2007
Posts: 2,354
Reputation: MidiMagic is on a distinguished road 
Rep Power: 6
Solved Threads: 89
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Posting Maven

Re: Can I hide a pop-Up window

  #5  
May 3rd, 2007
Actually, opening a hidden window is on the list of operations forbidden for security reasons.

But there is nothing to prevent you from putting it under something. It still shows on the taskbar.
Daylight-saving time uses more gasoline
Reply With Quote  
Join Date: Jul 2005
Posts: 155
Reputation: aparnesh is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 7
aparnesh's Avatar
aparnesh aparnesh is offline Offline
Junior Poster

Re: Can I hide a pop-Up window

  #6  
May 3rd, 2007
"Putting it under something" = Putting it behind another window ? That's fine with me. But how do I do that ? By setting the z-order of the window ? If it shows in the taskbar, it's acceptable.
Reply With Quote  
Join Date: Jan 2007
Posts: 2,354
Reputation: MidiMagic is on a distinguished road 
Rep Power: 6
Solved Threads: 89
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Posting Maven

Re: Can I hide a pop-Up window

  #7  
May 4th, 2007
Just drop something else on top of it real fast, or send the focus to the page under it.
Daylight-saving time uses more gasoline
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JavaScript / DHTML / AJAX Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 7:03 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC