473,320 Members | 1,845 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Window.Open / Window.Close question

For some reason, the below lines only work on select machines. All
machines are running IE6. IE SP's and OS's vary. When it doesn't
work, default.aspx (the page that this code is in) opens and closes.
That's all you see. TSReminder.aspx doesn't even open. I'm not sure
what's going on here.

Response.Write("<script
language=javascript>window.open("TSReminder.aspx", null,"height=340,width=640,status=no,toolbar=no,me nubar=no,location=no")</script>")

Response.Write("<script language=javascript>window.opener =
self</script>")
Response.Write("<script language=javascript>window.close()</script>")

Jul 11 '06 #1
11 4893
Dave wrote:
For some reason, the below lines only work on select machines. All
machines are running IE6. IE SP's and OS's vary. When it doesn't
work, default.aspx (the page that this code is in) opens and closes.
That's all you see. TSReminder.aspx doesn't even open. I'm not sure
what's going on here.

Response.Write("<script
language=javascript>window.open("TSReminder.aspx", null,"height=340,width=640,status=no,toolbar=no,me nubar=no,location=no")</script>")

Response.Write("<script language=javascript>window.opener =
self</script>")
Response.Write("<script language=javascript>window.close()</script>")
Your code will fit best if you do:

Put the lines below in a string:

---------------------------------
function OpenWin(){ var win =
window.open("TSReminder.aspx",null,"height=340,wid th=640,status=no,toolbar=no,menubar=no,location=no ");
window.opener = win;
self.close();
}

window.onload = OpenWin;
---------------------------------

In your PageLoad do
---------------------------------
Page.RegisterStartupScritps(Me.Type, [StringScript], True)
---------------------------------

I'm not sure if this kind of script is a good practice in developing
web, I thought that is a weird action to user

:open a browser wndow:shows another one:closes the opener window

Some situations like yours could easily be fired by this piece of mess
up with window pointers.
Jul 11 '06 #2
John,
Thanks for your quick reply, but now I'm even more lost than before.
This is how I interprit your instructions:

<head runat="server">
<title>Untitled Page</title>

<script language="C#" runat="server">

String scriptString = "function OpenWin() ";
scriptString += "{ ";
scriptString += "var win =
window.open('TSReminder.aspx',null,'height=340,wid th=640,status=no,toolbar=*no,menubar=no,location=n o');
";
scriptString += "window.opener = win; ";
scriptString += "self.close(); ";
scriptString += "} ";
scriptString += "window.onload = OpenWin; ";

</SCRIPT>

</head>

This is just full of red squiggly red lines.

You also say:
In your PageLoad do
---------------------------------
Page.RegisterStartupScritps(Me.Type, [StringScript], True)


I'm assuming that you're refering to add it to:

protected void Page_Load(object sender, EventArgs e)
{

}

I also checked Help about Page.RegisterStartupScrips and it says NOTE:
This method is now obsolete. I checked because it also had a red
squggly red line under it.

I'm really hoping that you give me a quick responce like yesterday.





John Prado wrote:
Dave wrote:
For some reason, the below lines only work on select machines. All
machines are running IE6. IE SP's and OS's vary. When it doesn't
work, default.aspx (the page that this code is in) opens and closes.
That's all you see. TSReminder.aspx doesn't even open. I'm not sure
what's going on here.

Response.Write("<script
language=javascript>window.open("TSReminder.aspx", null,"height=340,width=640,status=no,toolbar=no,me nubar=no,location=no")</script>")

Response.Write("<script language=javascript>window.opener =
self</script>")
Response.Write("<script language=javascript>window.close()</script>")

Your code will fit best if you do:

Put the lines below in a string:

---------------------------------
function OpenWin(){ var win =
window.open("TSReminder.aspx",null,"height=340,wid th=640,status=no,toolbar=no,menubar=no,location=no ");
window.opener = win;
self.close();
}

window.onload = OpenWin;
---------------------------------

In your PageLoad do
---------------------------------
Page.RegisterStartupScritps(Me.Type, [StringScript], True)
---------------------------------

I'm not sure if this kind of script is a good practice in developing
web, I thought that is a weird action to user

:open a browser wndow:shows another one:closes the opener window

Some situations like yours could easily be fired by this piece of mess
up with window pointers.
Jul 12 '06 #3
Have you checked for popup blockers ?

Dave wrote:
For some reason, the below lines only work on select machines. All
machines are running IE6. IE SP's and OS's vary. When it doesn't
work, default.aspx (the page that this code is in) opens and closes.
That's all you see. TSReminder.aspx doesn't even open. I'm not sure
what's going on here.

Response.Write("<script
language=javascript>window.open("TSReminder.aspx", null,"height=340,width=640,status=no,toolbar=no,me nubar=no,location=no")</script>")

Response.Write("<script language=javascript>window.opener =
self</script>")
Response.Write("<script language=javascript>window.close()</script>")
Jul 12 '06 #4
Yes. It works fine on my machine and I not only use the Windows Popup
blocker with SP2, but I also use another that comes with a 3rd party
appication. It doesn't work on various others machines.


Tasos Vogiatzoglou wrote:
Have you checked for popup blockers ?

Dave wrote:
For some reason, the below lines only work on select machines. All
machines are running IE6. IE SP's and OS's vary. When it doesn't
work, default.aspx (the page that this code is in) opens and closes.
That's all you see. TSReminder.aspx doesn't even open. I'm not sure
what's going on here.

Response.Write("<script
language=javascript>window.open("TSReminder.aspx", null,"height=340,width=640,status=no,toolbar=no,me nubar=no,location=no")</script>")

Response.Write("<script language=javascript>window.opener =
self</script>")
Response.Write("<script language=javascript>window.close()</script>")
Jul 12 '06 #5
In .NET 2.0:

protected void Page_Load(object sender, EventArgs e)
{
Page.ClientScript.RegisterStartupScritp(...)
}
Dave wrote:
John,
Thanks for your quick reply, but now I'm even more lost than before.
This is how I interprit your instructions:

<head runat="server">
<title>Untitled Page</title>

<script language="C#" runat="server">

String scriptString = "function OpenWin() ";
scriptString += "{ ";
scriptString += "var win =
window.open('TSReminder.aspx',null,'height=340,wid th=640,status=no,toolbar=*no,menubar=no,location=n o');
";
scriptString += "window.opener = win; ";
scriptString += "self.close(); ";
scriptString += "} ";
scriptString += "window.onload = OpenWin; ";

</SCRIPT>

</head>

This is just full of red squiggly red lines.

You also say:
>In your PageLoad do
---------------------------------
Page.RegisterStartupScritps(Me.Type, [StringScript], True)

I'm assuming that you're refering to add it to:

>

I also checked Help about Page.RegisterStartupScrips and it says NOTE:
This method is now obsolete. I checked because it also had a red
squggly red line under it.

I'm really hoping that you give me a quick responce like yesterday.





John Prado wrote:
>Dave wrote:
>>For some reason, the below lines only work on select machines. All
machines are running IE6. IE SP's and OS's vary. When it doesn't
work, default.aspx (the page that this code is in) opens and closes.
That's all you see. TSReminder.aspx doesn't even open. I'm not sure
what's going on here.

Response.Write("<script
language=javascript>window.open("TSReminder.aspx ",null,"height=340,width=640,status=no,toolbar=no, menubar=no,location=no")</script>")

Response.Write("<script language=javascript>window.opener =
self</script>")
Response.Write("<script language=javascript>window.close()</script>")
Your code will fit best if you do:

Put the lines below in a string:

---------------------------------
function OpenWin(){ var win =
window.open("TSReminder.aspx",null,"height=340,wi dth=640,status=no,toolbar=no,menubar=no,location=n o");
window.opener = win;
self.close();
}

window.onload = OpenWin;
---------------------------------

In your PageLoad do
---------------------------------
Page.RegisterStartupScritps(Me.Type, [StringScript], True)
---------------------------------

I'm not sure if this kind of script is a good practice in developing
web, I thought that is a weird action to user

:open a browser wndow:shows another one:closes the opener window

Some situations like yours could easily be fired by this piece of mess
up with window pointers.
Jul 12 '06 #6
Thanks Again John for a quick reply. Please keep in mind that I'm
using exactly what you're showing me. If something is in
Brackets...I'm putting Brackets in there as well.
This is what I have:
protected void Page_Load(object sender, EventArgs e)
{
Page.RegisterStartupScripts(Me.Type, [StringScript], True);

}

Below are the comments:

RegisterStartupScripts = (Blue line) - System.Web.UI.Page does not
contain a definition for 'RegisterStartupScripts'.
Me = (Blue Line) - The name 'ME' does not exist in the current context.
[StringScript] = (Redline) - ) expected
True = (Redline) - ; expected
On the HTML Page:

<head runat="server">
<title>Untitled Page</title>

Function OpenWin()
{
var
win=window.open("TSReminder.aspx",null,"height=340 ,width=640,status=no,toolbar=no,menubar=no,locatio n=no"
window.opener = win;
self.close();
}

window.Onload = OpenWin;
</head>




John Prado wrote:
In .NET 2.0:

protected void Page_Load(object sender, EventArgs e)
{
Page.ClientScript.RegisterStartupScritp(...)
}
Dave wrote:
John,
Thanks for your quick reply, but now I'm even more lost than before.
This is how I interprit your instructions:

<head runat="server">
<title>Untitled Page</title>

<script language="C#" runat="server">

String scriptString = "function OpenWin() ";
scriptString += "{ ";
scriptString += "var win =
window.open('TSReminder.aspx',null,'height=340,wid th=640,status=no,toolbar=*no,menubar=no,location=n o');
";
scriptString += "window.opener = win; ";
scriptString += "self.close(); ";
scriptString += "} ";
scriptString += "window.onload = OpenWin; ";

</SCRIPT>

</head>

This is just full of red squiggly red lines.

You also say:
In your PageLoad do
---------------------------------
Page.RegisterStartupScritps(Me.Type, [StringScript], True)


I'm assuming that you're refering to add it to:




I also checked Help about Page.RegisterStartupScrips and it says NOTE:
This method is now obsolete. I checked because it also had a red
squggly red line under it.

I'm really hoping that you give me a quick responce like yesterday.





John Prado wrote:
Dave wrote:
For some reason, the below lines only work on select machines. All
machines are running IE6. IE SP's and OS's vary. When it doesn't
work, default.aspx (the page that this code is in) opens and closes.
That's all you see. TSReminder.aspx doesn't even open. I'm not sure
what's going on here.

Response.Write("<script
language=javascript>window.open("TSReminder.aspx" ,null,"height=340,width=640,status=no,toolbar=no,m enubar=no,location=no")</script>")

Response.Write("<script language=javascript>window.opener =
self</script>")
Response.Write("<script language=javascript>window.close()</script>")

Your code will fit best if you do:

Put the lines below in a string:

---------------------------------
function OpenWin(){ var win =
window.open("TSReminder.aspx",null,"height=340,wid th=640,status=no,toolbar=no,menubar=no,location=no ");
window.opener = win;
self.close();
}

window.onload = OpenWin;
---------------------------------

In your PageLoad do
---------------------------------
Page.RegisterStartupScritps(Me.Type, [StringScript], True)
---------------------------------

I'm not sure if this kind of script is a good practice in developing
web, I thought that is a weird action to user

:open a browser wndow:shows another one:closes the opener window

Some situations like yours could easily be fired by this piece of mess
up with window pointers.
Jul 12 '06 #7
The correct call to RegisterStartupScript in .net 2.0 is:

Page.ClientScript.RegisterStartupScript(...)

Two things
1. I mistyped the end of the function, it has an "S" that not supose to
be at the end of the call.
2. Remove the brackets "[...]" from your call

Dude, take a look at C# sintax. Without know the basics you will suffer
a lot.

Good luck
Dave wrote:
Thanks Again John for a quick reply. Please keep in mind that I'm
using exactly what you're showing me. If something is in
Brackets...I'm putting Brackets in there as well.
This is what I have:
protected void Page_Load(object sender, EventArgs e)
{
Page.RegisterStartupScripts(Me.Type, [StringScript], True);

}

Below are the comments:

RegisterStartupScripts = (Blue line) - System.Web.UI.Page does not
contain a definition for 'RegisterStartupScripts'.
Me = (Blue Line) - The name 'ME' does not exist in the current context.
[StringScript] = (Redline) - ) expected
True = (Redline) - ; expected
On the HTML Page:

<head runat="server">
<title>Untitled Page</title>

Function OpenWin()
{
var
win=window.open("TSReminder.aspx",null,"height=340 ,width=640,status=no,toolbar=no,menubar=no,locatio n=no"
window.opener = win;
self.close();
}

window.Onload = OpenWin;
</head>




John Prado wrote:
>In .NET 2.0:

protected void Page_Load(object sender, EventArgs e)
{
Page.ClientScript.RegisterStartupScritp(...)
}
Dave wrote:
>>John,
Thanks for your quick reply, but now I'm even more lost than before.
This is how I interprit your instructions:

<head runat="server">
<title>Untitled Page</title>

<script language="C#" runat="server">

String scriptString = "function OpenWin() ";
scriptString += "{ ";
scriptString += "var win =
window.open('TSReminder.aspx',null,'height=340,w idth=640,status=no,toolbar=*no,menubar=no,location =no');
";
scriptString += "window.opener = win; ";
scriptString += "self.close(); ";
scriptString += "} ";
scriptString += "window.onload = OpenWin; ";

</SCRIPT>

</head>

This is just full of red squiggly red lines.

You also say:

In your PageLoad do
---------------------------------
Page.RegisterStartupScritps(Me.Type, [StringScript], True)
I'm assuming that you're refering to add it to:

>>>
I also checked Help about Page.RegisterStartupScrips and it says NOTE:
This method is now obsolete. I checked because it also had a red
squggly red line under it.

I'm really hoping that you give me a quick responce like yesterday.





John Prado wrote:
Dave wrote:
For some reason, the below lines only work on select machines. All
machines are running IE6. IE SP's and OS's vary. When it doesn't
work, default.aspx (the page that this code is in) opens and closes.
That's all you see. TSReminder.aspx doesn't even open. I'm not sure
what's going on here.
>
Response.Write("<script
language=javascript>window.open("TSReminder.as px",null,"height=340,width=640,status=no,toolbar=n o,menubar=no,location=no")</script>")
>
Response.Write("<script language=javascript>window.opener =
self</script>")
Response.Write("<script language=javascript>window.close()</script>")
>
Your code will fit best if you do:

Put the lines below in a string:

---------------------------------
function OpenWin(){ var win =
window.open("TSReminder.aspx",null,"height=340, width=640,status=no,toolbar=no,menubar=no,location =no");
window.opener = win;
self.close();
}

window.onload = OpenWin;
---------------------------------

In your PageLoad do
---------------------------------
Page.RegisterStartupScritps(Me.Type, [StringScript], True)
---------------------------------

I'm not sure if this kind of script is a good practice in developing
web, I thought that is a weird action to user

:open a browser wndow:shows another one:closes the opener window

Some situations like yours could easily be fired by this piece of mess
up with window pointers.
Jul 12 '06 #8
I'm suffering... :-(

John Prado wrote:
The correct call to RegisterStartupScript in .net 2.0 is:

Page.ClientScript.RegisterStartupScript(...)

Two things
1. I mistyped the end of the function, it has an "S" that not supose to
be at the end of the call.
2. Remove the brackets "[...]" from your call

Dude, take a look at C# sintax. Without know the basics you will suffer
a lot.

Good luck
Dave wrote:
Thanks Again John for a quick reply. Please keep in mind that I'm
using exactly what you're showing me. If something is in
Brackets...I'm putting Brackets in there as well.
This is what I have:
protected void Page_Load(object sender, EventArgs e)
{
Page.RegisterStartupScripts(Me.Type, [StringScript], True);

}

Below are the comments:

RegisterStartupScripts = (Blue line) - System.Web.UI.Page does not
contain a definition for 'RegisterStartupScripts'.
Me = (Blue Line) - The name 'ME' does not exist in the current context.
[StringScript] = (Redline) - ) expected
True = (Redline) - ; expected
On the HTML Page:

<head runat="server">
<title>Untitled Page</title>

Function OpenWin()
{
var
win=window.open("TSReminder.aspx",null,"height=340 ,width=640,status=no,toolbar=no,menubar=no,locatio n=no"
window.opener = win;
self.close();
}

window.Onload = OpenWin;
</head>




John Prado wrote:
In .NET 2.0:

protected void Page_Load(object sender, EventArgs e)
{
Page.ClientScript.RegisterStartupScritp(...)
}
Dave wrote:
John,
Thanks for your quick reply, but now I'm even more lost than before.
This is how I interprit your instructions:

<head runat="server">
<title>Untitled Page</title>

<script language="C#" runat="server">

String scriptString = "function OpenWin() ";
scriptString += "{ ";
scriptString += "var win =
window.open('TSReminder.aspx',null,'height=340,wi dth=640,status=no,toolbar=*no,menubar=no,location= no');
";
scriptString += "window.opener = win; ";
scriptString += "self.close(); ";
scriptString += "} ";
scriptString += "window.onload = OpenWin; ";

</SCRIPT>

</head>

This is just full of red squiggly red lines.

You also say:

In your PageLoad do
---------------------------------
Page.RegisterStartupScritps(Me.Type, [StringScript], True)
I'm assuming that you're refering to add it to:


I also checked Help about Page.RegisterStartupScrips and it says NOTE:
This method is now obsolete. I checked because it also had a red
squggly red line under it.

I'm really hoping that you give me a quick responce like yesterday.





John Prado wrote:
Dave wrote:
For some reason, the below lines only work on select machines. All
machines are running IE6. IE SP's and OS's vary. When it doesn't
work, default.aspx (the page that this code is in) opens and closes.
That's all you see. TSReminder.aspx doesn't even open. I'm not sure
what's going on here.

Response.Write("<script
language=javascript>window.open("TSReminder.asp x",null,"height=340,width=640,status=no,toolbar=no ,menubar=no,location=no")</script>")

Response.Write("<script language=javascript>window.opener =
self</script>")
Response.Write("<script language=javascript>window.close()</script>")

Your code will fit best if you do:

Put the lines below in a string:

---------------------------------
function OpenWin(){ var win =
window.open("TSReminder.aspx",null,"height=340,w idth=640,status=no,toolbar=no,menubar=no,location= no");
window.opener = win;
self.close();
}

window.onload = OpenWin;
---------------------------------

In your PageLoad do
---------------------------------
Page.RegisterStartupScritps(Me.Type, [StringScript], True)
---------------------------------

I'm not sure if this kind of script is a good practice in developing
web, I thought that is a weird action to user

:open a browser wndow:shows another one:closes the opener window

Some situations like yours could easily be fired by this piece of mess
up with window pointers.
Jul 12 '06 #9
I'm suffering... :-(

Thanks for your help all the same.


John Prado wrote:
The correct call to RegisterStartupScript in .net 2.0 is:

Page.ClientScript.RegisterStartupScript(...)

Two things
1. I mistyped the end of the function, it has an "S" that not supose to
be at the end of the call.
2. Remove the brackets "[...]" from your call

Dude, take a look at C# sintax. Without know the basics you will suffer
a lot.

Good luck
Dave wrote:
Thanks Again John for a quick reply. Please keep in mind that I'm
using exactly what you're showing me. If something is in
Brackets...I'm putting Brackets in there as well.
This is what I have:
protected void Page_Load(object sender, EventArgs e)
{
Page.RegisterStartupScripts(Me.Type, [StringScript], True);

}

Below are the comments:

RegisterStartupScripts = (Blue line) - System.Web.UI.Page does not
contain a definition for 'RegisterStartupScripts'.
Me = (Blue Line) - The name 'ME' does not exist in the current context.
[StringScript] = (Redline) - ) expected
True = (Redline) - ; expected
On the HTML Page:

<head runat="server">
<title>Untitled Page</title>

Function OpenWin()
{
var
win=window.open("TSReminder.aspx",null,"height=340 ,width=640,status=no,toolbar=no,menubar=no,locatio n=no"
window.opener = win;
self.close();
}

window.Onload = OpenWin;
</head>




John Prado wrote:
In .NET 2.0:

protected void Page_Load(object sender, EventArgs e)
{
Page.ClientScript.RegisterStartupScritp(...)
}
Dave wrote:
John,
Thanks for your quick reply, but now I'm even more lost than before.
This is how I interprit your instructions:

<head runat="server">
<title>Untitled Page</title>

<script language="C#" runat="server">

String scriptString = "function OpenWin() ";
scriptString += "{ ";
scriptString += "var win =
window.open('TSReminder.aspx',null,'height=340,wi dth=640,status=no,toolbar=*no,menubar=no,location= no');
";
scriptString += "window.opener = win; ";
scriptString += "self.close(); ";
scriptString += "} ";
scriptString += "window.onload = OpenWin; ";

</SCRIPT>

</head>

This is just full of red squiggly red lines.

You also say:

In your PageLoad do
---------------------------------
Page.RegisterStartupScritps(Me.Type, [StringScript], True)
I'm assuming that you're refering to add it to:


I also checked Help about Page.RegisterStartupScrips and it says NOTE:
This method is now obsolete. I checked because it also had a red
squggly red line under it.

I'm really hoping that you give me a quick responce like yesterday.





John Prado wrote:
Dave wrote:
For some reason, the below lines only work on select machines. All
machines are running IE6. IE SP's and OS's vary. When it doesn't
work, default.aspx (the page that this code is in) opens and closes.
That's all you see. TSReminder.aspx doesn't even open. I'm not sure
what's going on here.

Response.Write("<script
language=javascript>window.open("TSReminder.asp x",null,"height=340,width=640,status=no,toolbar=no ,menubar=no,location=no")</script>")

Response.Write("<script language=javascript>window.opener =
self</script>")
Response.Write("<script language=javascript>window.close()</script>")

Your code will fit best if you do:

Put the lines below in a string:

---------------------------------
function OpenWin(){ var win =
window.open("TSReminder.aspx",null,"height=340,w idth=640,status=no,toolbar=no,menubar=no,location= no");
window.opener = win;
self.close();
}

window.onload = OpenWin;
---------------------------------

In your PageLoad do
---------------------------------
Page.RegisterStartupScritps(Me.Type, [StringScript], True)
---------------------------------

I'm not sure if this kind of script is a good practice in developing
web, I thought that is a weird action to user

:open a browser wndow:shows another one:closes the opener window

Some situations like yours could easily be fired by this piece of mess
up with window pointers.
Jul 12 '06 #10
What are the security settings of the domain you try to access from the
other computers ? I mean, if the software/equipment is the same, it
must be a configuration issue.

I would check for security related stuff

Dave wrote:
Yes. It works fine on my machine and I not only use the Windows Popup
blocker with SP2, but I also use another that comes with a 3rd party
appication. It doesn't work on various others machines.


Tasos Vogiatzoglou wrote:
Have you checked for popup blockers ?

Dave wrote:
For some reason, the below lines only work on select machines. All
machines are running IE6. IE SP's and OS's vary. When it doesn't
work, default.aspx (the page that this code is in) opens and closes.
That's all you see. TSReminder.aspx doesn't even open. I'm not sure
what's going on here.
>
Response.Write("<script
language=javascript>window.open("TSReminder.aspx", null,"height=340,width=640,status=no,toolbar=no,me nubar=no,location=no")</script>")
>
Response.Write("<script language=javascript>window.opener =
self</script>")
Response.Write("<script language=javascript>window.close()</script>")
Jul 13 '06 #11
Maybe whether or not JAVA is able to run in IE? All this page is is a
reminder to fill out their Timesheet. The original that they use now
is a Windows Form. It's a pain when you're logging in to the Domain
from somewhere else in the Country/World because that thing has to be
dragged across the wire, so I decided to play with a IE popup. It
loads 10 times faster...when it works.

If it's a settings issue, then what would be a good suggestion so that
we don't have to worry about modifying 30k plus machines to ensure that
it works?

Tasos Vogiatzoglou wrote:
What are the security settings of the domain you try to access from the
other computers ? I mean, if the software/equipment is the same, it
must be a configuration issue.

I would check for security related stuff

Dave wrote:
Yes. It works fine on my machine and I not only use the Windows Popup
blocker with SP2, but I also use another that comes with a 3rd party
appication. It doesn't work on various others machines.


Tasos Vogiatzoglou wrote:
Have you checked for popup blockers ?
>
Dave wrote:
For some reason, the below lines only work on select machines. All
machines are running IE6. IE SP's and OS's vary. When it doesn't
work, default.aspx (the page that this code is in) opens and closes.
That's all you see. TSReminder.aspx doesn't even open. I'm not sure
what's going on here.

Response.Write("<script
language=javascript>window.open("TSReminder.aspx", null,"height=340,width=640,status=no,toolbar=no,me nubar=no,location=no")</script>")

Response.Write("<script language=javascript>window.opener =
self</script>")
Response.Write("<script language=javascript>window.close()</script>")
Jul 13 '06 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Irvin Amoraal | last post by:
Process: I have a form which uploads a file from client to server written in PHP. When the user presses the submit button, I use the "onSubmit" event to execute javascript to open a child window...
3
by: Steve | last post by:
Hi, I have a nice little script that works well displaying images on my website. It's a script where if you clik a thumbnail image a pop up window opens that contains a larger version of the same...
3
by: Asit | last post by:
<META HTTP-EQUIV="expires" content="0"> <META HTTP-EQUIV="pragma" content="no-cache"> <html> <head> <title>Fidelity NetBenefits</title> </head> <body BGCOLOR="#ffffff"> <script...
4
by: webdev | last post by:
Hi, I have an application built for the education market in which I open popup windows containing ASP scripts which when the user clicks the 'Update' button, the database is updated and the...
7
by: E Michael Brandt | last post by:
I have been lurking here for some time, and now would like to ask a question of you clever coders: My JustSo PictureWindow 3 Extension for Dreamweaver has stumbled in the face of the new Opera...
8
by: Dominic Tocci | last post by:
I'm searching for a way to use window.open on my web page to open a window in firefox that allows the sidebars to work (bookmarks, history, etc). When I use the following: var...
10
by: Shang Wenbin | last post by:
Hi, When I want to close the current window using window.close() in IE6.0, there will be a confirm box that: The web page you are viewing is trying to close the window. Do you want to close this...
14
by: Paul | last post by:
Hi I have 2 functions in java script, one opens a second window-this works, the other is supposed to close this second window, does not seem to be working. Just wondering if anyone had any ideas....
7
by: Toccoa | last post by:
After considerable googling - I mean searching with Google(r) - I could not find javascript on a button or <a href=... to close a window in the latest versions of IE and FireFox. There seemed...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.