473,770 Members | 1,452 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1681
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*******@disc ussions.microso ft.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,heig ht=240,";

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

winFeatures = winFeatures +"top = "+winTop;

winFeatures = winFeatures +"location=n o, menubar=no,
status=no,";
winFeatures = winFeatures +"toolbar=no ,
scrollbars=no,r esizable=no,";
winFeatures = winFeatures +"copyHistory=n o";

win = window.open("Po pupForm.aspx?no te=This is a
test&load=true" ,"My Test",winFeatur es);

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*******@disc ussions.microso ft.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;heig ht=240;";

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

winFeatures = winFeatures +"top="+winT op;

winFeatures = winFeatures +";location=no; menubar=no;stat us=no;";
winFeatures = winFeatures +"toolbar=no;sc rollbars=no;res izable=no;";
winFeatures = winFeatures +"copyHistory=n o";

win = window.open("Qu oteHistory.aspx ?note=This is a
test&load=true" ,"MyTest",winFe atures);

win.focus();
}

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

"Terry" <an*******@disc ussions.microso ft.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,heig ht=240,";

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

winFeatures = winFeatures +"top = "+winTop;

winFeatures = winFeatures +"location=n o, menubar=no,
status=no,";
winFeatures = winFeatures +"toolbar=no ,
scrollbars=no,r esizable=no,";
winFeatures = winFeatures +"copyHistory=n o";

win = window.open("Po pupForm.aspx?no te=This is a
test&load=true" ,"My Test",winFeatur es);

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*******@disc ussions.microso ft.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

"winFeature s = 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(wi n) != "undefined" && win.closed == false)
{
win.close();
} ------------ */
debugger;
var winTop = (screen.height/2) - 125;
var winLeft = (screen.width/2) - 125;

var winFeatures = "width=260;heig ht=240;";

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

winFeatures = winFeatures +"top="+winT op;

winFeatures = winFeatures +";location=no; menubar=no;stat us=no;"; winFeatures = winFeatures +"toolbar=no;sc rollbars=no;res izable=no;"; winFeatures = winFeatures +"copyHistory=n o";

win = window.open("Qu oteHistory.aspx ?note=This is a
test&load=true ","MyTest",winF eatures);

win.focus();
}

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

"Terry" <an*******@disc ussions.microso ft.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,heig ht=240,";

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

winFeatures = winFeatures +"top = "+winTop;

winFeatures = winFeatures +"location=n o, menubar=no,
status=no,";
winFeatures = winFeatures +"toolbar=no ,
scrollbars=no,r esizable=no,";
winFeatures = winFeatures +"copyHistory=n o";

win = window.open("Po pupForm.aspx?no te=This is a
test&load=true" ,"My Test",winFeatur es);

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*******@disc ussions.microso ft.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*******@disc ussions.microso ft.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

"winFeature s = 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(wi n) != "undefined" && win.closed == false)
{
win.close();
} ------------ */
debugger;
var winTop = (screen.height/2) - 125;
var winLeft = (screen.width/2) - 125;

var winFeatures = "width=260;heig ht=240;";

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

winFeatures = winFeatures +"top="+winT op;

winFeatures = winFeatures

+";location=no; menubar=no;stat us=no;";
winFeatures = winFeatures

+"toolbar=no;sc rollbars=no;res izable=no;";
winFeatures = winFeatures +"copyHistory=n o";

win = window.open("Qu oteHistory.aspx ?note=This is a
test&load=true ","MyTest",winF eatures);

win.focus();
}

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

"Terry" <an*******@disc ussions.microso ft.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,heig ht=240,";

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

winFeatures = winFeatures +"top = "+winTop;

winFeatures = winFeatures +"location=n o, menubar=no,
status=no,";
winFeatures = winFeatures +"toolbar=no ,
scrollbars=no,r esizable=no,";
winFeatures = winFeatures +"copyHistory=n o";

win = window.open("Po pupForm.aspx?no te=This is a
test&load=true" ,"My Test",winFeatur es);

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*******@disc ussions.microso ft.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*******@disc ussions.microso ft.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

"winFeature s = 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(wi n) != "undefined" && win.closed == false)
>{
> win.close();
>} ------------ */
>debugger;
> var winTop = (screen.height/2) - 125;
> var winLeft = (screen.width/2) - 125;
>
> var winFeatures = "width=260;heig ht=240;";
>
> winFeatures = winFeatures + "left="+winLeft +";";
>
> winFeatures = winFeatures +"top="+winT op;
>
> winFeatures = winFeatures

+";location=no; menubar=no;stat us=no;";
> winFeatures = winFeatures

+"toolbar=no;sc rollbars=no;res izable=no;";
> winFeatures = winFeatures +"copyHistory=n o";
>
> win = window.open("Qu oteHistory.aspx ?note=This is a
>test&load=true ","MyTest",winF eatures);
>
> win.focus();
> }
>
>--
>Ken Dopierala Jr.
>For great ASP.Net web hosting try:
>http://www.webhost4life.com/default.asp?
refid=Spinlight >
>"Terry" <an*******@disc ussions.microso ft.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,heig ht=240,";
>>
>> winFeatures = winFeatures + "left = "+winLeft+" ,";
>>
>> winFeatures = winFeatures +"top = "+winTop;
>>
>> winFeatures = winFeatures +"location=n o, menubar=no, >> status=no,";
>> winFeatures = winFeatures +"toolbar=no ,
>> scrollbars=no,r esizable=no,";
>> winFeatures = winFeatures +"copyHistory=n o";
>>
>> win = window.open("Po pupForm.aspx?no te=This is a
>> test&load=true" ,"My Test",winFeatur es);
>>
>> 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*******@disc ussions.microso ft.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*******@disc ussions.microso ft.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*******@disc ussions.microso ft.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

"winFeature s = 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(wi n) != "undefined" && win.closed == false)
>{
> win.close();
>} ------------ */
>debugger;
> var winTop = (screen.height/2) - 125;
> var winLeft = (screen.width/2) - 125;
>
> var winFeatures = "width=260;heig ht=240;";
>
> winFeatures = winFeatures + "left="+winLeft +";";
>
> winFeatures = winFeatures +"top="+winT op;
>
> winFeatures = winFeatures
+";location=no; menubar=no;stat us=no;";
> winFeatures = winFeatures
+"toolbar=no;sc rollbars=no;res izable=no;";
> winFeatures = winFeatures +"copyHistory=n o";
>
> win = window.open("Qu oteHistory.aspx ?note=This is a
>test&load=true ","MyTest",winF eatures);
>
> win.focus();
> }
>
>--
>Ken Dopierala Jr.
>For great ASP.Net web hosting try:
>http://www.webhost4life.com/default.asp? refid=Spinlight >
>"Terry" <an*******@disc ussions.microso ft.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,heig ht=240,";
>>
>> winFeatures = winFeatures + "left = "+winLeft+" ,";
>>
>> winFeatures = winFeatures +"top = "+winTop;
>>
>> winFeatures = winFeatures +"location=n o, menubar=no, >> status=no,";
>> winFeatures = winFeatures +"toolbar=no ,
>> scrollbars=no,r esizable=no,";
>> winFeatures = winFeatures +"copyHistory=n o";
>>
>> win = window.open("Po pupForm.aspx?no te=This is a
>> test&load=true" ,"My Test",winFeatur es);
>>
>> 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*******@disc ussions.microso ft.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******** ******@tk2msftn gp13.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*******@disc ussions.microso ft.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*******@disc ussions.microso ft.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
>
> "winFeature s = 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(wi n) != "undefined" && win.closed == false)
> >{
> > win.close();
> >} ------------ */
> >debugger;
> > var winTop = (screen.height/2) - 125;
> > var winLeft = (screen.width/2) - 125;
> >
> > var winFeatures = "width=260;heig ht=240;";
> >
> > winFeatures = winFeatures + "left="+winLeft +";";
> >
> > winFeatures = winFeatures +"top="+winT op;
> >
> > winFeatures = winFeatures
> +";location=no; menubar=no;stat us=no;";
> > winFeatures = winFeatures
> +"toolbar=no;sc rollbars=no;res izable=no;";
> > winFeatures = winFeatures +"copyHistory=n o";
> >
> > win = window.open("Qu oteHistory.aspx ?note=This is a
> >test&load=true ","MyTest",winF eatures);
> >
> > win.focus();
> > }
> >
> >--
> >Ken Dopierala Jr.
> >For great ASP.Net web hosting try:
> >http://www.webhost4life.com/default.asp?

refid=Spinlight
> >
> >"Terry" <an*******@disc ussions.microso ft.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,heig ht=240,";
> >>
> >> winFeatures = winFeatures + "left = "+winLeft+" ,";
> >>
> >> winFeatures = winFeatures +"top = "+winTop;
> >>
> >> winFeatures = winFeatures +"location=n o,

menubar=no,
> >> status=no,";
> >> winFeatures = winFeatures +"toolbar=no ,
> >> scrollbars=no,r esizable=no,";
> >> winFeatures = winFeatures +"copyHistory=n o";
> >>
> >> win = window.open("Po pupForm.aspx?no te=This is a
> >> test&load=true" ,"My Test",winFeatur es);
> >>
> >> 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*******@disc ussions.microso ft.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
8508
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: this.xmlDoc= new ActiveXObject("Microsoft.DomDocument"); this.xmlDoc.load(url);
3
3280
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 solve the problem. You can find the article at http://www.codeproject.com/java/javaappletwaitmsg.asp I have adapted the code to my situation but can't get it to work. Maybe someone has an idea how to fix it... Here is the code Cheers, Jacques...
2
2056
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 javascript to hide the tab works. But when I put the two together inside the function that calls the ajax service, they don't work. What seems to happen is that calls to change DOM object properties are queued up, and then all executed...
17
2783
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 language="javascript" src="../scripts/base.js" type="text/javascript" /> } </script> Obviously this would cause n error but this would give you an idea of what I'm looking to do. I know I can do this with a simple include but...
1
3811
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 = document.createElement("SCRIPT"); newScr.src = "newScr.js"; newScr.type="text/javascript";
3
6261
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 style=display:none;background-color:#FF0000;position:absolute;right:0px;top:0px><b><font color=white><p style=text-decoration:blink;>Loading</p></b></font></div>
5
10368
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 that was using php (cant remember the url). I've tried googling but came up with nothing - so does anyone know what function of php allows to display a little animation while a sql query is being run ? Many thanks
6
2776
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. document.write("<script src= language='JavaScript'></script>); 2. sc = document.createElement("<script>"); sc.setAttribute("src", ); and append this to the head
1
3406
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 ( for ex. http://www.agathamoon.com/gallery_48_eng.htm ) using explorer or firefox it works, with safari it doesn't! :( The idea is to have the word "loading" appearing while going from an image to another.
13
37907
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 instead of watching the page load in sections. Put this in your <head>: <script type="text/javascript"> function overlay() { elem = document.getElementById("overlay");
0
9425
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9871
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7416
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6679
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5313
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5452
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3972
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3576
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2817
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.