l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2004 Sep 11 02:04

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] [OT] JavaScript / HTML Help: Popup windows and forms
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] [OT] JavaScript / HTML Help: Popup windows and forms

On Friday 10 September 2004 07:36 pm, Richard Crawford wrote:
> I've seen this done, so I know it's possible.  What I'd like to be able 
> to do is the following:
> Have a main browser window, say index.php.  On this page is a list of 
> names or other information plus a link that reads "Add your name". 
> Clicking on the link opens up a popup window

This is not hard.  If you want to use window.open() to
control the attributes and location of the popup, try
something like:

  <a href="dummy.html" onclick="window.open(...); return false">

where dummy.html might be a page that displays "your browser
does not support JavaScript" or some such.

> with a form for users to  
> enter their information.  When they click "submit", then the form 
> information is submitted, the popup window closes, and the main page 
> refreshes to show the new added information.

There are a few different ways to refresh the main page from
a child window with JavaScript, depending on what you need;
for example:


It's also possible to rewrite sections of a page directly
(without making a request to the server) which is pretty
cool, but that's a bit trickier.

-- Rod
vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
O'Reilly and Associates
For numerous book donations.