PDA

View Full Version : modal popup and placment


delphi_dawg
02-28-2002, 09:04 PM
Hi all,

I located the code snippet about chromeless windows,
but is there a way to....

1) Make it modal
2) Make the exact size and location when created


jsp would be best


thanks
tony

Dr. Web
02-28-2002, 10:58 PM
first off, may I ask why 'modal' windows? You can specify something so similar with javascript, place it where you want, and size it accordingly.... with very little hit on performance of the users machine.

You start monkeying with JAVA, and you have to start the JVM (java virtual machine) which is a HUGE performance hit. If you can avoid it, ONLY use java/ jsp on the server side... because of slow performance on the client end.

The only reason I have seen for a java/ jsp/ vb based window, is so that it may not be closed by the user unless certain crietria are met. Kind of like your windows login box.

Even still, there are tons of ways to control your users without this method.

delphi_dawg
03-01-2002, 08:41 PM
Hi all,

Let me explain "modal" - modal meaning something has to be selected from the popup, and this value will be placed in the callers form, in the proper area...

If the user happens to click on the parent window - then the child window will come back to the top...

The goal is to create a page with multiple "combo" boxes - that aren't really combo boxes at all, just a read only edit box with a javascript event tied to it, that will display a list of items from the database, allow the user to select it, and fill in the readonly edit box with that value...

that is why i was looking to place the popup, chromeless window in an exact spot, with exact dimensions -

thanks for the help

take care
tony

Dr. Web
03-02-2002, 12:36 AM
let me suggest something: dont make this harder than it needs to be. The idea is good, though maybe a bit more complicated than need be. I have used this idea a lot. Let me tell you how I make it work, and see if it might work for you.

I have a select box, listing codes for military rank.

Rank: e1
e2
e3
e4
e5

Now, you can pick the rank if you know what it is... OR you can click on the word RANK, and a pop up spawns complete with descriptions and the code:

Rank: title
e1 private
e2 private
e3 private first class
e4 specialist/ corporal

and if you click on a rank, the window closes and selects the appropriate rank from the list. If the user clicks the main page, the pop up closes. In this, I have allowed the user to use either method of selection.

Trying to position a pop up in exact coords will be difficult, since screen resolution changes between 800x600 and 1024x768. personally I dont see a reason to go all out an make a chromeless window just for this task... but the code is out there if you really want to.

daslight
11-01-2004, 04:32 PM
dr. web where can I find Javascript code like you are talking about? That is exactly what I need.

hysterio
11-02-2004, 07:49 AM
Originally posted by delphi_dawg
Hi all,

I located the code snippet about chromeless windows,
but is there a way to....

1) Make it modal
2) Make the exact size and location when created


jsp would be best


thanks
tony

What if i just want to make it modal? Is this possible with simple scripting or not time-intensive code???