codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Implementing setTimeout causing problems  sherbir at 09:55 on Thursday, August 12, 2004
 

I have used a simple application.

A main window creates a child window at the click of a button.

In the child window, I am performing some operations and thru Javascript, I am closing the child window, and submitting the parent.

I want the submitting of parent window to take place 3 seconds after closing the child. Here's my code 4 the Javascript in the child :

mywin.document.write('<input type="submit" name="child_bttn_sub" value="Done" onClick= "javascript:self.opener.history.back(-1);self.close();setTimeout(window.parent.SubmitContent(),3000);">');

Here mywin is the child window object and SubmitContent() is the function in the parent form that I wish to execute.

It's not working...any1 has a clue ?








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  grouping records
•  loop through form checkboxes
•  Java Help
•  Pre-load Rotating Photographs
•  need help to customize a dhtml script.
•  Implementing setTimeout causing problems
•  setTimeout for custom objects
•  How to change dynamically the value of CONTENTof META object ?
•  How to change the value of CONTENTof META object ?


Recent Articles
Simple Thumbnail Solution
Type Anywhere
A Better Moustrap: FmtDate to replace FormatDateTime
ASP.NET Forum Source Code
Internal Search Engine
Javascript Growing Window
Simple date validation
Search engine friendly URLs using ASP.NET (C#.NET)
Function to Return Alpha Characters Only
The OSI Reference Model - A Clear and Concise Illustration !


Site Survey
Help us serve you better. Take a five minute survey. Click here!

© Copyright codetoad.com 2001-2004