Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Main window vs small popup?? popup = troubles??

Status
Not open for further replies.

adelante

Programmer
May 26, 2005
82
DK
In the browser I would like users to submit data in a small popup window instead of loading the page in the main window. Howeever I dont know if that will cause me troubles:

I dont got any popup blocker installed on my computer, so I was wondering if I'm getting myself into troubles by letting users fill out a form in a popped up window instead of loading the submit form in another page in the main window??

Version 1:
1. Main window: clicking "Edit data"
2. Main window loads a new page with a form
3. Form is filled out and submitted
4. Main window with correct data is shown again

Version 2:
1. Main window: clicking "Edit data"
2. Small window popup
### will the popup-blockers, block this window??? ###
3. The form is filled out and submitted
4. The main window is autmaticly reloaded

I guess you understand my worries...

Should I choose a popup window, or load the "Edit" page in the main window??
 
In version 2 you state:
4. The main window is autmaticly reloaded
So it seems to me that this whole popup idea is just for "fun" - since there is no need for it.

You could "pretend" that it's using a popup - but instead really deliver a DIV which looks like a popup window and "floats" over the page content. Then you would bypass any of the popup blocker issues completely.

Regardless, I suggest you focus on delivering value rather than getting bogged down in trivia [smile]

Cheers,
Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 
Kind of for "fun". But it just looks weird with 17" of monitor and just 4 formfields to edit in the top-left corner, so if it could be done in a window/div it could have been cool.

I just spend 30 minutes looking for scripts that would blur/dim the background and place a divbox in the middle of the screen, but I couldn't find any. :(

And as you said better keep focus on my perl and databases, than fancy eyecandy.

However if anyone know of a turn-key DIV box from which I can submit data and reload the mainpage it would be great. I have seen some where the background gets a bit dark and the DIV is on top.

Thanks in all cases! :)

 
It doesn't have to be in the top left corner. You can position the div wherever you want. In the style, set position=absolute and top= and left= wherever you want. That is how all these drop down menus work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top