Hi,
DESCRIPTION:
I'm developing an application that when I need to insert a date, I use 3
textbox's and one image button. This image button open's a small popup
window with a calendar, allowing user choose date. Then, this popup returns
the year, month and day to the correspondent textbox. So far, so good.
PROBLEM:
The problem is that the applications opens so popup's as the number of
clicks that I do in image button. What I want is that only opens one popup
at a time. That when it's already one open, this closes and open a new
popup.
For that I have a .JS file that have this:
-------------------------------------------------
var NewWnd = null;
function DestroyWnd()
{
// close the current window
if(this.NewWnd != null)
{
this.NewWnd.close();
this.NewWnd = null;
}
}
function pick(Year,Month,Day)
{
if((this.NewWnd == null) || (this.NewWnd.closed))
{
var url = "Calendar.aspx?srcA=" + Year + "&srcM=" + Month + "&srcD=" + Day
this.NewWnd = window.open(url, "_blank", "height=200, width=200, left=250,
top=200, " +
"location=no, menubar=no, resizable=no, " +
"scrollbars=no, titlebar=no, toolbar=no", true);
}
else
{
DestroyWnd();
pick(Year,Month,Day);
}
}
-------------------------------------------------
Because buttons do postback my .JS variable (NewWnd) is reset and never
mantain the value of window.
How can I solve this?
--
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca 15 1466
"ruca" <ru***@iol.pt> schrieb Hi,
DESCRIPTION: I'm developing an application that when I need to insert a date, I use 3 textbox's and one image button. This image button open's a small popup window with a calendar, allowing user choose date. Then, this popup returns the year, month and day to the correspondent textbox. So far, so good.
PROBLEM: The problem is that the applications opens so popup's as the number of clicks that I do in image button. What I want is that only opens one popup at a time. That when it's already one open, this closes and open a new popup.
For that I have a .JS file that have this: ------------------------------------------------- var NewWnd = null;
[...]
This is a VB.Net group. Please post only to the appropriate groups. Thx.
--
Armin
Hi Armin,
If you can see in my signature it says:
------------------------------------
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca
------------------------------------
And I posted here too, because maybe It's possible I have to do anything in
my VB code (if I know the answer, I'm sure that I don't post here my
question).
If you can see too, you've posted your answer to my question in ASPNET and
JSCRIPT group. Like me, you've posted wrong.
Thanks anyway for your help.
ruca
"Armin Zingler" <az*******@freenet.de> escreveu na mensagem
news:40***********************@news.freenet.de... "ruca" <ru***@iol.pt> schrieb Hi,
DESCRIPTION: I'm developing an application that when I need to insert a date, I use 3 textbox's and one image button. This image button open's a small popup window with a calendar, allowing user choose date. Then, this popup returns the year, month and day to the correspondent textbox. So far, so good.
PROBLEM: The problem is that the applications opens so popup's as the number of clicks that I do in image button. What I want is that only opens one popup at a time. That when it's already one open, this closes and open a new popup.
For that I have a .JS file that have this: ------------------------------------------------- var NewWnd = null;
[...]
This is a VB.Net group. Please post only to the appropriate groups. Thx.
-- Armin
"ruca" <ru***@iol.pt> schrieb Hi Armin, If you can see in my signature it says:
------------------------------------ Programming ASP.NET with VB.NET Thank's (if you try to help me) Hope this help you (if I try to help you) ruca ------------------------------------
It's not interesting whether you are using VB.Net for programming as long as
the question is not related to the VB.Net programming language. Even after
reading your question again I don't see any relation.
--
Armin
* "ruca" <ru***@iol.pt> scripsit: The problem is that the applications opens so popup's as the number of clicks that I do in image button. What I want is that only opens one popup at a time. That when it's already one open, this closes and open a new popup.
For that I have a .JS file that have this: ------------------------------------------------- var NewWnd = null;
function DestroyWnd() { // close the current window if(this.NewWnd != null) { this.NewWnd.close(); this.NewWnd = null; } }
function pick(Year,Month,Day) { if((this.NewWnd == null) || (this.NewWnd.closed)) { var url = "Calendar.aspx?srcA=" + Year + "&srcM=" + Month + "&srcD=" + Day this.NewWnd = window.open(url, "_blank", "height=200, width=200, left=250, top=200, " + "location=no, menubar=no, resizable=no, " + "scrollbars=no, titlebar=no, toolbar=no", true); } else { DestroyWnd(); pick(Year,Month,Day); } } -------------------------------------------------
Because buttons do postback my .JS variable (NewWnd) is reset and never mantain the value of window. How can I solve this?
I don't see any relation to VB.NET programming...
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Anyone want to sugest something useful for my problem? I appreciate your
help.
--
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca
"ruca" <ru***@iol.pt> escreveu na mensagem
news:ea**************@tk2msftngp13.phx.gbl... Hi,
DESCRIPTION: I'm developing an application that when I need to insert a date, I use 3 textbox's and one image button. This image button open's a small popup window with a calendar, allowing user choose date. Then, this popup
returns the year, month and day to the correspondent textbox. So far, so good.
PROBLEM: The problem is that the applications opens so popup's as the number of clicks that I do in image button. What I want is that only opens one popup at a time. That when it's already one open, this closes and open a new popup.
For that I have a .JS file that have this: ------------------------------------------------- var NewWnd = null;
function DestroyWnd() { // close the current window if(this.NewWnd != null) { this.NewWnd.close(); this.NewWnd = null; } }
function pick(Year,Month,Day) { if((this.NewWnd == null) || (this.NewWnd.closed)) { var url = "Calendar.aspx?srcA=" + Year + "&srcM=" + Month + "&srcD=" +
Day this.NewWnd = window.open(url, "_blank", "height=200, width=200,
left=250, top=200, " + "location=no, menubar=no, resizable=no, " + "scrollbars=no, titlebar=no, toolbar=no", true); } else { DestroyWnd(); pick(Year,Month,Day); } } -------------------------------------------------
Because buttons do postback my .JS variable (NewWnd) is reset and never mantain the value of window. How can I solve this?
-- Programming ASP.NET with VB.NET Thank's (if you try to help me) Hope this help you (if I try to help you) ruca
Hi Ruca,
What I do not understand why it should be such an anoying popup windows.
Most people have a popup killer.
This can be nicely done by creating an area on your form where that calender
control is in and you hide another control and after that you hide the
calender control again.
Now you are taking a lot of work doing that what most people hate.
Just my thought,
Cor
HI Ruca,
why don't you try to disable the button if the window is already open?
"ruca" <ru***@iol.pt> wrote in message
news:ea**************@tk2msftngp13.phx.gbl... Hi,
DESCRIPTION: I'm developing an application that when I need to insert a date, I use 3 textbox's and one image button. This image button open's a small popup window with a calendar, allowing user choose date. Then, this popup
returns the year, month and day to the correspondent textbox. So far, so good.
PROBLEM: The problem is that the applications opens so popup's as the number of clicks that I do in image button. What I want is that only opens one popup at a time. That when it's already one open, this closes and open a new popup.
For that I have a .JS file that have this: ------------------------------------------------- var NewWnd = null;
function DestroyWnd() { // close the current window if(this.NewWnd != null) { this.NewWnd.close(); this.NewWnd = null; } }
function pick(Year,Month,Day) { if((this.NewWnd == null) || (this.NewWnd.closed)) { var url = "Calendar.aspx?srcA=" + Year + "&srcM=" + Month + "&srcD=" +
Day this.NewWnd = window.open(url, "_blank", "height=200, width=200,
left=250, top=200, " + "location=no, menubar=no, resizable=no, " + "scrollbars=no, titlebar=no, toolbar=no", true); } else { DestroyWnd(); pick(Year,Month,Day); } } -------------------------------------------------
Because buttons do postback my .JS variable (NewWnd) is reset and never mantain the value of window. How can I solve this?
-- Programming ASP.NET with VB.NET Thank's (if you try to help me) Hope this help you (if I try to help you) ruca
Then how do you make the nice little area modal. Programmers usually want
to force an input. Is there a way to do this with an area on the page?
Thanks,
Jim
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl... Hi Ruca,
What I do not understand why it should be such an anoying popup windows. Most people have a popup killer.
This can be nicely done by creating an area on your form where that
calender control is in and you hide another control and after that you hide the calender control again.
Now you are taking a lot of work doing that what most people hate.
Just my thought,
Cor
> Then how do you make the nice little area modal. Programmers usually want to force an input. Is there a way to do this with an area on the page?
Why not?
Cor
Just FYI:
Popup killers will kill popup window only if it served from another domain.
If it's served from the same domain of the original URL then Popup killers
will let it through.
So do not worry about it.
George.
"Jim M" <an********@discussions.microsoft.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl... Then how do you make the nice little area modal. Programmers usually want to force an input. Is there a way to do this with an area on the page?
Thanks,
Jim
"Cor Ligthert" <no**********@planet.nl> wrote in message news:%2****************@TK2MSFTNGP10.phx.gbl... Hi Ruca,
What I do not understand why it should be such an anoying popup windows. Most people have a popup killer.
This can be nicely done by creating an area on your form where that calender control is in and you hide another control and after that you hide the calender control again.
Now you are taking a lot of work doing that what most people hate.
Just my thought,
Cor
Hi George, Just FYI: Popup killers will kill popup window only if it served from another
domain. If it's served from the same domain of the original URL then Popup killers will let it through. So do not worry about it.
I told that most people do not like the use of popup screens and especially
in a Web situation.
They use Popup killers, that it is not killed does not make that people like
them.
Reason, you have always to click them away when you have used them and they
appear always on the place where is the information you need to type in the
answer. While it is not something that appears on another monitor you can
put it in aspx as well fixed in the same window.
However just my idea about this
Cor
I was not referring to your comments.
I was just stating that pop ups are ok to use even if 90% people using popup
killers.
Also i would like to notice that it's matter of personal preferences of
liking and not liking popups.
I have not seen any study on that but from my own experience popup(s) are ok
if they are logically fit into the application.
I have simple example.
On my site people can enter HTML message and at some point the might want to
embed image into text.
I think it's a good choice to popup a small window to allow them upload
image rather than navigating away from text they entered and having them
worried that all they have entered so far is lost because they did not click
submit button.
George.
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:uN**************@TK2MSFTNGP12.phx.gbl... Hi George,
Just FYI: Popup killers will kill popup window only if it served from another domain. If it's served from the same domain of the original URL then Popup
killers will let it through. So do not worry about it. I told that most people do not like the use of popup screens and
especially in a Web situation. They use Popup killers, that it is not killed does not make that people
like them.
Reason, you have always to click them away when you have used them and
they appear always on the place where is the information you need to type in
the answer. While it is not something that appears on another monitor you can put it in aspx as well fixed in the same window.
However just my idea about this
Cor
Hi George,
I did not say you have to add a new pag, I think it is better to use a part
of the page as a special area for that. (And I am not talking about plain
html or asp, I am talking about serverside aspx applications)
And I said consequently that it is just my thought.
Cor
Fix your system clock.
"Jim M" <an********@discussions.microsoft.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl... Then how do you make the nice little area modal. Programmers usually want to force an input. Is there a way to do this with an area on the page?
Thanks,
Jim
"Cor Ligthert" <no**********@planet.nl> wrote in message news:%2****************@TK2MSFTNGP10.phx.gbl... Hi Ruca,
What I do not understand why it should be such an anoying popup windows. Most people have a popup killer.
This can be nicely done by creating an area on your form where that calender control is in and you hide another control and after that you hide the calender control again.
Now you are taking a lot of work doing that what most people hate.
Just my thought,
Cor
Hi
No need to check... give it a name
window.open("pageToGo.aspx","myCalendarWin","Windo w SPECS");
This will reuse window if already open
--
Best Regards
Vidar Petursson
==============================
Microsoft Visual: Scripting MVP 2000-2004 http://www.icysoft.com/ http://www.deus-x.com/ Instant e-commerce http://www.microsoft.com/technet/scriptcenter/
Playground: http://213.190.104.211/ ( IE 5.5+ only )
No matter where you go there you are
==============================
"ruca" <ru***@iol.pt> wrote in message
news:ea**************@tk2msftngp13.phx.gbl... Hi,
DESCRIPTION: I'm developing an application that when I need to insert a date, I use 3 textbox's and one image button. This image button open's a small popup window with a calendar, allowing user choose date. Then, this popup returns the year, month and day to the correspondent textbox. So far, so good.
PROBLEM: The problem is that the applications opens so popup's as the number of clicks that I do in image button. What I want is that only opens one popup at a time. That when it's already one open, this closes and open a new popup.
For that I have a .JS file that have this: ------------------------------------------------- var NewWnd = null;
function DestroyWnd() { // close the current window if(this.NewWnd != null) { this.NewWnd.close(); this.NewWnd = null; } }
function pick(Year,Month,Day) { if((this.NewWnd == null) || (this.NewWnd.closed)) { var url = "Calendar.aspx?srcA=" + Year + "&srcM=" + Month + "&srcD=" + Day this.NewWnd = window.open(url, "_blank", "height=200, width=200, left=250, top=200, " + "location=no, menubar=no, resizable=no, " + "scrollbars=no, titlebar=no, toolbar=no", true); } else { DestroyWnd(); pick(Year,Month,Day); } } -------------------------------------------------
Because buttons do postback my .JS variable (NewWnd) is reset and never mantain the value of window. How can I solve this?
-- Programming ASP.NET with VB.NET Thank's (if you try to help me) Hope this help you (if I try to help you) ruca
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Noozer |
last post by:
When using the WebBrowser control, is it possible to cause popup windows to
appear within the WebBrowser control itself instead of a new window?
This is what I've written in the NewWindow2 event,...
|
by: Moon |
last post by:
Seems I still haven't got the hang of all those window generating code
in Javascript. I've got a page with about 15 photo thumbnails. When you
click on a thumbnail a new window pops up which shows...
|
by: Obantec Support |
last post by:
Hi
i leached some code and strung together a popup i need for a page with 5
help buttons.
Now i could use 5 scripts and pre-load the values but i would rather get a
better understanding of how...
|
by: Shaun McKinnon |
last post by:
HI...Here's my problem...I have a popup window that loads when i want it to,
but it's not sized properly. I've set the size, but it doesn't seem to
work. I've been on 8 different websites to find...
|
by: E Michael Brandt |
last post by:
I have been lurking here for some time, and now would like to ask a
question of you clever coders:
My JustSo PictureWindow 3 Extension for Dreamweaver has stumbled in the
face of the new Opera...
| |
by: |
last post by:
So many websites can get around my Googlebar's popup blockers. Even Opera 8
can not stop those popups. I looked into the codes, and I can find nothing
showing me how it is done. Can anyone help me...
|
by: Davey |
last post by:
I have a website which has a popup window (this only opens when the user
chooses to open it). In the popup window I have a <select> control which
lists a selection of "classes". Each class has a...
|
by: ypress |
last post by:
Hi.
I have a page that contains this simple function:
<script language="javascript">
function openPop(url, name, w, h) {
var features = "";
features += "scrollbars=no,";
features +=...
|
by: GrantS |
last post by:
I am having a problem closing a popup window opened modally. When I
try to close the window (when the user hits save button and the data
has been processed), the Popup window opens as a full screen...
|
by: anthony.turcotte |
last post by:
Hi,
I've looked for a solution to this problem on google, read posts in
this newsgroup and I still haven't found anything that could help me.
Here's the scenario.
1. User accesses...
|
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,...
| |
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...
|
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...
|
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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...
| |