473,396 Members | 1,879 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,396 software developers and data experts.

loading javascript


I am loading a javascript function from my asp.net app.
This function loads a string passed to it in a new window.

I register the function to activate on click of an asp
linkbutton. Now when ever I click the link button the
window pops up with the string passed to it but it gets
minimised automatically.

Even using win.focus() does'nt seem to stop it from
minimising. How can I stop this from happening

Regards,

Terry W
Nov 18 '05 #1
8 1658
Hi Terry,

Could you post the javascript function you are using to launch the window.
Thanks. Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight

"Terry" <an*******@discussions.microsoft.com> wrote in message
news:44****************************@phx.gbl...

I am loading a javascript function from my asp.net app.
This function loads a string passed to it in a new window.

I register the function to activate on click of an asp
linkbutton. Now when ever I click the link button the
window pops up with the string passed to it but it gets
minimised automatically.

Even using win.focus() does'nt seem to stop it from
minimising. How can I stop this from happening

Regards,

Terry W

Nov 18 '05 #2

function showPopup()
{
/*------------var win;
if(typeof(win) != "undefined" && win.closed == false)
{
win.close();
} ------------ */
var winTop = (screen.height/2) - 125;
var winLeft = (screen.width/2) - 125;

var winFeatures = "width=260,height=240,";

winFeatures = winFeatures + "left = "+winLeft+",";

winFeatures = winFeatures +"top = "+winTop;

winFeatures = winFeatures +"location=no, menubar=no,
status=no,";
winFeatures = winFeatures +"toolbar=no,
scrollbars=no,resizable=no,";
winFeatures = winFeatures +"copyHistory=no";

win = window.open("PopupForm.aspx?note=This is a
test&load=true","My Test",winFeatures);

win.focus();
}
-----Original Message-----
Hi Terry,

Could you post the javascript function you are using to launch the window.Thanks. Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight

"Terry" <an*******@discussions.microsoft.com> wrote in messagenews:44****************************@phx.gbl...

I am loading a javascript function from my asp.net app.
This function loads a string passed to it in a new window.
I register the function to activate on click of an asp
linkbutton. Now when ever I click the link button the
window pops up with the string passed to it but it gets
minimised automatically.

Even using win.focus() does'nt seem to stop it from
minimising. How can I stop this from happening

Regards,

Terry W

.

Nov 18 '05 #3
Hi Terry,

I changed it a little bit and this version works for me. Basically I used
';' semicolons between the winFeatures arguements instead of ',' commas.
Also in the window.open() function I took out the space between "My Test",
you can't have a space in that arguement. The new code is below. Good
luck! Ken.

function showPopup()
{
/*------------var win;
if(typeof(win) != "undefined" && win.closed == false)
{
win.close();
} ------------ */
debugger;
var winTop = (screen.height/2) - 125;
var winLeft = (screen.width/2) - 125;

var winFeatures = "width=260;height=240;";

winFeatures = winFeatures + "left="+winLeft+";";

winFeatures = winFeatures +"top="+winTop;

winFeatures = winFeatures +";location=no;menubar=no;status=no;";
winFeatures = winFeatures +"toolbar=no;scrollbars=no;resizable=no;";
winFeatures = winFeatures +"copyHistory=no";

win = window.open("QuoteHistory.aspx?note=This is a
test&load=true","MyTest",winFeatures);

win.focus();
}

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight

"Terry" <an*******@discussions.microsoft.com> wrote in message
news:45****************************@phx.gbl...

function showPopup()
{
/*------------var win;
if(typeof(win) != "undefined" && win.closed == false)
{
win.close();
} ------------ */
var winTop = (screen.height/2) - 125;
var winLeft = (screen.width/2) - 125;

var winFeatures = "width=260,height=240,";

winFeatures = winFeatures + "left = "+winLeft+",";

winFeatures = winFeatures +"top = "+winTop;

winFeatures = winFeatures +"location=no, menubar=no,
status=no,";
winFeatures = winFeatures +"toolbar=no,
scrollbars=no,resizable=no,";
winFeatures = winFeatures +"copyHistory=no";

win = window.open("PopupForm.aspx?note=This is a
test&load=true","My Test",winFeatures);

win.focus();
}
-----Original Message-----
Hi Terry,

Could you post the javascript function you are using to

launch the window.
Thanks. Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight

"Terry" <an*******@discussions.microsoft.com> wrote in

message
news:44****************************@phx.gbl...

I am loading a javascript function from my asp.net app.
This function loads a string passed to it in a new window.
I register the function to activate on click of an asp
linkbutton. Now when ever I click the link button the
window pops up with the string passed to it but it gets
minimised automatically.

Even using win.focus() does'nt seem to stop it from
minimising. How can I stop this from happening

Regards,

Terry W

.

Nov 18 '05 #4

Thanks for that ken

I have tried that but it still gets minimised and also
now the height of the window is equal to screen height

I have replaced the comma's but as I am writing this
function in ASP.NEt i am using \" for quote's

"winFeatures = winFeatures + \"left = \"+winLeft+\";\";

can I use ' instead of \"

what is going wrong here

thanks for your help

Best Regards
-----Original Message-----
Hi Terry,

I changed it a little bit and this version works for me. Basically I used';' semicolons between the winFeatures arguements instead of ',' commas.Also in the window.open() function I took out the space between "My Test",you can't have a space in that arguement. The new code is below. Goodluck! Ken.

function showPopup()
{
/*------------var win;
if(typeof(win) != "undefined" && win.closed == false)
{
win.close();
} ------------ */
debugger;
var winTop = (screen.height/2) - 125;
var winLeft = (screen.width/2) - 125;

var winFeatures = "width=260;height=240;";

winFeatures = winFeatures + "left="+winLeft+";";

winFeatures = winFeatures +"top="+winTop;

winFeatures = winFeatures +";location=no;menubar=no;status=no;"; winFeatures = winFeatures +"toolbar=no;scrollbars=no;resizable=no;"; winFeatures = winFeatures +"copyHistory=no";

win = window.open("QuoteHistory.aspx?note=This is a
test&load=true","MyTest",winFeatures);

win.focus();
}

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight

"Terry" <an*******@discussions.microsoft.com> wrote in messagenews:45****************************@phx.gbl...

function showPopup()
{
/*------------var win;
if(typeof(win) != "undefined" && win.closed == false)
{
win.close();
} ------------ */
var winTop = (screen.height/2) - 125;
var winLeft = (screen.width/2) - 125;

var winFeatures = "width=260,height=240,";

winFeatures = winFeatures + "left = "+winLeft+",";

winFeatures = winFeatures +"top = "+winTop;

winFeatures = winFeatures +"location=no, menubar=no,
status=no,";
winFeatures = winFeatures +"toolbar=no,
scrollbars=no,resizable=no,";
winFeatures = winFeatures +"copyHistory=no";

win = window.open("PopupForm.aspx?note=This is a
test&load=true","My Test",winFeatures);

win.focus();
}
>-----Original Message-----
>Hi Terry,
>
>Could you post the javascript function you are using to
launch the window.
>Thanks. Ken.
>
>--
>Ken Dopierala Jr.
>For great ASP.Net web hosting try:
>http://www.webhost4life.com/default.asp?

refid=Spinlight >
>"Terry" <an*******@discussions.microsoft.com> wrote in

message
>news:44****************************@phx.gbl...
>>
>> I am loading a javascript function from my asp.net app. >> This function loads a string passed to it in a new

window.
>>
>> I register the function to activate on click of an asp >> linkbutton. Now when ever I click the link button the >> window pops up with the string passed to it but it gets >> minimised automatically.
>>
>> Even using win.focus() does'nt seem to stop it from
>> minimising. How can I stop this from happening
>>
>> Regards,
>>
>> Terry W
>
>
>.
>

.

Nov 18 '05 #5
Hi Terry,

I don't know what I was thinking. "," are fine, switch back to that. With
the commas in your script works perfect on my system, and the space taken
out of "MyTest". Windows 2000, IE 6, latest patches applied. Have you
tried this from another computer? You might have some 3rd party popup stuff
going on, or maybe XP does something different and minimizes popups by
default. You might want to check the advanced settings of whatever browser
you are using to see if there is a setting checked that automatically
minimizes popups. Your script is fine though. Good luck! Ken.

"Terry" <an*******@discussions.microsoft.com> wrote in message
news:18****************************@phx.gbl...

Thanks for that ken

I have tried that but it still gets minimised and also
now the height of the window is equal to screen height

I have replaced the comma's but as I am writing this
function in ASP.NEt i am using \" for quote's

"winFeatures = winFeatures + \"left = \"+winLeft+\";\";

can I use ' instead of \"

what is going wrong here

thanks for your help

Best Regards
-----Original Message-----
Hi Terry,

I changed it a little bit and this version works for

me. Basically I used
';' semicolons between the winFeatures arguements

instead of ',' commas.
Also in the window.open() function I took out the space

between "My Test",
you can't have a space in that arguement. The new code

is below. Good
luck! Ken.

function showPopup()
{
/*------------var win;
if(typeof(win) != "undefined" && win.closed == false)
{
win.close();
} ------------ */
debugger;
var winTop = (screen.height/2) - 125;
var winLeft = (screen.width/2) - 125;

var winFeatures = "width=260;height=240;";

winFeatures = winFeatures + "left="+winLeft+";";

winFeatures = winFeatures +"top="+winTop;

winFeatures = winFeatures

+";location=no;menubar=no;status=no;";
winFeatures = winFeatures

+"toolbar=no;scrollbars=no;resizable=no;";
winFeatures = winFeatures +"copyHistory=no";

win = window.open("QuoteHistory.aspx?note=This is a
test&load=true","MyTest",winFeatures);

win.focus();
}

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight

"Terry" <an*******@discussions.microsoft.com> wrote in

message
news:45****************************@phx.gbl...

function showPopup()
{
/*------------var win;
if(typeof(win) != "undefined" && win.closed == false)
{
win.close();
} ------------ */
var winTop = (screen.height/2) - 125;
var winLeft = (screen.width/2) - 125;

var winFeatures = "width=260,height=240,";

winFeatures = winFeatures + "left = "+winLeft+",";

winFeatures = winFeatures +"top = "+winTop;

winFeatures = winFeatures +"location=no, menubar=no,
status=no,";
winFeatures = winFeatures +"toolbar=no,
scrollbars=no,resizable=no,";
winFeatures = winFeatures +"copyHistory=no";

win = window.open("PopupForm.aspx?note=This is a
test&load=true","My Test",winFeatures);

win.focus();
}

>-----Original Message-----
>Hi Terry,
>
>Could you post the javascript function you are using to launch the window.
>Thanks. Ken.
>
>--
>Ken Dopierala Jr.
>For great ASP.Net web hosting try:
>http://www.webhost4life.com/default.asp? refid=Spinlight >
>"Terry" <an*******@discussions.microsoft.com> wrote in
message
>news:44****************************@phx.gbl...
>>
>> I am loading a javascript function from my asp.net app. >> This function loads a string passed to it in a new
window.
>>
>> I register the function to activate on click of an asp >> linkbutton. Now when ever I click the link button the >> window pops up with the string passed to it but it gets >> minimised automatically.
>>
>> Even using win.focus() does'nt seem to stop it from
>> minimising. How can I stop this from happening
>>
>> Regards,
>>
>> Terry W
>
>
>.
>

.

Nov 18 '05 #6
Ken,

I have got a similiar script which opens a popup in
a .js file and it opens and stays centered on the screen.

It is just this window which I register as a clientside
script from within my ASP application that minimises

Do you think it is something to do with a post back..

-----Original Message-----
Hi Terry,

I don't know what I was thinking. "," are fine, switch back to that. Withthe commas in your script works perfect on my system, and the space takenout of "MyTest". Windows 2000, IE 6, latest patches applied. Have youtried this from another computer? You might have some 3rd party popup stuffgoing on, or maybe XP does something different and minimizes popups bydefault. You might want to check the advanced settings of whatever browseryou are using to see if there is a setting checked that automaticallyminimizes popups. Your script is fine though. Good luck! Ken.
"Terry" <an*******@discussions.microsoft.com> wrote in messagenews:18****************************@phx.gbl...

Thanks for that ken

I have tried that but it still gets minimised and also
now the height of the window is equal to screen height

I have replaced the comma's but as I am writing this
function in ASP.NEt i am using \" for quote's

"winFeatures = winFeatures + \"left = \"+winLeft+\";\";

can I use ' instead of \"

what is going wrong here

thanks for your help

Best Regards
>-----Original Message-----
>Hi Terry,
>
>I changed it a little bit and this version works for

me. Basically I used
>';' semicolons between the winFeatures arguements

instead of ',' commas.
>Also in the window.open() function I took out the space
between "My Test",
>you can't have a space in that arguement. The new
code is below. Good
>luck! Ken.
>
>function showPopup()
>{
> /*------------var win;
>if(typeof(win) != "undefined" && win.closed == false)
>{
> win.close();
>} ------------ */
>debugger;
> var winTop = (screen.height/2) - 125;
> var winLeft = (screen.width/2) - 125;
>
> var winFeatures = "width=260;height=240;";
>
> winFeatures = winFeatures + "left="+winLeft+";";
>
> winFeatures = winFeatures +"top="+winTop;
>
> winFeatures = winFeatures

+";location=no;menubar=no;status=no;";
> winFeatures = winFeatures

+"toolbar=no;scrollbars=no;resizable=no;";
> winFeatures = winFeatures +"copyHistory=no";
>
> win = window.open("QuoteHistory.aspx?note=This is a
>test&load=true","MyTest",winFeatures);
>
> win.focus();
> }
>
>--
>Ken Dopierala Jr.
>For great ASP.Net web hosting try:
>http://www.webhost4life.com/default.asp?
refid=Spinlight >
>"Terry" <an*******@discussions.microsoft.com> wrote in

message
>news:45****************************@phx.gbl...
>>
>> function showPopup()
>> {
>> /*------------var win;
>> if(typeof(win) != "undefined" && win.closed == false) >> {
>> win.close();
>> } ------------ */
>> var winTop = (screen.height/2) - 125;
>> var winLeft = (screen.width/2) - 125;
>>
>> var winFeatures = "width=260,height=240,";
>>
>> winFeatures = winFeatures + "left = "+winLeft+",";
>>
>> winFeatures = winFeatures +"top = "+winTop;
>>
>> winFeatures = winFeatures +"location=no, menubar=no, >> status=no,";
>> winFeatures = winFeatures +"toolbar=no,
>> scrollbars=no,resizable=no,";
>> winFeatures = winFeatures +"copyHistory=no";
>>
>> win = window.open("PopupForm.aspx?note=This is a
>> test&load=true","My Test",winFeatures);
>>
>> win.focus();
>> }
>>
>> >-----Original Message-----
>> >Hi Terry,
>> >
>> >Could you post the javascript function you are using to
>> launch the window.
>> >Thanks. Ken.
>> >
>> >--
>> >Ken Dopierala Jr.
>> >For great ASP.Net web hosting try:
>> >http://www.webhost4life.com/default.asp?

refid=Spinlight
>> >
>> >"Terry" <an*******@discussions.microsoft.com>
wrote in >> message
>> >news:44****************************@phx.gbl...
>> >>
>> >> I am loading a javascript function from my asp.net app.
>> >> This function loads a string passed to it in a
new >> window.
>> >>
>> >> I register the function to activate on click of an asp
>> >> linkbutton. Now when ever I click the link button

the
>> >> window pops up with the string passed to it but
it gets
>> >> minimised automatically.
>> >>
>> >> Even using win.focus() does'nt seem to stop it

from >> >> minimising. How can I stop this from happening
>> >>
>> >> Regards,
>> >>
>> >> Terry W
>> >
>> >
>> >.
>> >
>
>
>.
>

.

Nov 18 '05 #7
Hi Terry,

I don't think it has anything to do with a post back. Do you have any
javascript running in the popup window you load? Or any javascript from the
opener window that runs after you call your showPopup() function? If your
main window does more javascript stuff after doing the popup then maybe it
is taking back focus and minimizing your popup. Maybe try putting a test
button on your page and add this attribute, that's how I ran your function:

Attributes.Add("onclick", "showPopup(); return false;")

If it doesn't fix the problem then the only thing I can think of is
javascript is running in the new popup that is doing something. I don't
think the problem can occur from a problem on the server. Good luck! Ken.

"Terry" <an*******@discussions.microsoft.com> wrote in message
news:48****************************@phx.gbl...
Ken,

I have got a similiar script which opens a popup in
a .js file and it opens and stays centered on the screen.

It is just this window which I register as a clientside
script from within my ASP application that minimises

Do you think it is something to do with a post back..

-----Original Message-----
Hi Terry,

I don't know what I was thinking. "," are fine, switch

back to that. With
the commas in your script works perfect on my system,

and the space taken
out of "MyTest". Windows 2000, IE 6, latest patches

applied. Have you
tried this from another computer? You might have some

3rd party popup stuff
going on, or maybe XP does something different and

minimizes popups by
default. You might want to check the advanced settings

of whatever browser
you are using to see if there is a setting checked that

automatically
minimizes popups. Your script is fine though. Good

luck! Ken.

"Terry" <an*******@discussions.microsoft.com> wrote in

message
news:18****************************@phx.gbl...

Thanks for that ken

I have tried that but it still gets minimised and also
now the height of the window is equal to screen height

I have replaced the comma's but as I am writing this
function in ASP.NEt i am using \" for quote's

"winFeatures = winFeatures + \"left = \"+winLeft+\";\";

can I use ' instead of \"

what is going wrong here

thanks for your help

Best Regards

>-----Original Message-----
>Hi Terry,
>
>I changed it a little bit and this version works for
me. Basically I used
>';' semicolons between the winFeatures arguements
instead of ',' commas.
>Also in the window.open() function I took out the space between "My Test",
>you can't have a space in that arguement. The new code is below. Good
>luck! Ken.
>
>function showPopup()
>{
> /*------------var win;
>if(typeof(win) != "undefined" && win.closed == false)
>{
> win.close();
>} ------------ */
>debugger;
> var winTop = (screen.height/2) - 125;
> var winLeft = (screen.width/2) - 125;
>
> var winFeatures = "width=260;height=240;";
>
> winFeatures = winFeatures + "left="+winLeft+";";
>
> winFeatures = winFeatures +"top="+winTop;
>
> winFeatures = winFeatures
+";location=no;menubar=no;status=no;";
> winFeatures = winFeatures
+"toolbar=no;scrollbars=no;resizable=no;";
> winFeatures = winFeatures +"copyHistory=no";
>
> win = window.open("QuoteHistory.aspx?note=This is a
>test&load=true","MyTest",winFeatures);
>
> win.focus();
> }
>
>--
>Ken Dopierala Jr.
>For great ASP.Net web hosting try:
>http://www.webhost4life.com/default.asp? refid=Spinlight >
>"Terry" <an*******@discussions.microsoft.com> wrote in
message
>news:45****************************@phx.gbl...
>>
>> function showPopup()
>> {
>> /*------------var win;
>> if(typeof(win) != "undefined" && win.closed == false) >> {
>> win.close();
>> } ------------ */
>> var winTop = (screen.height/2) - 125;
>> var winLeft = (screen.width/2) - 125;
>>
>> var winFeatures = "width=260,height=240,";
>>
>> winFeatures = winFeatures + "left = "+winLeft+",";
>>
>> winFeatures = winFeatures +"top = "+winTop;
>>
>> winFeatures = winFeatures +"location=no, menubar=no, >> status=no,";
>> winFeatures = winFeatures +"toolbar=no,
>> scrollbars=no,resizable=no,";
>> winFeatures = winFeatures +"copyHistory=no";
>>
>> win = window.open("PopupForm.aspx?note=This is a
>> test&load=true","My Test",winFeatures);
>>
>> win.focus();
>> }
>>
>> >-----Original Message-----
>> >Hi Terry,
>> >
>> >Could you post the javascript function you are using to
>> launch the window.
>> >Thanks. Ken.
>> >
>> >--
>> >Ken Dopierala Jr.
>> >For great ASP.Net web hosting try:
>> >http://www.webhost4life.com/default.asp?
refid=Spinlight
>> >
>> >"Terry" <an*******@discussions.microsoft.com> wrote in >> message
>> >news:44****************************@phx.gbl...
>> >>
>> >> I am loading a javascript function from my asp.net app.
>> >> This function loads a string passed to it in a new >> window.
>> >>
>> >> I register the function to activate on click of an asp
>> >> linkbutton. Now when ever I click the link button
the
>> >> window pops up with the string passed to it but it gets
>> >> minimised automatically.
>> >>
>> >> Even using win.focus() does'nt seem to stop it from >> >> minimising. How can I stop this from happening
>> >>
>> >> Regards,
>> >>
>> >> Terry W
>> >
>> >
>> >.
>> >
>
>
>.
>

.

Nov 18 '05 #8
Hi Terry,

By any chance do you have SmartNavigation set to True? Ken.

"Ken Dopierala Jr." <kd*********@wi.rr.com> wrote in message
news:u3**************@tk2msftngp13.phx.gbl...
Hi Terry,

I don't think it has anything to do with a post back. Do you have any
javascript running in the popup window you load? Or any javascript from the opener window that runs after you call your showPopup() function? If your
main window does more javascript stuff after doing the popup then maybe it
is taking back focus and minimizing your popup. Maybe try putting a test
button on your page and add this attribute, that's how I ran your function:
Attributes.Add("onclick", "showPopup(); return false;")

If it doesn't fix the problem then the only thing I can think of is
javascript is running in the new popup that is doing something. I don't
think the problem can occur from a problem on the server. Good luck! Ken.
"Terry" <an*******@discussions.microsoft.com> wrote in message
news:48****************************@phx.gbl...
Ken,

I have got a similiar script which opens a popup in
a .js file and it opens and stays centered on the screen.

It is just this window which I register as a clientside
script from within my ASP application that minimises

Do you think it is something to do with a post back..

-----Original Message-----
Hi Terry,

I don't know what I was thinking. "," are fine, switch

back to that. With
the commas in your script works perfect on my system,

and the space taken
out of "MyTest". Windows 2000, IE 6, latest patches

applied. Have you
tried this from another computer? You might have some

3rd party popup stuff
going on, or maybe XP does something different and

minimizes popups by
default. You might want to check the advanced settings

of whatever browser
you are using to see if there is a setting checked that

automatically
minimizes popups. Your script is fine though. Good

luck! Ken.

"Terry" <an*******@discussions.microsoft.com> wrote in

message
news:18****************************@phx.gbl...
>
> Thanks for that ken
>
> I have tried that but it still gets minimised and also
> now the height of the window is equal to screen height
>
> I have replaced the comma's but as I am writing this
> function in ASP.NEt i am using \" for quote's
>
> "winFeatures = winFeatures + \"left = \"+winLeft+\";\";
>
> can I use ' instead of \"
>
> what is going wrong here
>
> thanks for your help
>
> Best Regards
>
> >-----Original Message-----
> >Hi Terry,
> >
> >I changed it a little bit and this version works for
> me. Basically I used
> >';' semicolons between the winFeatures arguements
> instead of ',' commas.
> >Also in the window.open() function I took out the

space
> between "My Test",
> >you can't have a space in that arguement. The new

code
> is below. Good
> >luck! Ken.
> >
> >function showPopup()
> >{
> > /*------------var win;
> >if(typeof(win) != "undefined" && win.closed == false)
> >{
> > win.close();
> >} ------------ */
> >debugger;
> > var winTop = (screen.height/2) - 125;
> > var winLeft = (screen.width/2) - 125;
> >
> > var winFeatures = "width=260;height=240;";
> >
> > winFeatures = winFeatures + "left="+winLeft+";";
> >
> > winFeatures = winFeatures +"top="+winTop;
> >
> > winFeatures = winFeatures
> +";location=no;menubar=no;status=no;";
> > winFeatures = winFeatures
> +"toolbar=no;scrollbars=no;resizable=no;";
> > winFeatures = winFeatures +"copyHistory=no";
> >
> > win = window.open("QuoteHistory.aspx?note=This is a
> >test&load=true","MyTest",winFeatures);
> >
> > win.focus();
> > }
> >
> >--
> >Ken Dopierala Jr.
> >For great ASP.Net web hosting try:
> >http://www.webhost4life.com/default.asp?

refid=Spinlight
> >
> >"Terry" <an*******@discussions.microsoft.com> wrote in
> message
> >news:45****************************@phx.gbl...
> >>
> >> function showPopup()
> >> {
> >> /*------------var win;
> >> if(typeof(win) != "undefined" && win.closed ==

false)
> >> {
> >> win.close();
> >> } ------------ */
> >> var winTop = (screen.height/2) - 125;
> >> var winLeft = (screen.width/2) - 125;
> >>
> >> var winFeatures = "width=260,height=240,";
> >>
> >> winFeatures = winFeatures + "left = "+winLeft+",";
> >>
> >> winFeatures = winFeatures +"top = "+winTop;
> >>
> >> winFeatures = winFeatures +"location=no,

menubar=no,
> >> status=no,";
> >> winFeatures = winFeatures +"toolbar=no,
> >> scrollbars=no,resizable=no,";
> >> winFeatures = winFeatures +"copyHistory=no";
> >>
> >> win = window.open("PopupForm.aspx?note=This is a
> >> test&load=true","My Test",winFeatures);
> >>
> >> win.focus();
> >> }
> >>
> >> >-----Original Message-----
> >> >Hi Terry,
> >> >
> >> >Could you post the javascript function you are

using
> to
> >> launch the window.
> >> >Thanks. Ken.
> >> >
> >> >--
> >> >Ken Dopierala Jr.
> >> >For great ASP.Net web hosting try:
> >> >http://www.webhost4life.com/default.asp?
> refid=Spinlight
> >> >
> >> >"Terry" <an*******@discussions.microsoft.com>

wrote in
> >> message
> >> >news:44****************************@phx.gbl...
> >> >>
> >> >> I am loading a javascript function from my

asp.net
> app.
> >> >> This function loads a string passed to it in a

new
> >> window.
> >> >>
> >> >> I register the function to activate on click of

an
> asp
> >> >> linkbutton. Now when ever I click the link button
> the
> >> >> window pops up with the string passed to it but

it
> gets
> >> >> minimised automatically.
> >> >>
> >> >> Even using win.focus() does'nt seem to stop it

from
> >> >> minimising. How can I stop this from happening
> >> >>
> >> >> Regards,
> >> >>
> >> >> Terry W
> >> >
> >> >
> >> >.
> >> >
> >
> >
> >.
> >
.


Nov 18 '05 #9

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

Similar topics

3
by: Roy Wang | last post by:
hi, My problem is how to determining when the XML file has loaded using javascript. I loaded an xml file using javascript in a web page. The code below is loading the xml file for IE:...
3
by: Jacques Chaurette | last post by:
Hello all , thanks in advance for any help. While looking for a solution to how to replace the grey box while an applet loads, a search of Google got me an article by Glenn s. Peffers that claims to...
2
by: christopher.secord | last post by:
I would like have a little "loading..." tab not unlike the one that gmail uses and I would like to display that tab while an ajax call is made. The javascript to display the tab works. The...
17
by: CES | last post by:
All, I was wondering if their is a way of loading an external script fill from within a script?? <script language="javascript" type="text/javascript"> function test(var){ <script...
1
by: ozzy.osborn | last post by:
Hello All, I have been struggling with a cross browser solution to loading external javascript files on the fly. I have been successful using the following code in IE6: var newScr =...
3
by: matdumsa | last post by:
Hi there!!! I'm wondering what I've did wrong here... I try to do a gmail-like "loading" red square at top right... Here is my code: <div id=loading...
5
by: toffee | last post by:
Hi all, I've seen a really cool effect which i would like to use on an intranet site. Am referring to the 'LOADING..' animation you see when switching pages. I've seen it somewhere on a website...
6
by: Venkatesh | last post by:
Hello All, I have couple of doubts regarding the concept of on-demand javascript loading using javascript code. I could see on the net different techniques for achieving this - techniques like:...
1
by: agatha.life | last post by:
I did a javascript for the loading of images (I didn't want to have the images loaded in "on loading" because they are too many). The website is for a model and if you look at the codeof pages (...
13
eragon
by: eragon | last post by:
JavaScript Loading Mask Requirements: Little knowledge in JavaScript and some HTML. JavaScript enabled browser. Applications: Useful for all those pages that load slow, and in sections, so...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.