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

problem with modelessDialog for ie

Hi

I built an application that open a modelessDialog
my question is can i replace the modelessDialog content on a click in
the parent window
i need this in order to prevent multiple modelessDialog to be open.
i need to get to a status that only one modelessDialog is open and if
the user try to open a new one then the content of the already open one

is replaced, or the modeless that is already open will be closed
automatically and then a new one will be open
Thanks
Amir

Mar 16 '06 #1
8 1788
Hi,

try with <base target="_self" />

e.g.:

<head>
<base target="_self" />
</head>

Mar 17 '06 #2
Crazy Code Ninja wrote:
try with <base target="_self" />

e.g.:

<head>
<base target="_self" />
</head>


Please stop posting advice until you have a minimum clue.
Please learn to quote.
PointedEars
Mar 18 '06 #3
co*****@netvision.net.il wrote:
I built an application that open a modelessDialog
my question is can i replace the modelessDialog content on a click in
the parent window
Probably. A modeless dialog window does not seem very much different
from the usual popup window.

<URL:http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/showmodelessdialog.asp>

Which is why you should consider not to use it in the first place, and to
use a usual popup window instead; this way it would work in other UAs, too.
i need this in order to prevent multiple modelessDialog to be open.
That would be something be controlled best from the calling context instead.
i need to get to a status that only one modelessDialog is open and if
the user try to open a new one then the content of the already open one
is replaced, or the modeless that is already open will be closed
automatically and then a new one will be open


var x;

function openWin(...)
{
x = window.showModelessDialog(...); // or better: window.open(...)
}

// ...
if (!x)
{
openWin(...);
}
else
{
// modify the existing dialog
x.document....

// or close and reopen
x.close();
openWin(...);
}
PointedEars
Mar 18 '06 #4
Please stop stalking my post you freak!

Thomas 'PointedEars' Lahn wrote:
Crazy Code Ninja wrote:
try with <base target="_self" />

e.g.:

<head>
<base target="_self" />
</head>


Please stop posting advice until you have a minimum clue.
Please learn to quote.
PointedEars


Mar 19 '06 #5
Crazy Code Ninja wrote:
Please stop stalking my post you freak!


If you can't stand the heat, get out of the kitchen. See my sig.
PointedEars
--
This is Usenet. It is a discussion group, not a helpdesk. You post
something, we discuss it. If you have a question and that happens to get
answered in the course of the discussion, then great. If not, you can
have a full refund of your membership fees. -- Mark Parnell in alt.html
Mar 20 '06 #6
I was just posting to try to give my 2c, if you want to correct my
posts, that is most welcomed! I never claimed to know everything in the
first place, definetely keen to learn from others.

But stop posting something retarded like:
Please stop posting advice until you have a minimum clue.
Please learn to quote.
And stop putting words into others mouth, I never said this is a
helpdesk.

Thomas 'PointedEars' Lahn wrote: Crazy Code Ninja wrote:
Please stop stalking my post you freak!


If you can't stand the heat, get out of the kitchen. See my sig.
PointedEars
--
This is Usenet. It is a discussion group, not a helpdesk. You post
something, we discuss it. If you have a question and that happens to get
answered in the course of the discussion, then great. If not, you can
have a full refund of your membership fees. -- Mark Parnell in alt.html


Mar 24 '06 #7
Crazy Code Ninja wrote:
I was just posting to try to give my 2c,
You posted something harmful, because what you presented as a solution
had not /anything/ to do with the OP's problem, nor could it qualify as
a solution for any other problem (it is not Valid). Because you have
simply no clue what you are talking about.
if you want to correct my posts, that is most welcomed! I never claimed to
know everything in the first place, definetely keen to learn from others.

But stop posting something retarded like:
Please stop posting advice until you have a minimum clue.
Please learn to quote.


And stop putting words into others mouth, I never said this is a
helpdesk.

[top post]


*PLONK*
Mar 24 '06 #8
Thomas 'PointedEars' Lahn wrote:
co*****@netvision.net.il wrote:
[...]
i need to get to a status that only one modelessDialog is open and if
the user try to open a new one then the content of the already open one
is replaced, or the modeless that is already open will be closed
automatically and then a new one will be open


var x;

function openWin(...)
{
x = window.showModelessDialog(...); // or better: window.open(...)
}

// ...
if (!x)
{
openWin(...);
}
else
{
// modify the existing dialog
x.document....

// or close and reopen
x.close();
openWin(...);
}


var x;

function openWin(...)
{
return window.showModelessDialog(...); // or better: window.open(...)
}

if (x && !x.closed)
{
// modify the existing dialog
x.document....

// or close and reopen
x.close();
x = openWin(...);
}
else
{
x = openWin(...);
}
PointedEars
Mar 24 '06 #9

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

Similar topics

0
by: Bruce Davis | last post by:
I'm having a problem on windows (both 2000 and XP) with a multi-threaded tkinter gui application. The problem appears to be a deadlock condition when a child thread pops up a Pmw dialog window in...
11
by: Kostatus | last post by:
I have a virtual function in a base class, which is then overwritten by a function of the same name in a publically derived class. When I call the function using a pointer to the derived class...
117
by: Peter Olcott | last post by:
www.halting-problem.com
28
by: Jon Davis | last post by:
If I have a class with a virtual method, and a child class that overrides the virtual method, and then I create an instance of the child class AS A base class... BaseClass bc = new ChildClass();...
6
by: Ammar | last post by:
Dear All, I'm facing a small problem. I have a portal web site, that contains articles, for each article, the end user can send a comment about the article. The problem is: I the comment length...
16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
2
by: Mike Collins | last post by:
I cannot get the correct drop down list value from a drop down I have on my web form. I get the initial value that was loaded in the list. It was asked by someone else what the autopostback was...
8
by: proit_123 | last post by:
I am working on a windows forms application and have the following requirement. I have two projects in my application Project A and Project B. And Project A has the reference of Project B. I...
9
by: AceKnocks | last post by:
I am working on a framework design problem in which I have to design a C++ based framework capable of solving three puzzles for now but actually it should work with a general puzzle of any kind and I...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.