473,748 Members | 9,599 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

window.open(.. How can I control the instances.

hi
I like to ask if there any option to control the html files?!?

I have some HTML files at my web site that use
one "Help.htm" file for all the pages {I use the
"window.open(.. .. " option at JS },
and I like to open only one file every time for all the files.

I use "myFunc.js" javascript file for all the files that try to open the
"Help.htm" file so I hava an 'Object' that hold the
open HTML help window,
but when I try open the file from other
HTM file from the same project I got new "Help.htm" instance,
and from every htm file I got new instance... etc.

Any suggestion,
how can open only one the file from all the html, files?

thanks in advance,
Yaniv.
Jul 20 '05 #1
1 4117
I think I understand your question.
Make sure you set your target name for the popup window name as being the
same for all.INstead of using blank or "" otherwise it will open a new
instance every time, if you choose the same traget it will hen just target
that window that's already open/refresh or open the new instance of it. Look
at the window.open call in yahoo.

Hope that helps

Stu
"yanivmad" <ya********@hot mail.com> wrote in message
news:30******** *************** ***@posting.goo gle.com...
hi
I like to ask if there any option to control the html files?!?

I have some HTML files at my web site that use
one "Help.htm" file for all the pages {I use the
"window.open(.. .. " option at JS },
and I like to open only one file every time for all the files.

I use "myFunc.js" javascript file for all the files that try to open the
"Help.htm" file so I hava an 'Object' that hold the
open HTML help window,
but when I try open the file from other
HTM file from the same project I got new "Help.htm" instance,
and from every htm file I got new instance... etc.

Any suggestion,
how can open only one the file from all the html, files?

thanks in advance,
Yaniv.

Jul 20 '05 #2

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

Similar topics

2
1418
by: DaaaDaaa | last post by:
Hi, I have a little popup window, that runs a query, then writes the query resultset back to parent window, sometime, this process could take some time, so, I'd like this little popup window to display something like "Please wait". I tried both adding document.write("Please wait ...")> to the top of the popup window file/script and plain HTML Please wait ... to the top of the popup, neither displays. How come?
6
1805
by: chau_fai | last post by:
I have a window Form called "Form2". There is only one button and a panel returned from a static method of the "Coord" in this form. In the panel returned, there is a button that can choose image from "OpenFileDialog" and then display it in a picturebox. This actually works properly before the button1 is clicked. Button1 is a button to open a new form and again it gets a panel returned from the static method inside "Coord" and perform the...
0
890
by: sonu | last post by:
I have make a window control dll and call that dll in web application like... <OBJECT id="MyWinControl1" style="LEFT: 224px; TOP: 80px; " classid="test3\bin\Debug\test3.dll#test3.UserControl1" VIEWASTEXT height=0> </OBJECT> this dll open a window form. my problem is...
2
2632
by: Theodoros.Savvides | last post by:
Hi All, We are developing an application and we have a problem for which I cannot find any information anywhere. The application consists of a windows user control and an ASP.NET application that has a Web Form loading this control using the object tag. The HTML code looks like this: <OBJECT id="LoginControl" style="WIDTH: 673px; HEIGHT: 388px" classid="../WinControls/CommonWinControls.dll#CommonWinControls.UCBatchForm"
0
1203
by: Chakravarti Mukesh | last post by:
Hi all, I have a window control that don't have any visual significance (but it have). I want to use that control in my ASP .NET page. What could be the solution? I don't have access to the code. Could I create an interface component that will be used in ASP .NET page using that window component? Thanks
4
6745
by: gregarican | last post by:
I have an PyQt app were I need one of the windows to be able to be opened more than one at a time. When I try to open it I only get one instance at the same time. The main class is the QWidget() class with a QGridLayout() displaying the various window components. Is there a certain flag I need to set or different constructor I need to use to allow the window to be opened more than one at a time? Here's a brief snippet of the code that...
0
534
by: ck.kislay | last post by:
When I passed bounding area ( Location,height ,width )of a Window control to the ClipCursor API it restrict the mouse in screen coordinate ,Its fine because ClipCursor works on Screen coordinate. But when I changed the bounding area (Location) to Screen coordinate then pass to ClipCursor API then some time it works and some time it doesn't work. Also how can unrestrict the mouse from ClipCursor? Waiting for Reply, Chandan Kumar
5
1320
by: RK | last post by:
I have a window control library with a user control abd I need to add this dll to the aspx web pag. How can I do this. Thanks, RK
1
2679
by: =?Utf-8?B?amFtZXNAbm9zcGFtLmNvbQ==?= | last post by:
When processing the OnGotFocus event, I need to know the window/control that lost the focus. Is there a way to determint this? With MFC, you could use OnSetFocus which passed you the window that lost the focus. It there something similar with a c# control.
0
1210
by: juggerling | last post by:
I have a third party form open and wish to get the control id from the text box with the current caret focus; there are a great many text boxes on this form each containing a unique control id. I have thought of using the point API but it is not perfect and using it on other computers does not always set focus to a specific text box due to system lag. I can recover the Control ID using Spy++ or WinID but; I do not need the Actual ID but the way...
0
8991
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, 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...
0
8830
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
9541
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9321
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,...
0
9247
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
6796
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
4602
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...
1
3312
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
2782
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.