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

Forms and Dialogs

This is what I am trying to accomplish:

http://www.mississippiprinting.com/M...Size=8%20x%209

I want the small calculator window to be always in front and to be able to
interact either with it or the main page. As the calculator is a normal
window it disapears behind the main window when focus shifts to the main
window. I can cure this problem by opening the calculator as a modeless
dialog BUT! Then the form information from the main page does not get sent
to it - it opens an empty dialog AND a normal page.

The problem is stripped down to it's barest essence here

http://www.mississippiprinting.com/M...windowtest.asp

Clicking Normal brings up a normal window that has recieved the form
information but disapears behind the main page when you click in the main
page.

Clicking Dialog brings up an empty dialog that does not know the form
information but does stay on top when you click in the main page and a
normal page that does know the form information .

How can I have the popup window behave like the modeless dialog but still
receive form information?

Thanks!
Jul 23 '05 #1
4 1238
Lee
Simon Wigzell said:

This is what I am trying to accomplish:

http://www.mississippiprinting.com/M...Size=8%20x%209

I want the small calculator window to be always in front and to be able to
interact either with it or the main page.


That's a function of the user's window manager environment
which is beyond your control.

Depending on the user's environment, the window in front
is usually the only one that they can interact with.

You can either make it a normal window and give it focus
when you want to bring it to the front, or you can make
it a dynamic part of the main window whose visibility
is toggled to make it pop up or down.

Jul 23 '05 #2
snip

Thanks, but if you had read the entire post and tried my examples you will
see that what I require is indeed possible by operning the window as a
modeless dialog. My problem is that it cannot be used as the target of a
form for some reason.
Jul 23 '05 #3
Simon Wigzell wrote:
snip

Thanks, but if you had read the entire post and tried my examples you will
see that what I require is indeed possible by operning the window as a
modeless dialog. My problem is that it cannot be used as the target of a
form for some reason.


It can not be used as the target of a form because it is a modeless dialog.

<url:
http://msdn.microsoft.com/workshop/a...lessdialog.asp
/>

As you can see, it does not have a "name" attribute, and as such can not be
the TARGET of a form.

As for what you want being possible. When I visit your stripped down version
at <url: http://www.mississippiprinting.com/M...windowtest.asp /> I receive
the following error message in Firefox 0.8:

Error: window.showModelessDialog is not a function
Source File: http://www.mississippiprinting.com/M...windowtest.asp
Line: 25

so it's obviously not possible. When I visit the main page you posted at <url:
http://www.mississippiprinting.com/M...Size=8%20x%209
/> in Firefox 0.8 and scroll left or right, I receive four instances of:

Error: document.all has no properties
Source File:
http://www.mississippiprinting.com/M...Size=8%20x%209

Line: 144

so whatever you're trying to do there isn't working either. Not to mention
your site seems designed for a browser width I do not use, forcing me to
scroll from side to side to see the content. I especially like:

<select onchange="DoCosting();" name="FreightOption" size="1" style="width:
212; height: 212"> which produces a square <select> filled with ... nothing.
And DATE JOB TO PRINTER and DESIRED DELIVERY DATE don't do anything in Firefox
0.8 except cause the following errors:

Error: show_calendar is not defined
Source File: javascript:void(window.__tabextensions__LastEvent = (new
Date()).getTime());show_calendar('ProductForm.Proj ectReleaseDate');
Line: 1

Error: show_calendar3 is not defined
Source File: javascript:void(window.__tabextensions__LastEvent = (new
Date()).getTime());show_calendar3('ProductForm.Des iredDeliveryDate');
Line: 1

I could go on, but I can't be bothered.

In short: don't expect all your customers to be using the newest version of
Internet Explorer, don't expect all your customers to be using a browser
viewport width that makes your site look "pretty", don't expect those
customers who are using the newest version of Internet Explorer and have their
viewport width set appropriate to have Javascript enabled.

--
| Grant Wagner <gw*****@agricoreunited.com>

* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/...ce/frames.html

* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/a...ence_entry.asp

* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
* http://www.mozilla.org/docs/web-deve...upgrade_2.html
Jul 23 '05 #4
Lee
Simon Wigzell said:

snip

Thanks, but if you had read the entire post and tried my examples you will
see that what I require is indeed possible by operning the window as a
modeless dialog. My problem is that it cannot be used as the target of a
form for some reason.


I read the entire post and tried your examples.
They don't do what you suggest that they do.
What you require is indeed not possible.

Jul 23 '05 #5

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

Similar topics

6
by: gonzalo briceno | last post by:
I have been using phplib for a while and I really like the framework except for form creation. Maybe it is me but I in my opinion there isn't a good way to create forms or should I say, everything...
11
by: Christian Wilcox | last post by:
Does anyone know of any existing Python implementations of an XForms viewer? Christian
2
by: icedgar | last post by:
am using the following script in the BeforeUpdate area of a main form. Private Sub Form_BeforeUpdate(Cancel As Integer) Dim strMsg As String strMsg = "Do you wish to save your changes?" If...
2
by: David | last post by:
Hello, I have an application that has been running for years and had little problem with it. We've been retesting the latest code under Windows 2003 and found a surprise. There is a certain...
11
by: Paul Tremblay | last post by:
Hi, I can't seem to locate the visual C++ (pre .NET) ng. This may be slight off topic here - please point me to the correct ng if it is. Without going into much detail (and repeating myself...
20
by: Peter Oliphant | last post by:
How does one launch multiple forms in an application? Using Photoshop as an example, this application seems to be composed of many 'disjoint' forms. Yet, they all seem somewhat 'active' in...
1
by: dusiapapa | last post by:
Hi everybody! I've already posted this in the "microsoft.public.dotnet.framework.windowsforms". I have windows forms application containing a lot of MDI (shown with ..Show()) and modal (shown...
14
by: =?Utf-8?B?UHVjY2E=?= | last post by:
Hi, I'm using VS2005 and .net 2.0. I'm creating an application that has 3 forms. I want allow users to move forward and backward with the forms and retain the data users have entered. I thought...
8
by: =?Utf-8?B?RGF2ZQ==?= | last post by:
Is this possible? I have 3 forms frmGrandparent, frmParent & frmChild. Can frmGrandparent do a frmParent.ShowDialog() and then (while frmParent is open) do a frmChild.ShowDialog(). At the end of...
3
by: jarremw | last post by:
hello, how can i get my forms to act like dialogs? like if the user clicks anywhere outside the current form, the form flashes and the user can not do anything til that form closes? thanks
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
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,...
0
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,...
0
jinu1996
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...
0
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...
0
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...
0
agi2029
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,...
0
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...

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.