★ wanayoo — archive 1999 http://www.devshed.com/Client_Side/JavaScript/Mini_FAQ/comments.html/c1701/Nouvelle recherche | Portail wanayoo

Developer Shed
Thursday, 08.17.2000  
Sooner, or later, as we start learning and using JavaScript, we will all have questions we want answered. One author, Danny Goodman, has compiled a list of typical questions people ask when starting out with JavaScript.

HOME > CLIENT SIDE > JAVASCRIPT > ARTICLE > COMMENTS    PHP SOURCE

Power Search
Free Newsletter:


Client Side
DHTML
Flash
Graphics
JavaScript
XML

Server Side
Administration
JServ
MySQL
Perl
PHP
Python
Roxen
Zend
Zope

Tools
HTML Editors
Graphic Editors
FTP Programs

Dev Talk
Forums
Mailing List
Book Samples
Brain Dump
Developer News
Feedback

ClipScripts
Add script
Edit script

Other Stuff
DevShed RDF
Propaganda!


Advertise
on DevShed
.
JavaScript Mini-FAQ
Sooner, or later, as we start learning and using JavaScript, we will all have questions we want answered. One author, Danny Goodman, has compiled a list of typical questions people ask when starting out with JavaScript.

Name: Jim Lum
Subject: Re: closewin + form submit
Date: 10-26-1999 03:30PM

Hummm...onSubmit="self.window.close()" closes the pop-up window, but the form was not submitted...:( Being a java novice I cobbled together some java code and found out that sequence is important. If window.close is first, that is done but the form is NOT submitted. If form.submit() is first, the form is submitted, but the pop-up is NOT closed. I would like to think that java functions always return to their caller and thus executes to the end of the java code but it does not look that way. :( I read some of the java documentation and could not find any reference to java functions that implicitly terminate a java routine....but it seems that there are some. Am I missing something or am I wandering down some weird path? ...because I'd really like to close the pop-up window when the form is submitted. My form statement (without onSubmit) looks like:

<form method="post" action="/old?u=http%3A%2F%2Fwww.devshed.com%2FClient_Side%2FJavaScript%2FMini_FAQ%2Fcomments.html%2Fc1701%2Fstore.cgi&y=1999" target="cart">

My submit statement looks like:

<input type="image" name="add_to_cart" value="buy" src="/old?u=http%3A%2F%2Fwww.devshed.com%2FClient_Side%2FJavaScript%2FMini_FAQ%2Fcomments.html%2Fc1701%2Forder.gif&y=1999" border="0">

and also fails if type="submit".



Other posts in this thread:
 Top
 • closewin + form submit  Jim Lum  10-14-1999 08:57PM 
       • Re: closewin + form submit  onReact  10-26-1999 03:59AM 
             • Re: closewin + form submit  Jim Lum  10-26-1999 03:30PM 
       • Re: closewin + form submit  Christopher Camacho  06-30-2000 04:32PM 


Reply to this post:
Name:

Preview Comment.
Notify me of replies to this message.
Email:
Subject:
Tip: Put any source code between [code][/code] tags to increase readability


Visit the JavaScript Forum!

New On DevShed:
• MySQL Developer Contests PostgreSQL Benchmarks
• PHP 101 (part 3) - Chocolate Fudge And Time Machines
• MaxSQL Announced
•  PHP 101 (Part 2) - Shakespeare's Rose
• PHP 101 (Part 1) - Secret Agent Man
• The Search For The Perfect Web Host
• Perl 101 (Part 5) - Sub-Zero Code
•  Submit Your News..

Hot Forum Topics:
• Credit Cards
• Backing-up in Netscape
• Want help from advanced PHP users
• making mysql timestamp look friendly
• display performance
• display performance


Adsmart Network ad
Copyright © 1997-2000 ngenuity. All rights reserved. Privacy Policy.