I hate it when this happens.  I had another site open
that uses frames and the results were being put in that
frameset instead of my frameset.  All is well with this
script.  

~Jason

-----Original Message-----
From: Dowdell, Jason G [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 16, 2002 9:41 AM
To: CF-Talk
Subject: ie vs ns javascript issue


Hi all,

I have the following javascript on a popup window.
if (navigator.appName == "Netscape") 
  {
                function CloseForm(theForm)
                        {
                        theForm.submit();
                        setTimeout(window.close, 2000);
                        }
  }
 else if (navigator.appName == "Microsoft Internet Explorer")
  {
                function CloseForm(theForm)
                        {
                        window.close();
                        }
  }
The popup window is a form that submits to a target frame.  I had to put the
settimeout
in for ns because it would close the window before the submit action took
place.  But
ie bombs on the settimeout so I had to take it out and just use the
window.close().  
I call this function with an onclick="javascript:CloseForm(this.form);".
When I had
the "theForm.submit();" on the ie version of the function it would submit
the form twice.
So I took it off and now it submits the form and closes the window but the
target
frame never gets refreshed.  Basically it's submitting the form but it's not
sending 
the action to the target frame cause it's not reading it or something.

Any ideas?

Thanks,
jason

<!---
     Jason Dowdell
     [EMAIL PROTECTED]
     321.799.6845
     IM AES - Web Developer
 --->


______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to