I have a javascript function that is executed when a link button is clicked:
If Not (Page.IsClientS criptBlockRegis tered("PopupWin dow")) Then
Page.RegisterCl ientScriptBlock ("PopupWindo w", Script)
End if
Script is a variable that is filled from calling a function that filles in
all the assigned variables
for the new window to open.
My problem is that I can't keep the window on top. It opens on top but when
my .aspx page finishes refreshing then the .aspx pages opens on top of my
pop up window. How can I keep my pop window on top.
I am not very knowledgeable with javascript and luckily got this function to
work after a lot of help on the newsgroups.
Is there a modal window I should use? I currently use window.open("li nk",
variables)
The window list instructions if the user needs them for an intranet
application.
Thanks 4 1454
use
ob=window.open( url)
ob.focus()
That will keep the popup on top.
Or you can use showModalDialog (url)
"Brian Shannon" <bs******@lbrsp ec.com> wrote in message
news:uA******** ********@TK2MSF TNGP09.phx.gbl. .. I have a javascript function that is executed when a link button is
clicked: If Not (Page.IsClientS criptBlockRegis tered("PopupWin dow")) Then Page.RegisterCl ientScriptBlock ("PopupWindo w", Script) End if
Script is a variable that is filled from calling a function that filles in all the assigned variables for the new window to open.
My problem is that I can't keep the window on top. It opens on top but
when my .aspx page finishes refreshing then the .aspx pages opens on top of my pop up window. How can I keep my pop window on top.
I am not very knowledgeable with javascript and luckily got this function
to work after a lot of help on the newsgroups.
Is there a modal window I should use? I currently use window.open("li nk", variables)
The window list instructions if the user needs them for an intranet application.
Thanks
note that xp-sp2 which goes into wide release next week, will prevent this
code from running. i'd reengineer the page.
-- bruce (sqlwork.com)
"Brian Shannon" <bs******@lbrsp ec.com> wrote in message
news:uA******** ********@TK2MSF TNGP09.phx.gbl. .. I have a javascript function that is executed when a link button is
clicked: If Not (Page.IsClientS criptBlockRegis tered("PopupWin dow")) Then Page.RegisterCl ientScriptBlock ("PopupWindo w", Script) End if
Script is a variable that is filled from calling a function that filles in all the assigned variables for the new window to open.
My problem is that I can't keep the window on top. It opens on top but
when my .aspx page finishes refreshing then the .aspx pages opens on top of my pop up window. How can I keep my pop window on top.
I am not very knowledgeable with javascript and luckily got this function
to work after a lot of help on the newsgroups.
Is there a modal window I should use? I currently use window.open("li nk", variables)
The window list instructions if the user needs them for an intranet application.
Thanks
Thanks for the tip. What exactly is the service pack going to prevent?
Javascript functions using windows.open?
Thanks
"bruce barker" <no***********@ safeco.com> wrote in message
news:Ox******** ******@TK2MSFTN GP09.phx.gbl... note that xp-sp2 which goes into wide release next week, will prevent this code from running. i'd reengineer the page.
-- bruce (sqlwork.com)
"Brian Shannon" <bs******@lbrsp ec.com> wrote in message news:uA******** ********@TK2MSF TNGP09.phx.gbl. .. I have a javascript function that is executed when a link button is clicked: If Not (Page.IsClientS criptBlockRegis tered("PopupWin dow")) Then Page.RegisterCl ientScriptBlock ("PopupWindo w", Script) End if
Script is a variable that is filled from calling a function that filles
in all the assigned variables for the new window to open.
My problem is that I can't keep the window on top. It opens on top but
when my .aspx page finishes refreshing then the .aspx pages opens on top of
my pop up window. How can I keep my pop window on top.
I am not very knowledgeable with javascript and luckily got this
function to work after a lot of help on the newsgroups.
Is there a modal window I should use? I currently use
window.open("li nk", variables)
The window list instructions if the user needs them for an intranet application.
Thanks
in the default setting, it prevents javascript from opening windows unless
its associated to a users click.
so,
<script>functio n doOpen() {window.open(ur l) } </script>
<input type="button" onclick="doOpen ();" value="open window">
will open a windows while inline code like:
<script> window.open(url ); </script>
will fail
-- bruce (sqlwork.com)
"Brian Shannon" <bs******@lbrsp ec.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. .. Thanks for the tip. What exactly is the service pack going to prevent? Javascript functions using windows.open?
Thanks "bruce barker" <no***********@ safeco.com> wrote in message news:Ox******** ******@TK2MSFTN GP09.phx.gbl... note that xp-sp2 which goes into wide release next week, will prevent
this code from running. i'd reengineer the page.
-- bruce (sqlwork.com)
"Brian Shannon" <bs******@lbrsp ec.com> wrote in message news:uA******** ********@TK2MSF TNGP09.phx.gbl. .. I have a javascript function that is executed when a link button is clicked: If Not (Page.IsClientS criptBlockRegis tered("PopupWin dow")) Then Page.RegisterCl ientScriptBlock ("PopupWindo w", Script) End if
Script is a variable that is filled from calling a function that
filles in all the assigned variables for the new window to open.
My problem is that I can't keep the window on top. It opens on top
but when my .aspx page finishes refreshing then the .aspx pages opens on top of my pop up window. How can I keep my pop window on top.
I am not very knowledgeable with javascript and luckily got this function to work after a lot of help on the newsgroups.
Is there a modal window I should use? I currently use window.open("li nk", variables)
The window list instructions if the user needs them for an intranet application.
Thanks
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Arthur Connor |
last post by:
Below you will find the first lines of my HTML page.
Why doesn't popup a dialog window ?
I click the Html page which is on my hard disc. A IE 5.5 browser window opens
but not a dialog window inside.
<HTML>
<HEAD>
<TITLE>Test page</TITLE>
<script LANGUAGE="JavaScript">
<!--
|
by: Jeannie |
last post by:
I have a popup window which is a slideshow of about 7 images. When the
popup window loads, the first image is present and then the viewer can
select next or previous to scroll through the rest of the images.
I'd like to use the same popup window at different points throughout
the website and have the Virtual Tour (slideshow) open up at the
appropriate photos. Meaning I'd like to control which picture the
popup window opens up to,...
|
by: tshad |
last post by:
I posted this on the asp.net group, also. I wasn't sure whether this was an
asp.net problem or a javascript problem.
I have a page that was originally created from a program I found on the net
that works well as an html page.
It brings up a modal popup window that I have been trying to work out for
days now and this was the closest I have been able to come.
I added a little asp.net code and an asp.net button and cannot get it to
|
by: Robby Bankston |
last post by:
I'm working on some code and am running into brick walls. I'm trying
to write out Javascript with Javascript and I've read the clj Meta FAQ
and didn't see the answer, read many similar posts (with no luck
though), and searched through the IRT.ORG Faqs
(www.irt.org/script/script.htm).
The Javascript is designed to open an popup window and then inside that
window call another script which will resize that window. There may be
another...
|
by: szabelin |
last post by:
Hello, I am trying to call a function inside the
javascript block from asp.net during the postback (NOT
button's OnClick event handler though). The javascript
function creates new popup window. I register the
javascript code with the RegisterClientScriptBlock.
How how do I call the javascript function inside the block
from within C# asp.net page.
(yes I know popups are bad, please do not reply if you
| |
by: Mark Fox |
last post by:
Hello,
I am attempting to do something very simple. I have
a page MainPage.aspx and a popup window Popup.aspx. When
users click on the linkbutton in the popup window I am
looking to do some server side processing in Popup.aspx,
then have the popup window close, and have the
MainPage.aspx do a postback to the server. But I am
having trouble determining what client side javascript
Popup.aspx should render after it does its server side
|
by: Terry |
last post by:
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
|
by: tshad |
last post by:
This is from my previous post, but a different issue.
I have the following Javascript routine that opens a popup page, but doesn't
seem to work if called from an asp.net button. It seems to work fine from a
link.
The button does bring up the popup window, but when I press the links on the
page, it doesn't return or close the window.
****************************************************************************
|
by: Matt Jensen |
last post by:
Howdy all
Hopefully I can explain my problem straightforwardly.
In it's simplest explanation, what I want to do is have a hyperlink that,
when clicked, executes some client side JavaScript and then saves every form
element value and reloads the page (with the 'save' being much the same as
what is achieved by an AutoPostBack="True" attribute on a web/html control).
Actually it doesn't matter which order the JavaScript or 'save'...
|
by: E |
last post by:
I am having trouble with setTimeout working on a second call to the
setTimeout function from a second page which is an html page.
Here is the scenario.
I have a web page and onload it calls a javascript function which calls
setTimeout and will process a second javascript function "Warn" just before
the session expires. The Warn function displays an html page with a
button. A second timer is started to cause the html page to close...
|
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,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |