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 374,006 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,871 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: 490 | Replies: 2
Reply
Join Date: Nov 2007
Posts: 163
Reputation: lydia21 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 5
lydia21 lydia21 is offline Offline
Junior Poster

Question please help in java script

  #1  
Mar 17th, 2008
hi
i have a html page when the user clicks a button in the parent window a popup window will be opened which will contain the login page.if the user is a valid user then i want the parent window to get refreshed so that i can show him the next page
thanks
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jan 2008
Location: Bangalore, India
Posts: 327
Reputation: DangerDev is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 31
DangerDev's Avatar
DangerDev DangerDev is offline Offline
Posting Whiz

Re: please help in java script

  #2  
Mar 17th, 2008
Hi,
using window.opener you can refer to the window which has created the popup window.

on a particular event use window.opener to refer parent, in popup window.
use
window.opener.location.reload()
to reload the document of parent !!!
A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila.
~Mitch Ratcliffe
Reply With Quote  
Join Date: Sep 2007
Posts: 61
Reputation: ExplainThat is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 6
ExplainThat ExplainThat is offline Offline
Junior Poster in Training

Re: please help in java script

  #3  
Mar 21st, 2008
You should consider redesiging so you don't use popup windows - chances are the user's browser will block it. Consider creating a popup effect using CSS + HTML instead.
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 10:38 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC