I don't know where to ask this question. If you know of a better place to
ask it, please let me know.
I have a main web page containing many links to detail pages. All detail
links open with Target=xxx, so that I only have 1 detail page open at a time.
In other words, if you click on detail line 1, it opens a new internet
explorer window with detail page. You can then alt-tab back to the main
window, click a detail line 2, and it opens the detail in the second window
again. The problem is, that this second window is now behind the main
window. Unless the user knows to alt-tab back to the second window, they
might not realize that the detail is displayed in the background window.
I've had complaints that they want this detail to come back to the foreground
when it displays. Granted, if they would just close the detail window, then
select a new detail line, it would open in the foreground, but I can't force
them to do this.
How can I always force the Target= window to come to the foreground, even if
it was already open in the background? 4 3910
Brian,
If you are talking about ASPNET. A user is in that forever only working with
one page, which interact with the Server. You can have more pages inactive
open at client side (by instance Iframes), however than still you have to
store your information on the Server by instance in the session.variabl es
I hope this helps,
Cor
Hi, Brian...
Quite simple to solve your problem...
On the detail page just put a simple JScript like below:
<script language="JSCRI PT">
function page_OnLoad()
{
document.all.du mmy.focus();
document.all.du mmy.style.displ ay = 'none';
}
</script>
Then towards the end of the body you just need to put the following
<body onload="jscript :page_OnLoad()" >
....
<input name="dummy" id="dummy" type=text style="width:1p x;height:1px">
</body>
And the window will come to front because only ONE window can have the
focus at any time.
Regards,
Paulo
Well, this would work perfectly, but I forgot to mention one piece. I can't
put any coding of any type on the detail page. The detail pages are owned by
a third party, and I don't have access to their code. I can do anything I
want on the main page, but I can't change the code on the detail, so I'm
handicapped there. Whatever I do for a solution has to be done on the main
page.
"MstrContro l" wrote: Hi, Brian...
Quite simple to solve your problem...
On the detail page just put a simple JScript like below:
<script language="JSCRI PT"> function page_OnLoad() { document.all.du mmy.focus(); document.all.du mmy.style.displ ay = 'none'; } </script>
Then towards the end of the body you just need to put the following
<body onload="jscript :page_OnLoad()" > .... <input name="dummy" id="dummy" type=text style="width:1p x;height:1px"> </body>
And the window will come to front because only ONE window can have the focus at any time.
Regards,
Paulo
Hi Brian,
I just saw your repply today.
I believe (I haven't tested it myself) is to put something like this:
function OpenWindow()
{
w = window.open('ht tp://address.com');
w.focus();
}
It might work.
Regards,
Paulo This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Phil Powell |
last post by:
header("Location: http://$SERVER_NAME/index.php; Window-target: top"");
I am getting a 403 Forbidden upon running this script, which is not what I
wanted. Is there a way I can redirect, but at the same time redirect out of
the frame that the redirection script is located to _top? I don't want to
have to rely on Javascript to do this as this is a foreign site (European)
where Javascript is often turned off.
Thanks
Phil
|
by: Starry Gordon |
last post by:
I've been running some small test programs which seem to indicate
something noticed in a larger script, that a function called from
onLoad() in the <body> tag will not succeed in creating a window
(i.e. successfully executing window.open() in Mozilla 1.5; however,
I've observed it to work a few times in IE 6.0 and Opera 5.something.
It does not seem to be a timing thing -- if I re-call the function
somewhat later using setTimeout it still...
|
by: G Dean Blake |
last post by:
in my aspx app I am writing a stream that works fine but it replaces what is
in the client browser window. The code is as follows:
..
..
HttpContext.Current.Response.ClearHeaders()
HttpContext.Current.Response.ClearContent()
HttpContext.Current.Response.ContentType = "application/pdf"
Dim myBuffer(MyStream.Length) As Byte
MyStream.Read(myBuffer, 0, CType(MyStream.Length, Integer))
HttpContext.Current.Response.BinaryWrite(myBuffer)
|
by: Alan Silver |
last post by:
Hello,
Newbie alert, so please be patient <g>
I ASP Classic, we were used to using tricks like ...
<%=strName%>
to insert dynamic content into an HTML block. In ASP.NET, you have
various controls like the label that seem to do the same thing, but with
|
by: Brian Kitt |
last post by:
I don't know where to ask this question. If you know of a better place to
ask it, please let me know.
I have a main web page containing many links to detail pages. All detail
links open with Target=xxx, so that I only have 1 detail page open at a time.
In other words, if you click on detail line 1, it opens a new internet
explorer window with detail page. You can then alt-tab back to the main
window, click a detail line 2, and it...
| |
by: Jeff |
last post by:
We are using .Net and the wsdl Utility to generate proxies to consume
web services built using the BEA toolset.
The data architects on the BEA side create XML schemas with various
entities in separate files for ease of maintainability. These schemas
are all part of the same namespace.
When defining a web service that access more than one of these
entities, the wsdl file generated by BEA contains multiple schema
elements with the same...
|
by: Raf256 |
last post by:
Hello,
my custom streambuf works fine with output via <<
and with input via .get()
but fails to input via >> or getline... any idea why?
--------------------
A custom stream buffer (for encryption, currently it is doing "nothing")
|
by: Ed Jay |
last post by:
I note in an Eric Meyers book that he expresses one goal of using CSS is
to eliminate all <brtags. Why?
--
Ed Jay (remove 'M' to respond by email)
|
by: amygdala |
last post by:
Hi,
I'm trying to grasp OOP to build an interface using class objects that lets
me access database tables easily. You have probably seen this before, or
maybe even built it yourself at some point in time. I have studied some
examples I found on the internet, and am now trying to build my own from
scratch.
I have made a default table class (DB_Table), a default validation class
(Validator) which is an object inside DB_Table and my...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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: 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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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: 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...
|
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();...
|
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...
| |