Click here to Skip to main content
15,922,894 members
Home / Discussions / Web Development
   

Web Development

 
QuestionPERL: How come I cant print out Unicode characters? Pin
lnong31-Jul-03 13:00
lnong31-Jul-03 13:00 
GeneralMSDE PROBLEM Pin
eggie531-Jul-03 11:03
eggie531-Jul-03 11:03 
GeneralRe: MSDE PROBLEM Pin
Paul Ingles31-Jul-03 23:18
Paul Ingles31-Jul-03 23:18 
GeneralRe: MSDE PROBLEM Pin
eggie51-Aug-03 15:17
eggie51-Aug-03 15:17 
QuestionCan I download IIS5.0? Pin
Anonymous31-Jul-03 10:35
Anonymous31-Jul-03 10:35 
AnswerRe: Can I download IIS5.0? Pin
Roger Wright31-Jul-03 11:07
professionalRoger Wright31-Jul-03 11:07 
AnswerRe: Can I download IIS5.0? Pin
Vasudevan Deepak Kumar4-Aug-03 23:15
Vasudevan Deepak Kumar4-Aug-03 23:15 
GeneralRedirecting main parent window with JavaScript Pin
Paul Ingles31-Jul-03 6:23
Paul Ingles31-Jul-03 6:23 
I'm trying to get some JavaScript so that a number of pop-ups can figure out the parent that spawned them all, close themselves and re-direct the main parent.

It works as I want (if it's coming from a pop-up then it'll spawn a new window), but, if I click to show the first pop-up, then close the main parent window, and continue through to the page that executes the below code, it throws up an error:

function findWindow()
{
	var currentWnd;
	currentWnd = self;

	while (currentWnd.opener != null  && !currentWnd.opener.closed)
	{
		var oldWnd = currentWnd;
		currentWnd = currentWnd.opener;
		oldWnd.close();
		
	}

	if (!WindowIsPopup(currentWnd))
	{
		currentWnd.document.location.href='http://www.microsoft.com';
	} else {
		// It's a pop-up, so close it and open a new page altogether.
		open('http://www.theregister.co.uk');
		currentWnd.close();
	}
}


Basically, I want to be able to do a check to find out whether I've reached the main parent window, and if it's not open, spawn a new one etc.

If anyone has any suggestions, or has done this kind of thing before I'd appreciate their thoughts.

Thanks,

--
Paul
"Put the key of despair into the lock of apathy. Turn the knob of mediocrity slowly and open the gates of despondency - welcome to a day in the average office."
- David Brent, from "The Office"

MS Messenger: paul@oobaloo.co.uk
Download my PGP public key

Generalopening new page in same window Pin
haritadala30-Jul-03 14:21
haritadala30-Jul-03 14:21 
GeneralRe: opening new page in same window Pin
Not Active30-Jul-03 14:35
mentorNot Active30-Jul-03 14:35 
GeneralRe: opening new page in same window Pin
Bjoern Graf30-Jul-03 18:56
Bjoern Graf30-Jul-03 18:56 
QuestionWhat other server besides IIS can run .NET Web applications and services? Pin
ElizabethC30-Jul-03 11:52
ElizabethC30-Jul-03 11:52 
AnswerRe: What other server besides IIS can run .NET Web applications and services? Pin
Vasudevan Deepak Kumar4-Aug-03 23:21
Vasudevan Deepak Kumar4-Aug-03 23:21 
GeneralDeployment Question on C#, ASP.NET Web Application Pin
ElizabethC30-Jul-03 11:04
ElizabethC30-Jul-03 11:04 
GeneralRe: Deployment Question on C#, ASP.NET Web Application Pin
Ian Darling30-Jul-03 11:30
Ian Darling30-Jul-03 11:30 
GeneralRe: Deployment Question on C#, ASP.NET Web Application Pin
ElizabethC30-Jul-03 11:38
ElizabethC30-Jul-03 11:38 
GeneralRe: Deployment Question on C#, ASP.NET Web Application Pin
Ian Darling30-Jul-03 13:09
Ian Darling30-Jul-03 13:09 
GeneralRe: Deployment Question on C#, ASP.NET Web Application Pin
ElizabethC30-Jul-03 13:25
ElizabethC30-Jul-03 13:25 
GeneralRe: Deployment Question on C#, ASP.NET Web Application Pin
Ian Darling30-Jul-03 13:36
Ian Darling30-Jul-03 13:36 
GeneralRe: Deployment Question on C#, ASP.NET Web Application Pin
Ian Darling30-Jul-03 13:42
Ian Darling30-Jul-03 13:42 
GeneralRe: Deployment Question on C#, ASP.NET Web Application Pin
ElizabethC30-Jul-03 14:10
ElizabethC30-Jul-03 14:10 
GeneralRe: Deployment Question on C#, ASP.NET Web Application Pin
Ian Darling30-Jul-03 14:14
Ian Darling30-Jul-03 14:14 
GeneralRe: Deployment Question on C#, ASP.NET Web Application Pin
DFU2318-Aug-03 6:33
DFU2318-Aug-03 6:33 
GeneralTable borders in MSHTML... Pin
theJazzyBrain30-Jul-03 6:36
theJazzyBrain30-Jul-03 6:36 
GeneralRe: Table borders in MSHTML... Pin
Ian Darling30-Jul-03 11:25
Ian Darling30-Jul-03 11:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.