Re: Target back to parent.

2002-03-13 Thread han peng

okok.. this is wat i do.. i hav it working to call for a look up.. from
main.. to a child.. then do a query and pass bk my query result to the
parent...


heres the codes.. hope it helps..


--- start of parent-
SCRIPT LANGUAGE=JavaScript TYPE=text/javascript
!--
function find_Street(code)
{
 if((code != '')(document.form.strStreetName.value==''))
 {
   sList = window.open(presale/CFfindStreet.cfm?strPostalCode=+code,
_blank, width=1,height=1);
 }
}

function find_PostalCode(street,block)
{
 if ((street != '')(block != ''))


sList =
window.open(presale/CFfindPostalCode.cfm?strStreetName=+street+strBlockN
umber=+block, _blank, width=1,height=1);
 }
}

function remLink() {
  if (window.sList  window.sList.open  !window.sList.closed)
window.sList.opener = null;
}

//--
/SCRIPT
.
..
  ...
   tr
td width=5%BLK/HSE NO./td
td width=25%cfinput type=text name=strBlockNumber
size=5 maxlength=5 message=Please enter your Block / House Number.
required=Yes onerror=setFocus  value=#session.prospect.strBlockNumber#
onblur=find_PostalCode(document.form.strStreetName.value,this.value);/td

td width=5%FLR./td
td width=25%cfinput type=text name=strFloorNumber
size=5 maxlength=5 message=Please enter numbers only for your floor
number. required=No value=#session.prospect.strFloorNumber#
validate=integer  onerror=setFocus/td
td width=5%UNIT/td
td width=25%cfinput type=text name=strUnitNumber
size=5 maxlength=5 message=Please enter numbers only for your unit
number. required=No  value=#session.prospect.strUnitNumber#
validate=integer onerror=setFocus/td
td width=5%nbsp;/td
td width=5%nbsp;/td
  /tr
  tr
tdST/td
td colspan =3cfinput type=text name=strStreetName
size=50 maxlength=50 message=Please enter your Street Name.
required=Yes onerror=setFocus  value=#session.prospect.strStreetName#
onblur=find_PostalCode(this.value,
document.form.strBlockNumber.value);/td
tdBLDG/td
td colspan =3cfinput type=text name=strBuildingName
size=50 maxlength=50 message=Please enter your Building Name.
required=No  value=#session.prospect.strBuildingName#/td
  /tr
  tr
tdPD/td
tdcfinput type=text name=strPostalName size=8
maxlength=6 message=Please choose your Postal Code. validate=integer
required=Yes  value=#session.prospect.strPostalName#  onerror=setFocus
onblur=find_Street(this.value); 
 /td
 blahblah..

end of parent---

---start of child---

this only contains how i pass the value bk to parent..

  SCRIPT LANGUAGE=JavaScript
  !--
  if (window.opener  !window.opener.closed)
{
window.opener.document.form.strStreetName.value
='#UCASE(StreetName)#';
window.opener.document.form.strPostalName.value ='#strPostalCode#';
   window.close();
}
  // --
  /SCRIPT

---end of child---

cheers
han
- Original Message -
From: Shawn Grover [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, March 12, 2002 5:47 AM
Subject: RE: Target back to parent.


 Niel out of curiosity.. is your child window modal?  If so, the rules
 are a little bit different.  We've found that the only way to process the
 action page nicely (meaning without a blank window opening for a moment),
is
 to use a hidden IFRAME on the modal window, and set our form's target to
the
 IFrame.

 Before we did this (and having proved it again afterwards), we were
getting
 some tough javascript problems to fix (unable to refresh the current page,
 etc.).

 Hope that helps.

 Shawn Grover


 -Original Message-
 From: Neil H. [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 11, 2002 2:36 PM
 To: CF-Talk
 Subject: Re: Target back to parent.


 Sigh
 This is frustrating.  What a long day.

 Neil

 - Original Message -
 From: Steve Oliver [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Monday, March 11, 2002 4:05 PM
 Subject: RE: Target back to parent.


  That's what I have netscape for.  That's the only thing I like about it,
  is it's little javascript error log. It catches every javascript error,
  unlike IE, which sometimes lets them fly on by without doing anything.
 
  _
  steve oliver
  senior internet developer
  atnet solutions, inc.
  http://www.atnetsolutions.com
 
 
  -Original Message-
  From: Neil H. [mailto:[EMAIL PROTECTED]]
  Sent: Monday, March 11, 2002 4:01 PM
  To: CF-Talk
  Subject: Re: Target back to parent.
 
 
  Yeah for some reason that bit of code didn't work :(
 
  Neil
 
  - Original Message -
  From: Steve Oliver [EMAIL PROTECTED]
  To: CF-Talk [EMAIL PROTECTED]
  Sent: Monday, March 11, 2002 3:51 PM
  Subject: RE: Target back to parent.
 
 
   You don't need to send the form variables back to the mainwindow.
  
   Just submit the form in the child window, process the data there, then
   close it and reload the main

RE: Target back to parent.

2002-03-11 Thread Steve Oliver

You can reference the parent window with opener

opener.document.formname.fieldname.value=whatever;
window.close();

_
steve oliver
senior internet developer
atnet solutions, inc.
http://www.atnetsolutions.com


-Original Message-
From: Neil H. [mailto:[EMAIL PROTECTED]] 
Sent: Monday, March 11, 2002 12:47 PM
To: CF-Talk
Subject: Target back to parent.


If I use JavaScript to spawn a new window how can I have that spawned
window's form post back to the parent page, and then close the spawned
window.

Thanks,

Neil


__
Why Share?
  Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
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



Re: Target back to parent.

2002-03-11 Thread Neil H.

I am not worried about form field access.  I am more worried about posting
back to that original page and closing the current window (hence the
window.close())

Is there a target attribute?

Thanks,

Neil

- Original Message -
From: Steve Oliver [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, March 11, 2002 12:59 PM
Subject: RE: Target back to parent.


 You can reference the parent window with opener

 opener.document.formname.fieldname.value=whatever;
 window.close();

 _
 steve oliver
 senior internet developer
 atnet solutions, inc.
 http://www.atnetsolutions.com


 -Original Message-
 From: Neil H. [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 11, 2002 12:47 PM
 To: CF-Talk
 Subject: Target back to parent.


 If I use JavaScript to spawn a new window how can I have that spawned
 window's form post back to the parent page, and then close the spawned
 window.

 Thanks,

 Neil


 
__
Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
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



RE: Target back to parent.

2002-03-11 Thread Steve Oliver

What exactly do you mean by posting back to the page? You run that
script in the spawned window, and it sends anything you want back to the
parent window, then the window.close() (run in the spawned window) will
close the spawned window.

_
steve oliver
senior internet developer
atnet solutions, inc.
http://www.atnetsolutions.com


-Original Message-
From: Neil H. [mailto:[EMAIL PROTECTED]] 
Sent: Monday, March 11, 2002 1:04 PM
To: CF-Talk
Subject: Re: Target back to parent.


I am not worried about form field access.  I am more worried about
posting
back to that original page and closing the current window (hence the
window.close())

Is there a target attribute?

Thanks,

Neil

- Original Message -
From: Steve Oliver [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, March 11, 2002 12:59 PM
Subject: RE: Target back to parent.


 You can reference the parent window with opener

 opener.document.formname.fieldname.value=whatever;
 window.close();

 _
 steve oliver
 senior internet developer
 atnet solutions, inc.
 http://www.atnetsolutions.com


 -Original Message-
 From: Neil H. [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 11, 2002 12:47 PM
 To: CF-Talk
 Subject: Target back to parent.


 If I use JavaScript to spawn a new window how can I have that spawned
 window's form post back to the parent page, and then close the spawned
 window.

 Thanks,

 Neil


 

__
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
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



RE: Target back to parent.

2002-03-11 Thread Dylan Bromby

Neil;

This might help, it might not. I don't have code handy for forms, but
here's how you do it with links. Perhaps you can adapt this to work with
forms and if you get it, post back to the list. 

1.  Spawn the new window with a link like this:

A HREF=Javascript:open_window('window.cfm');Open window/A

2.  In window.cfm, use the following JS code in the HEAD block:

SCRIPT LANGUAGE=javascript

function windowManager(url) {
  window.parent.opener.location = url;
  window.parent.close();
}

/SCRIPT

3.  Also in the spawned window.cfm, put this code which will load
the value of the HREF in the original window and close the spawned
window:

A HREF=javascript:windowManager('newfile.cfm')New page in original
window, close this one./A

-Original Message-
From: Neil H. [mailto:[EMAIL PROTECTED]] 
Sent: Monday, March 11, 2002 10:04 AM
To: CF-Talk
Subject: Re: Target back to parent.


I am not worried about form field access.  I am more worried about
posting back to that original page and closing the current window (hence
the
window.close())

Is there a target attribute?

Thanks,

Neil

- Original Message -
From: Steve Oliver [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, March 11, 2002 12:59 PM
Subject: RE: Target back to parent.


 You can reference the parent window with opener

 opener.document.formname.fieldname.value=whatever;
 window.close();

 _
 steve oliver
 senior internet developer
 atnet solutions, inc.
 http://www.atnetsolutions.com


 -Original Message-
 From: Neil H. [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 11, 2002 12:47 PM
 To: CF-Talk
 Subject: Target back to parent.


 If I use JavaScript to spawn a new window how can I have that spawned 
 window's form post back to the parent page, and then close the spawned

 window.

 Thanks,

 Neil


 

__
Why Share?
  Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
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



RE: Target back to parent.

2002-03-11 Thread Shawn Grover

Yes, the Form object has a Target attribute.
(i.e. form action=mypage.cfm target=_top)

If needed, I think you can set the target dynamically through JS
document.forms[0].target=MainWindow;
(I could be wrong on this though... couldn't find confirmation in my JS
book.)

Hope that helps.

Shawn Grover

-Original Message-
From: Neil H. [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 11:04 AM
To: CF-Talk
Subject: Re: Target back to parent.


I am not worried about form field access.  I am more worried about posting
back to that original page and closing the current window (hence the
window.close())

Is there a target attribute?

Thanks,

Neil

- Original Message -
From: Steve Oliver [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, March 11, 2002 12:59 PM
Subject: RE: Target back to parent.


 You can reference the parent window with opener

 opener.document.formname.fieldname.value=whatever;
 window.close();

 _
 steve oliver
 senior internet developer
 atnet solutions, inc.
 http://www.atnetsolutions.com


 -Original Message-
 From: Neil H. [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 11, 2002 12:47 PM
 To: CF-Talk
 Subject: Target back to parent.


 If I use JavaScript to spawn a new window how can I have that spawned
 window's form post back to the parent page, and then close the spawned
 window.

 Thanks,

 Neil




__
Why Share?
  Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
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



Re: Target back to parent.

2002-03-11 Thread Neil H.

Correct so what would I use to submit the form to the opener  and then
close the child?

Neil

- Original Message -
From: Steve Oliver [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, March 11, 2002 1:08 PM
Subject: RE: Target back to parent.


 What exactly do you mean by posting back to the page? You run that
 script in the spawned window, and it sends anything you want back to the
 parent window, then the window.close() (run in the spawned window) will
 close the spawned window.

 _
 steve oliver
 senior internet developer
 atnet solutions, inc.
 http://www.atnetsolutions.com


 -Original Message-
 From: Neil H. [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 11, 2002 1:04 PM
 To: CF-Talk
 Subject: Re: Target back to parent.


 I am not worried about form field access.  I am more worried about
 posting
 back to that original page and closing the current window (hence the
 window.close())

 Is there a target attribute?

 Thanks,

 Neil

 - Original Message -
 From: Steve Oliver [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Monday, March 11, 2002 12:59 PM
 Subject: RE: Target back to parent.


  You can reference the parent window with opener
 
  opener.document.formname.fieldname.value=whatever;
  window.close();
 
  _
  steve oliver
  senior internet developer
  atnet solutions, inc.
  http://www.atnetsolutions.com
 
 
  -Original Message-
  From: Neil H. [mailto:[EMAIL PROTECTED]]
  Sent: Monday, March 11, 2002 12:47 PM
  To: CF-Talk
  Subject: Target back to parent.
 
 
  If I use JavaScript to spawn a new window how can I have that spawned
  window's form post back to the parent page, and then close the spawned
  window.
 
  Thanks,
 
  Neil
 
 
 

 
__
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
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



RE: Target back to parent.

2002-03-11 Thread Steve Oliver

Oh I see what you mean.

Hmmm, never tried that before. Something you might try is putting a
hidden form on the opener, then setting the values with javascript in
the child, and finally submit and close the child window. 

This would be in the parent window:
form name=blah action=whatever.cfm method=post
input type=hidden name=foo value=
/form

Then in the child window, you would put:
function submitForm(){
opener.document.blah.foo.value = somevalue;
opener.document.blah.submit();
window.close()
}

_
steve oliver
senior internet developer
atnet solutions, inc.
http://www.atnetsolutions.com


-Original Message-
From: Neil H. [mailto:[EMAIL PROTECTED]] 
Sent: Monday, March 11, 2002 1:50 PM
To: CF-Talk
Subject: Re: Target back to parent.


Correct so what would I use to submit the form to the opener  and then
close the child?

Neil

- Original Message -
From: Steve Oliver [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, March 11, 2002 1:08 PM
Subject: RE: Target back to parent.


 What exactly do you mean by posting back to the page? You run that
 script in the spawned window, and it sends anything you want back to
the
 parent window, then the window.close() (run in the spawned window)
will
 close the spawned window.

 _
 steve oliver
 senior internet developer
 atnet solutions, inc.
 http://www.atnetsolutions.com


 -Original Message-
 From: Neil H. [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 11, 2002 1:04 PM
 To: CF-Talk
 Subject: Re: Target back to parent.


 I am not worried about form field access.  I am more worried about
 posting
 back to that original page and closing the current window (hence the
 window.close())

 Is there a target attribute?

 Thanks,

 Neil

 - Original Message -
 From: Steve Oliver [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Monday, March 11, 2002 12:59 PM
 Subject: RE: Target back to parent.


  You can reference the parent window with opener
 
  opener.document.formname.fieldname.value=whatever;
  window.close();
 
  _
  steve oliver
  senior internet developer
  atnet solutions, inc.
  http://www.atnetsolutions.com
 
 
  -Original Message-
  From: Neil H. [mailto:[EMAIL PROTECTED]]
  Sent: Monday, March 11, 2002 12:47 PM
  To: CF-Talk
  Subject: Target back to parent.
 
 
  If I use JavaScript to spawn a new window how can I have that
spawned
  window's form post back to the parent page, and then close the
spawned
  window.
 
  Thanks,
 
  Neil
 
 
 

 

__
Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
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



RE: Target back to parent.

2002-03-11 Thread Shawn Grover

form  Target=MainWindow onSubmit=self.close();

Would that do the trick?  (haven't had the need to try it out, so no
sure)

Shawn Grover


-Original Message-
From: Neil H. [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 11:50 AM
To: CF-Talk
Subject: Re: Target back to parent.


Correct so what would I use to submit the form to the opener  and then
close the child?

Neil

- Original Message -
From: Steve Oliver [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, March 11, 2002 1:08 PM
Subject: RE: Target back to parent.


 What exactly do you mean by posting back to the page? You run that
 script in the spawned window, and it sends anything you want back to the
 parent window, then the window.close() (run in the spawned window) will
 close the spawned window.

 _
 steve oliver
 senior internet developer
 atnet solutions, inc.
 http://www.atnetsolutions.com


 -Original Message-
 From: Neil H. [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 11, 2002 1:04 PM
 To: CF-Talk
 Subject: Re: Target back to parent.


 I am not worried about form field access.  I am more worried about
 posting
 back to that original page and closing the current window (hence the
 window.close())

 Is there a target attribute?

 Thanks,

 Neil

 - Original Message -
 From: Steve Oliver [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Monday, March 11, 2002 12:59 PM
 Subject: RE: Target back to parent.


  You can reference the parent window with opener
 
  opener.document.formname.fieldname.value=whatever;
  window.close();
 
  _
  steve oliver
  senior internet developer
  atnet solutions, inc.
  http://www.atnetsolutions.com
 
 
  -Original Message-
  From: Neil H. [mailto:[EMAIL PROTECTED]]
  Sent: Monday, March 11, 2002 12:47 PM
  To: CF-Talk
  Subject: Target back to parent.
 
 
  If I use JavaScript to spawn a new window how can I have that spawned
  window's form post back to the parent page, and then close the spawned
  window.
 
  Thanks,
 
  Neil
 
 
 



__
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
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



Re: Target back to parent.

2002-03-11 Thread Neil H.

How do you name the Main Window, main window?  (Did that make sense :) )

Thanks,

Neil

- Original Message -
From: Shawn Grover [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, March 11, 2002 2:00 PM
Subject: RE: Target back to parent.


 form  Target=MainWindow onSubmit=self.close();

 Would that do the trick?  (haven't had the need to try it out, so no
 sure)

 Shawn Grover


 -Original Message-
 From: Neil H. [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 11, 2002 11:50 AM
 To: CF-Talk
 Subject: Re: Target back to parent.


 Correct so what would I use to submit the form to the opener  and then
 close the child?

 Neil

 - Original Message -
 From: Steve Oliver [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Monday, March 11, 2002 1:08 PM
 Subject: RE: Target back to parent.


  What exactly do you mean by posting back to the page? You run that
  script in the spawned window, and it sends anything you want back to the
  parent window, then the window.close() (run in the spawned window) will
  close the spawned window.
 
  _
  steve oliver
  senior internet developer
  atnet solutions, inc.
  http://www.atnetsolutions.com
 
 
  -Original Message-
  From: Neil H. [mailto:[EMAIL PROTECTED]]
  Sent: Monday, March 11, 2002 1:04 PM
  To: CF-Talk
  Subject: Re: Target back to parent.
 
 
  I am not worried about form field access.  I am more worried about
  posting
  back to that original page and closing the current window (hence the
  window.close())
 
  Is there a target attribute?
 
  Thanks,
 
  Neil
 
  - Original Message -
  From: Steve Oliver [EMAIL PROTECTED]
  To: CF-Talk [EMAIL PROTECTED]
  Sent: Monday, March 11, 2002 12:59 PM
  Subject: RE: Target back to parent.
 
 
   You can reference the parent window with opener
  
   opener.document.formname.fieldname.value=whatever;
   window.close();
  
   _
   steve oliver
   senior internet developer
   atnet solutions, inc.
   http://www.atnetsolutions.com
  
  
   -Original Message-
   From: Neil H. [mailto:[EMAIL PROTECTED]]
   Sent: Monday, March 11, 2002 12:47 PM
   To: CF-Talk
   Subject: Target back to parent.
  
  
   If I use JavaScript to spawn a new window how can I have that spawned
   window's form post back to the parent page, and then close the spawned
   window.
  
   Thanks,
  
   Neil
  
  
  
 
 

 
__
Why Share?
  Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
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



RE: Target back to parent.

2002-03-11 Thread Steve Oliver

Only way to name the main window mainwindow would be to have a
frameset with the frame name set to mainwindow

_
steve oliver
senior internet developer
atnet solutions, inc.
http://www.atnetsolutions.com


-Original Message-
From: Neil H. [mailto:[EMAIL PROTECTED]] 
Sent: Monday, March 11, 2002 3:12 PM
To: CF-Talk
Subject: Re: Target back to parent.


How do you name the Main Window, main window?  (Did that make sense :) )

Thanks,

Neil

- Original Message -
From: Shawn Grover [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, March 11, 2002 2:00 PM
Subject: RE: Target back to parent.


 form  Target=MainWindow onSubmit=self.close();

 Would that do the trick?  (haven't had the need to try it out, so no
 sure)

 Shawn Grover


 -Original Message-
 From: Neil H. [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 11, 2002 11:50 AM
 To: CF-Talk
 Subject: Re: Target back to parent.


 Correct so what would I use to submit the form to the opener  and
then
 close the child?

 Neil

 - Original Message -
 From: Steve Oliver [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Monday, March 11, 2002 1:08 PM
 Subject: RE: Target back to parent.


  What exactly do you mean by posting back to the page? You run that
  script in the spawned window, and it sends anything you want back to
the
  parent window, then the window.close() (run in the spawned window)
will
  close the spawned window.
 
  _
  steve oliver
  senior internet developer
  atnet solutions, inc.
  http://www.atnetsolutions.com
 
 
  -Original Message-
  From: Neil H. [mailto:[EMAIL PROTECTED]]
  Sent: Monday, March 11, 2002 1:04 PM
  To: CF-Talk
  Subject: Re: Target back to parent.
 
 
  I am not worried about form field access.  I am more worried about
  posting
  back to that original page and closing the current window (hence the
  window.close())
 
  Is there a target attribute?
 
  Thanks,
 
  Neil
 
  - Original Message -
  From: Steve Oliver [EMAIL PROTECTED]
  To: CF-Talk [EMAIL PROTECTED]
  Sent: Monday, March 11, 2002 12:59 PM
  Subject: RE: Target back to parent.
 
 
   You can reference the parent window with opener
  
   opener.document.formname.fieldname.value=whatever;
   window.close();
  
   _
   steve oliver
   senior internet developer
   atnet solutions, inc.
   http://www.atnetsolutions.com
  
  
   -Original Message-
   From: Neil H. [mailto:[EMAIL PROTECTED]]
   Sent: Monday, March 11, 2002 12:47 PM
   To: CF-Talk
   Subject: Target back to parent.
  
  
   If I use JavaScript to spawn a new window how can I have that
spawned
   window's form post back to the parent page, and then close the
spawned
   window.
  
   Thanks,
  
   Neil
  
  
  
 
 

 

__
Why Share?
  Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
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



RE: Target back to parent.

2002-03-11 Thread Shawn Grover

Hm good point.

But, you should be able to do something like window.opener.name
but check to make sure it's not null

But now that I think of it, maybe the other method would be best
assigning values from the child window to hidden form fields on the
main.  at least I can see how that would work properly, but it DOES take
a bit more coding up front...

Let me know what you come up with, I can see us needing something like that
here right quick

Shawn Grover

-Original Message-
From: Neil H. [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 1:12 PM
To: CF-Talk
Subject: Re: Target back to parent.


How do you name the Main Window, main window?  (Did that make sense :) )

Thanks,

Neil

- Original Message -
From: Shawn Grover [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, March 11, 2002 2:00 PM
Subject: RE: Target back to parent.


 form  Target=MainWindow onSubmit=self.close();

 Would that do the trick?  (haven't had the need to try it out, so no
 sure)

 Shawn Grover


 -Original Message-
 From: Neil H. [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 11, 2002 11:50 AM
 To: CF-Talk
 Subject: Re: Target back to parent.


 Correct so what would I use to submit the form to the opener  and then
 close the child?

 Neil

 - Original Message -
 From: Steve Oliver [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Monday, March 11, 2002 1:08 PM
 Subject: RE: Target back to parent.


  What exactly do you mean by posting back to the page? You run that
  script in the spawned window, and it sends anything you want back to the
  parent window, then the window.close() (run in the spawned window) will
  close the spawned window.
 
  _
  steve oliver
  senior internet developer
  atnet solutions, inc.
  http://www.atnetsolutions.com
 
 
  -Original Message-
  From: Neil H. [mailto:[EMAIL PROTECTED]]
  Sent: Monday, March 11, 2002 1:04 PM
  To: CF-Talk
  Subject: Re: Target back to parent.
 
 
  I am not worried about form field access.  I am more worried about
  posting
  back to that original page and closing the current window (hence the
  window.close())
 
  Is there a target attribute?
 
  Thanks,
 
  Neil
 
  - Original Message -
  From: Steve Oliver [EMAIL PROTECTED]
  To: CF-Talk [EMAIL PROTECTED]
  Sent: Monday, March 11, 2002 12:59 PM
  Subject: RE: Target back to parent.
 
 
   You can reference the parent window with opener
  
   opener.document.formname.fieldname.value=whatever;
   window.close();
  
   _
   steve oliver
   senior internet developer
   atnet solutions, inc.
   http://www.atnetsolutions.com
  
  
   -Original Message-
   From: Neil H. [mailto:[EMAIL PROTECTED]]
   Sent: Monday, March 11, 2002 12:47 PM
   To: CF-Talk
   Subject: Target back to parent.
  
  
   If I use JavaScript to spawn a new window how can I have that spawned
   window's form post back to the parent page, and then close the spawned
   window.
  
   Thanks,
  
   Neil
  
  
  
 
 



__
Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
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



Re: Target back to parent.

2002-03-11 Thread Neil H.

Ok that doesn't seem good.  I found a basic way be searching but it doesn't
seem to work.  I am using the chromeless windows so I think that is screwing
me up.

Neil

- Original Message -
From: Steve Oliver [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, March 11, 2002 3:23 PM
Subject: RE: Target back to parent.


 Only way to name the main window mainwindow would be to have a
 frameset with the frame name set to mainwindow

 _
 steve oliver
 senior internet developer
 atnet solutions, inc.
 http://www.atnetsolutions.com


 -Original Message-
 From: Neil H. [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 11, 2002 3:12 PM
 To: CF-Talk
 Subject: Re: Target back to parent.


 How do you name the Main Window, main window?  (Did that make sense :) )

 Thanks,

 Neil

 - Original Message -
 From: Shawn Grover [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Monday, March 11, 2002 2:00 PM
 Subject: RE: Target back to parent.


  form  Target=MainWindow onSubmit=self.close();
 
  Would that do the trick?  (haven't had the need to try it out, so no
  sure)
 
  Shawn Grover
 
 
  -Original Message-
  From: Neil H. [mailto:[EMAIL PROTECTED]]
  Sent: Monday, March 11, 2002 11:50 AM
  To: CF-Talk
  Subject: Re: Target back to parent.
 
 
  Correct so what would I use to submit the form to the opener  and
 then
  close the child?
 
  Neil
 
  - Original Message -
  From: Steve Oliver [EMAIL PROTECTED]
  To: CF-Talk [EMAIL PROTECTED]
  Sent: Monday, March 11, 2002 1:08 PM
  Subject: RE: Target back to parent.
 
 
   What exactly do you mean by posting back to the page? You run that
   script in the spawned window, and it sends anything you want back to
 the
   parent window, then the window.close() (run in the spawned window)
 will
   close the spawned window.
  
   _
   steve oliver
   senior internet developer
   atnet solutions, inc.
   http://www.atnetsolutions.com
  
  
   -Original Message-
   From: Neil H. [mailto:[EMAIL PROTECTED]]
   Sent: Monday, March 11, 2002 1:04 PM
   To: CF-Talk
   Subject: Re: Target back to parent.
  
  
   I am not worried about form field access.  I am more worried about
   posting
   back to that original page and closing the current window (hence the
   window.close())
  
   Is there a target attribute?
  
   Thanks,
  
   Neil
  
   - Original Message -
   From: Steve Oliver [EMAIL PROTECTED]
   To: CF-Talk [EMAIL PROTECTED]
   Sent: Monday, March 11, 2002 12:59 PM
   Subject: RE: Target back to parent.
  
  
You can reference the parent window with opener
   
opener.document.formname.fieldname.value=whatever;
window.close();
   
_
steve oliver
senior internet developer
atnet solutions, inc.
http://www.atnetsolutions.com
   
   
-Original Message-
From: Neil H. [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 12:47 PM
To: CF-Talk
Subject: Target back to parent.
   
   
If I use JavaScript to spawn a new window how can I have that
 spawned
window's form post back to the parent page, and then close the
 spawned
window.
   
Thanks,
   
Neil
   
   
   
  
  
 
 

 
__
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
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



Re: Target back to parent.

2002-03-11 Thread Neil H.

This is strange.  The application I am trying to emulate works like this:
The child window posts back to itself and then forces the parent to refresh.
I wonder if you all would have any suggestions on this one?

Thanks,

Neil

- Original Message -
From: Neil H. [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, March 11, 2002 3:28 PM
Subject: Re: Target back to parent.


 Ok that doesn't seem good.  I found a basic way be searching but it
doesn't
 seem to work.  I am using the chromeless windows so I think that is
screwing
 me up.

 Neil

 - Original Message -
 From: Steve Oliver [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Monday, March 11, 2002 3:23 PM
 Subject: RE: Target back to parent.


  Only way to name the main window mainwindow would be to have a
  frameset with the frame name set to mainwindow
 
  _
  steve oliver
  senior internet developer
  atnet solutions, inc.
  http://www.atnetsolutions.com
 
 
  -Original Message-
  From: Neil H. [mailto:[EMAIL PROTECTED]]
  Sent: Monday, March 11, 2002 3:12 PM
  To: CF-Talk
  Subject: Re: Target back to parent.
 
 
  How do you name the Main Window, main window?  (Did that make sense :) )
 
  Thanks,
 
  Neil
 
  - Original Message -
  From: Shawn Grover [EMAIL PROTECTED]
  To: CF-Talk [EMAIL PROTECTED]
  Sent: Monday, March 11, 2002 2:00 PM
  Subject: RE: Target back to parent.
 
 
   form  Target=MainWindow onSubmit=self.close();
  
   Would that do the trick?  (haven't had the need to try it out, so no
   sure)
  
   Shawn Grover
  
  
   -Original Message-
   From: Neil H. [mailto:[EMAIL PROTECTED]]
   Sent: Monday, March 11, 2002 11:50 AM
   To: CF-Talk
   Subject: Re: Target back to parent.
  
  
   Correct so what would I use to submit the form to the opener  and
  then
   close the child?
  
   Neil
  
   - Original Message -
   From: Steve Oliver [EMAIL PROTECTED]
   To: CF-Talk [EMAIL PROTECTED]
   Sent: Monday, March 11, 2002 1:08 PM
   Subject: RE: Target back to parent.
  
  
What exactly do you mean by posting back to the page? You run that
script in the spawned window, and it sends anything you want back to
  the
parent window, then the window.close() (run in the spawned window)
  will
close the spawned window.
   
_
steve oliver
senior internet developer
atnet solutions, inc.
http://www.atnetsolutions.com
   
   
-Original Message-
From: Neil H. [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 1:04 PM
To: CF-Talk
Subject: Re: Target back to parent.
   
   
I am not worried about form field access.  I am more worried about
posting
back to that original page and closing the current window (hence the
window.close())
   
Is there a target attribute?
   
Thanks,
   
Neil
   
- Original Message -
From: Steve Oliver [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, March 11, 2002 12:59 PM
Subject: RE: Target back to parent.
   
   
 You can reference the parent window with opener

 opener.document.formname.fieldname.value=whatever;
 window.close();

 _
 steve oliver
 senior internet developer
 atnet solutions, inc.
 http://www.atnetsolutions.com


 -Original Message-
 From: Neil H. [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 11, 2002 12:47 PM
 To: CF-Talk
 Subject: Target back to parent.


 If I use JavaScript to spawn a new window how can I have that
  spawned
 window's form post back to the parent page, and then close the
  spawned
 window.

 Thanks,

 Neil



   
   
  
  
 
 
 
__
Why Share?
  Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
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



RE: Target back to parent.

2002-03-11 Thread Shawn Grover

Don't know if the name property of a window is readonly or not, but if it
isn't, then you could try something like this:

script
window.name = MainWindow;
var subwin = open(.);
/script

and then set your target on the child window to the name you defined in the
script.
I'd try it out, but I'm tied up with an update query with 180+ parameters
right now

Shawn Grover

-Original Message-
From: Neil H. [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 1:29 PM
To: CF-Talk
Subject: Re: Target back to parent.


Ok that doesn't seem good.  I found a basic way be searching but it doesn't
seem to work.  I am using the chromeless windows so I think that is screwing
me up.

Neil

- Original Message -
From: Steve Oliver [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, March 11, 2002 3:23 PM
Subject: RE: Target back to parent.


 Only way to name the main window mainwindow would be to have a
 frameset with the frame name set to mainwindow

 _
 steve oliver
 senior internet developer
 atnet solutions, inc.
 http://www.atnetsolutions.com


 -Original Message-
 From: Neil H. [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 11, 2002 3:12 PM
 To: CF-Talk
 Subject: Re: Target back to parent.


 How do you name the Main Window, main window?  (Did that make sense :) )

 Thanks,

 Neil

 - Original Message -
 From: Shawn Grover [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Monday, March 11, 2002 2:00 PM
 Subject: RE: Target back to parent.


  form  Target=MainWindow onSubmit=self.close();
 
  Would that do the trick?  (haven't had the need to try it out, so no
  sure)
 
  Shawn Grover
 
 
  -Original Message-
  From: Neil H. [mailto:[EMAIL PROTECTED]]
  Sent: Monday, March 11, 2002 11:50 AM
  To: CF-Talk
  Subject: Re: Target back to parent.
 
 
  Correct so what would I use to submit the form to the opener  and
 then
  close the child?
 
  Neil
 
  - Original Message -
  From: Steve Oliver [EMAIL PROTECTED]
  To: CF-Talk [EMAIL PROTECTED]
  Sent: Monday, March 11, 2002 1:08 PM
  Subject: RE: Target back to parent.
 
 
   What exactly do you mean by posting back to the page? You run that
   script in the spawned window, and it sends anything you want back to
 the
   parent window, then the window.close() (run in the spawned window)
 will
   close the spawned window.
  
   _
   steve oliver
   senior internet developer
   atnet solutions, inc.
   http://www.atnetsolutions.com
  
  
   -Original Message-
   From: Neil H. [mailto:[EMAIL PROTECTED]]
   Sent: Monday, March 11, 2002 1:04 PM
   To: CF-Talk
   Subject: Re: Target back to parent.
  
  
   I am not worried about form field access.  I am more worried about
   posting
   back to that original page and closing the current window (hence the
   window.close())
  
   Is there a target attribute?
  
   Thanks,
  
   Neil
  
   - Original Message -
   From: Steve Oliver [EMAIL PROTECTED]
   To: CF-Talk [EMAIL PROTECTED]
   Sent: Monday, March 11, 2002 12:59 PM
   Subject: RE: Target back to parent.
  
  
You can reference the parent window with opener
   
opener.document.formname.fieldname.value=whatever;
window.close();
   
_
steve oliver
senior internet developer
atnet solutions, inc.
http://www.atnetsolutions.com
   
   
-Original Message-
From: Neil H. [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 12:47 PM
To: CF-Talk
Subject: Target back to parent.
   
   
If I use JavaScript to spawn a new window how can I have that
 spawned
window's form post back to the parent page, and then close the
 spawned
window.
   
Thanks,
   
Neil
   
   
   
  
  
 
 



__
Why Share?
  Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
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



Re: Target back to parent.

2002-03-11 Thread Neil H.

Just as a note the code I found will refresh the parent but won't take form
variables from the child :(

Neil

- Original Message -
From: Neil H. [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, March 11, 2002 3:28 PM
Subject: Re: Target back to parent.


 Ok that doesn't seem good.  I found a basic way be searching but it
doesn't
 seem to work.  I am using the chromeless windows so I think that is
screwing
 me up.

 Neil

 - Original Message -
 From: Steve Oliver [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Monday, March 11, 2002 3:23 PM
 Subject: RE: Target back to parent.


  Only way to name the main window mainwindow would be to have a
  frameset with the frame name set to mainwindow
 
  _
  steve oliver
  senior internet developer
  atnet solutions, inc.
  http://www.atnetsolutions.com
 
 
  -Original Message-
  From: Neil H. [mailto:[EMAIL PROTECTED]]
  Sent: Monday, March 11, 2002 3:12 PM
  To: CF-Talk
  Subject: Re: Target back to parent.
 
 
  How do you name the Main Window, main window?  (Did that make sense :) )
 
  Thanks,
 
  Neil
 
  - Original Message -
  From: Shawn Grover [EMAIL PROTECTED]
  To: CF-Talk [EMAIL PROTECTED]
  Sent: Monday, March 11, 2002 2:00 PM
  Subject: RE: Target back to parent.
 
 
   form  Target=MainWindow onSubmit=self.close();
  
   Would that do the trick?  (haven't had the need to try it out, so no
   sure)
  
   Shawn Grover
  
  
   -Original Message-
   From: Neil H. [mailto:[EMAIL PROTECTED]]
   Sent: Monday, March 11, 2002 11:50 AM
   To: CF-Talk
   Subject: Re: Target back to parent.
  
  
   Correct so what would I use to submit the form to the opener  and
  then
   close the child?
  
   Neil
  
   - Original Message -
   From: Steve Oliver [EMAIL PROTECTED]
   To: CF-Talk [EMAIL PROTECTED]
   Sent: Monday, March 11, 2002 1:08 PM
   Subject: RE: Target back to parent.
  
  
What exactly do you mean by posting back to the page? You run that
script in the spawned window, and it sends anything you want back to
  the
parent window, then the window.close() (run in the spawned window)
  will
close the spawned window.
   
_
steve oliver
senior internet developer
atnet solutions, inc.
http://www.atnetsolutions.com
   
   
-Original Message-
From: Neil H. [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 1:04 PM
To: CF-Talk
Subject: Re: Target back to parent.
   
   
I am not worried about form field access.  I am more worried about
posting
back to that original page and closing the current window (hence the
window.close())
   
Is there a target attribute?
   
Thanks,
   
Neil
   
- Original Message -
From: Steve Oliver [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, March 11, 2002 12:59 PM
Subject: RE: Target back to parent.
   
   
 You can reference the parent window with opener

 opener.document.formname.fieldname.value=whatever;
 window.close();

 _
 steve oliver
 senior internet developer
 atnet solutions, inc.
 http://www.atnetsolutions.com


 -Original Message-
 From: Neil H. [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 11, 2002 12:47 PM
 To: CF-Talk
 Subject: Target back to parent.


 If I use JavaScript to spawn a new window how can I have that
  spawned
 window's form post back to the parent page, and then close the
  spawned
 window.

 Thanks,

 Neil



   
   
  
  
 
 
 
__
Why Share?
  Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
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



RE: Target back to parent.

2002-03-11 Thread Steve Oliver

Sure, just put a form in the child window, that goes to an action page
(in the child window) to update your dbase or whatever.

Then at the end of the action page. Include this.

script
opener.location.reload();
wndow.close();
/script



_
steve oliver
senior internet developer
atnet solutions, inc.
http://www.atnetsolutions.com


-Original Message-
From: Neil H. [mailto:[EMAIL PROTECTED]] 
Sent: Monday, March 11, 2002 3:43 PM
To: CF-Talk
Subject: Re: Target back to parent.


This is strange.  The application I am trying to emulate works like
this:
The child window posts back to itself and then forces the parent to
refresh.
I wonder if you all would have any suggestions on this one?

Thanks,

Neil

- Original Message -
From: Neil H. [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, March 11, 2002 3:28 PM
Subject: Re: Target back to parent.


 Ok that doesn't seem good.  I found a basic way be searching but it
doesn't
 seem to work.  I am using the chromeless windows so I think that is
screwing
 me up.

 Neil

 - Original Message -
 From: Steve Oliver [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Monday, March 11, 2002 3:23 PM
 Subject: RE: Target back to parent.


  Only way to name the main window mainwindow would be to have a
  frameset with the frame name set to mainwindow
 
  _
  steve oliver
  senior internet developer
  atnet solutions, inc.
  http://www.atnetsolutions.com
 
 
  -Original Message-
  From: Neil H. [mailto:[EMAIL PROTECTED]]
  Sent: Monday, March 11, 2002 3:12 PM
  To: CF-Talk
  Subject: Re: Target back to parent.
 
 
  How do you name the Main Window, main window?  (Did that make sense
:) )
 
  Thanks,
 
  Neil
 
  - Original Message -
  From: Shawn Grover [EMAIL PROTECTED]
  To: CF-Talk [EMAIL PROTECTED]
  Sent: Monday, March 11, 2002 2:00 PM
  Subject: RE: Target back to parent.
 
 
   form  Target=MainWindow onSubmit=self.close();
  
   Would that do the trick?  (haven't had the need to try it out, so
no
   sure)
  
   Shawn Grover
  
  
   -Original Message-
   From: Neil H. [mailto:[EMAIL PROTECTED]]
   Sent: Monday, March 11, 2002 11:50 AM
   To: CF-Talk
   Subject: Re: Target back to parent.
  
  
   Correct so what would I use to submit the form to the opener
and
  then
   close the child?
  
   Neil
  
   - Original Message -
   From: Steve Oliver [EMAIL PROTECTED]
   To: CF-Talk [EMAIL PROTECTED]
   Sent: Monday, March 11, 2002 1:08 PM
   Subject: RE: Target back to parent.
  
  
What exactly do you mean by posting back to the page? You run
that
script in the spawned window, and it sends anything you want
back to
  the
parent window, then the window.close() (run in the spawned
window)
  will
close the spawned window.
   
_
steve oliver
senior internet developer
atnet solutions, inc.
http://www.atnetsolutions.com
   
   
-Original Message-
From: Neil H. [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 1:04 PM
To: CF-Talk
Subject: Re: Target back to parent.
   
   
I am not worried about form field access.  I am more worried
about
posting
back to that original page and closing the current window (hence
the
window.close())
   
Is there a target attribute?
   
Thanks,
   
Neil
   
- Original Message -
From: Steve Oliver [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, March 11, 2002 12:59 PM
Subject: RE: Target back to parent.
   
   
 You can reference the parent window with opener

 opener.document.formname.fieldname.value=whatever;
 window.close();

 _
 steve oliver
 senior internet developer
 atnet solutions, inc.
 http://www.atnetsolutions.com


 -Original Message-
 From: Neil H. [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 11, 2002 12:47 PM
 To: CF-Talk
 Subject: Target back to parent.


 If I use JavaScript to spawn a new window how can I have that
  spawned
 window's form post back to the parent page, and then close the
  spawned
 window.

 Thanks,

 Neil



   
   
  
  
 
 
 

__
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
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



RE: Target back to parent.

2002-03-11 Thread Steve Oliver

You don't need to send the form variables back to the mainwindow.

Just submit the form in the child window, process the data there, then
close it and reload the main window, you will see the changes there upon
reload.

_
steve oliver
senior internet developer
atnet solutions, inc.
http://www.atnetsolutions.com


-Original Message-
From: Steve Oliver [mailto:[EMAIL PROTECTED]] 
Sent: Monday, March 11, 2002 3:47 PM
To: CF-Talk
Subject: RE: Target back to parent.


Sure, just put a form in the child window, that goes to an action page
(in the child window) to update your dbase or whatever.

Then at the end of the action page. Include this.

script
opener.location.reload();
wndow.close();
/script



_
steve oliver
senior internet developer
atnet solutions, inc.
http://www.atnetsolutions.com


-Original Message-
From: Neil H. [mailto:[EMAIL PROTECTED]] 
Sent: Monday, March 11, 2002 3:43 PM
To: CF-Talk
Subject: Re: Target back to parent.


This is strange.  The application I am trying to emulate works like
this:
The child window posts back to itself and then forces the parent to
refresh.
I wonder if you all would have any suggestions on this one?

Thanks,

Neil

- Original Message -
From: Neil H. [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, March 11, 2002 3:28 PM
Subject: Re: Target back to parent.


 Ok that doesn't seem good.  I found a basic way be searching but it
doesn't
 seem to work.  I am using the chromeless windows so I think that is
screwing
 me up.

 Neil

 - Original Message -
 From: Steve Oliver [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Monday, March 11, 2002 3:23 PM
 Subject: RE: Target back to parent.


  Only way to name the main window mainwindow would be to have a
  frameset with the frame name set to mainwindow
 
  _
  steve oliver
  senior internet developer
  atnet solutions, inc.
  http://www.atnetsolutions.com
 
 
  -Original Message-
  From: Neil H. [mailto:[EMAIL PROTECTED]]
  Sent: Monday, March 11, 2002 3:12 PM
  To: CF-Talk
  Subject: Re: Target back to parent.
 
 
  How do you name the Main Window, main window?  (Did that make sense
:) )
 
  Thanks,
 
  Neil
 
  - Original Message -
  From: Shawn Grover [EMAIL PROTECTED]
  To: CF-Talk [EMAIL PROTECTED]
  Sent: Monday, March 11, 2002 2:00 PM
  Subject: RE: Target back to parent.
 
 
   form  Target=MainWindow onSubmit=self.close();
  
   Would that do the trick?  (haven't had the need to try it out, so
no
   sure)
  
   Shawn Grover
  
  
   -Original Message-
   From: Neil H. [mailto:[EMAIL PROTECTED]]
   Sent: Monday, March 11, 2002 11:50 AM
   To: CF-Talk
   Subject: Re: Target back to parent.
  
  
   Correct so what would I use to submit the form to the opener
and
  then
   close the child?
  
   Neil
  
   - Original Message -
   From: Steve Oliver [EMAIL PROTECTED]
   To: CF-Talk [EMAIL PROTECTED]
   Sent: Monday, March 11, 2002 1:08 PM
   Subject: RE: Target back to parent.
  
  
What exactly do you mean by posting back to the page? You run
that
script in the spawned window, and it sends anything you want
back to
  the
parent window, then the window.close() (run in the spawned
window)
  will
close the spawned window.
   
_
steve oliver
senior internet developer
atnet solutions, inc.
http://www.atnetsolutions.com
   
   
-Original Message-
From: Neil H. [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 1:04 PM
To: CF-Talk
Subject: Re: Target back to parent.
   
   
I am not worried about form field access.  I am more worried
about
posting
back to that original page and closing the current window (hence
the
window.close())
   
Is there a target attribute?
   
Thanks,
   
Neil
   
- Original Message -
From: Steve Oliver [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, March 11, 2002 12:59 PM
Subject: RE: Target back to parent.
   
   
 You can reference the parent window with opener

 opener.document.formname.fieldname.value=whatever;
 window.close();

 _
 steve oliver
 senior internet developer
 atnet solutions, inc.
 http://www.atnetsolutions.com


 -Original Message-
 From: Neil H. [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 11, 2002 12:47 PM
 To: CF-Talk
 Subject: Target back to parent.


 If I use JavaScript to spawn a new window how can I have that
  spawned
 window's form post back to the parent page, and then close the
  spawned
 window.

 Thanks,

 Neil



   
   
  
  
 
 
 


__
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM

Re: Target back to parent.

2002-03-11 Thread Neil H.

Yeah for some reason that bit of code didn't work :(

Neil

- Original Message -
From: Steve Oliver [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, March 11, 2002 3:51 PM
Subject: RE: Target back to parent.


 You don't need to send the form variables back to the mainwindow.

 Just submit the form in the child window, process the data there, then
 close it and reload the main window, you will see the changes there upon
 reload.

 _
 steve oliver
 senior internet developer
 atnet solutions, inc.
 http://www.atnetsolutions.com


 -Original Message-
 From: Steve Oliver [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 11, 2002 3:47 PM
 To: CF-Talk
 Subject: RE: Target back to parent.


 Sure, just put a form in the child window, that goes to an action page
 (in the child window) to update your dbase or whatever.

 Then at the end of the action page. Include this.

 script
 opener.location.reload();
 wndow.close();
 /script



 _
 steve oliver
 senior internet developer
 atnet solutions, inc.
 http://www.atnetsolutions.com


 -Original Message-
 From: Neil H. [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 11, 2002 3:43 PM
 To: CF-Talk
 Subject: Re: Target back to parent.


 This is strange.  The application I am trying to emulate works like
 this:
 The child window posts back to itself and then forces the parent to
 refresh.
 I wonder if you all would have any suggestions on this one?

 Thanks,

 Neil

 - Original Message -
 From: Neil H. [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Monday, March 11, 2002 3:28 PM
 Subject: Re: Target back to parent.


  Ok that doesn't seem good.  I found a basic way be searching but it
 doesn't
  seem to work.  I am using the chromeless windows so I think that is
 screwing
  me up.
 
  Neil
 
  - Original Message -
  From: Steve Oliver [EMAIL PROTECTED]
  To: CF-Talk [EMAIL PROTECTED]
  Sent: Monday, March 11, 2002 3:23 PM
  Subject: RE: Target back to parent.
 
 
   Only way to name the main window mainwindow would be to have a
   frameset with the frame name set to mainwindow
  
   _
   steve oliver
   senior internet developer
   atnet solutions, inc.
   http://www.atnetsolutions.com
  
  
   -Original Message-
   From: Neil H. [mailto:[EMAIL PROTECTED]]
   Sent: Monday, March 11, 2002 3:12 PM
   To: CF-Talk
   Subject: Re: Target back to parent.
  
  
   How do you name the Main Window, main window?  (Did that make sense
 :) )
  
   Thanks,
  
   Neil
  
   - Original Message -
   From: Shawn Grover [EMAIL PROTECTED]
   To: CF-Talk [EMAIL PROTECTED]
   Sent: Monday, March 11, 2002 2:00 PM
   Subject: RE: Target back to parent.
  
  
form  Target=MainWindow onSubmit=self.close();
   
Would that do the trick?  (haven't had the need to try it out, so
 no
sure)
   
Shawn Grover
   
   
-Original Message-
From: Neil H. [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 11:50 AM
To: CF-Talk
Subject: Re: Target back to parent.
   
   
Correct so what would I use to submit the form to the opener
 and
   then
close the child?
   
Neil
   
- Original Message -
From: Steve Oliver [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, March 11, 2002 1:08 PM
Subject: RE: Target back to parent.
   
   
 What exactly do you mean by posting back to the page? You run
 that
 script in the spawned window, and it sends anything you want
 back to
   the
 parent window, then the window.close() (run in the spawned
 window)
   will
 close the spawned window.

 _
 steve oliver
 senior internet developer
 atnet solutions, inc.
 http://www.atnetsolutions.com


 -Original Message-
 From: Neil H. [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 11, 2002 1:04 PM
 To: CF-Talk
 Subject: Re: Target back to parent.


 I am not worried about form field access.  I am more worried
 about
 posting
 back to that original page and closing the current window (hence
 the
 window.close())

 Is there a target attribute?

 Thanks,

 Neil

 - Original Message -
 From: Steve Oliver [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Monday, March 11, 2002 12:59 PM
 Subject: RE: Target back to parent.


  You can reference the parent window with opener
 
  opener.document.formname.fieldname.value=whatever;
  window.close();
 
  _
  steve oliver
  senior internet developer
  atnet solutions, inc.
  http://www.atnetsolutions.com
 
 
  -Original Message-
  From: Neil H. [mailto:[EMAIL PROTECTED]]
  Sent: Monday, March 11, 2002 12:47 PM
  To: CF-Talk
  Subject

RE: Target back to parent.

2002-03-11 Thread Steve Oliver

That's what I have netscape for.  That's the only thing I like about it,
is it's little javascript error log. It catches every javascript error,
unlike IE, which sometimes lets them fly on by without doing anything.

_
steve oliver
senior internet developer
atnet solutions, inc.
http://www.atnetsolutions.com


-Original Message-
From: Neil H. [mailto:[EMAIL PROTECTED]] 
Sent: Monday, March 11, 2002 4:01 PM
To: CF-Talk
Subject: Re: Target back to parent.


Yeah for some reason that bit of code didn't work :(

Neil

- Original Message -
From: Steve Oliver [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, March 11, 2002 3:51 PM
Subject: RE: Target back to parent.


 You don't need to send the form variables back to the mainwindow.

 Just submit the form in the child window, process the data there, then
 close it and reload the main window, you will see the changes there
upon
 reload.

 _
 steve oliver
 senior internet developer
 atnet solutions, inc.
 http://www.atnetsolutions.com


 -Original Message-
 From: Steve Oliver [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 11, 2002 3:47 PM
 To: CF-Talk
 Subject: RE: Target back to parent.


 Sure, just put a form in the child window, that goes to an action page
 (in the child window) to update your dbase or whatever.

 Then at the end of the action page. Include this.

 script
 opener.location.reload();
 wndow.close();
 /script



 _
 steve oliver
 senior internet developer
 atnet solutions, inc.
 http://www.atnetsolutions.com


 -Original Message-
 From: Neil H. [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 11, 2002 3:43 PM
 To: CF-Talk
 Subject: Re: Target back to parent.


 This is strange.  The application I am trying to emulate works like
 this:
 The child window posts back to itself and then forces the parent to
 refresh.
 I wonder if you all would have any suggestions on this one?

 Thanks,

 Neil

 - Original Message -
 From: Neil H. [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Monday, March 11, 2002 3:28 PM
 Subject: Re: Target back to parent.


  Ok that doesn't seem good.  I found a basic way be searching but it
 doesn't
  seem to work.  I am using the chromeless windows so I think that is
 screwing
  me up.
 
  Neil
 
  - Original Message -
  From: Steve Oliver [EMAIL PROTECTED]
  To: CF-Talk [EMAIL PROTECTED]
  Sent: Monday, March 11, 2002 3:23 PM
  Subject: RE: Target back to parent.
 
 
   Only way to name the main window mainwindow would be to have a
   frameset with the frame name set to mainwindow
  
   _
   steve oliver
   senior internet developer
   atnet solutions, inc.
   http://www.atnetsolutions.com
  
  
   -Original Message-
   From: Neil H. [mailto:[EMAIL PROTECTED]]
   Sent: Monday, March 11, 2002 3:12 PM
   To: CF-Talk
   Subject: Re: Target back to parent.
  
  
   How do you name the Main Window, main window?  (Did that make
sense
 :) )
  
   Thanks,
  
   Neil
  
   - Original Message -
   From: Shawn Grover [EMAIL PROTECTED]
   To: CF-Talk [EMAIL PROTECTED]
   Sent: Monday, March 11, 2002 2:00 PM
   Subject: RE: Target back to parent.
  
  
form  Target=MainWindow onSubmit=self.close();
   
Would that do the trick?  (haven't had the need to try it out,
so
 no
sure)
   
Shawn Grover
   
   
-Original Message-
From: Neil H. [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 11:50 AM
To: CF-Talk
Subject: Re: Target back to parent.
   
   
Correct so what would I use to submit the form to the opener
 and
   then
close the child?
   
Neil
   
- Original Message -
From: Steve Oliver [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, March 11, 2002 1:08 PM
Subject: RE: Target back to parent.
   
   
 What exactly do you mean by posting back to the page? You run
 that
 script in the spawned window, and it sends anything you want
 back to
   the
 parent window, then the window.close() (run in the spawned
 window)
   will
 close the spawned window.

 _
 steve oliver
 senior internet developer
 atnet solutions, inc.
 http://www.atnetsolutions.com


 -Original Message-
 From: Neil H. [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 11, 2002 1:04 PM
 To: CF-Talk
 Subject: Re: Target back to parent.


 I am not worried about form field access.  I am more worried
 about
 posting
 back to that original page and closing the current window
(hence
 the
 window.close())

 Is there a target attribute?

 Thanks,

 Neil

 - Original Message -
 From: Steve Oliver [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Monday, March 11, 2002 12:59 PM
 Subject: RE

Re: Target back to parent.

2002-03-11 Thread Neil H.

Sigh
This is frustrating.  What a long day.

Neil

- Original Message -
From: Steve Oliver [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, March 11, 2002 4:05 PM
Subject: RE: Target back to parent.


 That's what I have netscape for.  That's the only thing I like about it,
 is it's little javascript error log. It catches every javascript error,
 unlike IE, which sometimes lets them fly on by without doing anything.

 _
 steve oliver
 senior internet developer
 atnet solutions, inc.
 http://www.atnetsolutions.com


 -Original Message-
 From: Neil H. [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 11, 2002 4:01 PM
 To: CF-Talk
 Subject: Re: Target back to parent.


 Yeah for some reason that bit of code didn't work :(

 Neil

 - Original Message -
 From: Steve Oliver [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Monday, March 11, 2002 3:51 PM
 Subject: RE: Target back to parent.


  You don't need to send the form variables back to the mainwindow.
 
  Just submit the form in the child window, process the data there, then
  close it and reload the main window, you will see the changes there
 upon
  reload.
 
  _
  steve oliver
  senior internet developer
  atnet solutions, inc.
  http://www.atnetsolutions.com
 
 
  -Original Message-
  From: Steve Oliver [mailto:[EMAIL PROTECTED]]
  Sent: Monday, March 11, 2002 3:47 PM
  To: CF-Talk
  Subject: RE: Target back to parent.
 
 
  Sure, just put a form in the child window, that goes to an action page
  (in the child window) to update your dbase or whatever.
 
  Then at the end of the action page. Include this.
 
  script
  opener.location.reload();
  wndow.close();
  /script
 
 
 
  _
  steve oliver
  senior internet developer
  atnet solutions, inc.
  http://www.atnetsolutions.com
 
 
  -Original Message-
  From: Neil H. [mailto:[EMAIL PROTECTED]]
  Sent: Monday, March 11, 2002 3:43 PM
  To: CF-Talk
  Subject: Re: Target back to parent.
 
 
  This is strange.  The application I am trying to emulate works like
  this:
  The child window posts back to itself and then forces the parent to
  refresh.
  I wonder if you all would have any suggestions on this one?
 
  Thanks,
 
  Neil
 
  - Original Message -
  From: Neil H. [EMAIL PROTECTED]
  To: CF-Talk [EMAIL PROTECTED]
  Sent: Monday, March 11, 2002 3:28 PM
  Subject: Re: Target back to parent.
 
 
   Ok that doesn't seem good.  I found a basic way be searching but it
  doesn't
   seem to work.  I am using the chromeless windows so I think that is
  screwing
   me up.
  
   Neil
  
   - Original Message -
   From: Steve Oliver [EMAIL PROTECTED]
   To: CF-Talk [EMAIL PROTECTED]
   Sent: Monday, March 11, 2002 3:23 PM
   Subject: RE: Target back to parent.
  
  
Only way to name the main window mainwindow would be to have a
frameset with the frame name set to mainwindow
   
_
steve oliver
senior internet developer
atnet solutions, inc.
http://www.atnetsolutions.com
   
   
-Original Message-
From: Neil H. [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 3:12 PM
To: CF-Talk
Subject: Re: Target back to parent.
   
   
How do you name the Main Window, main window?  (Did that make
 sense
  :) )
   
Thanks,
   
Neil
   
- Original Message -
From: Shawn Grover [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, March 11, 2002 2:00 PM
Subject: RE: Target back to parent.
   
   
 form  Target=MainWindow onSubmit=self.close();

 Would that do the trick?  (haven't had the need to try it out,
 so
  no
 sure)

 Shawn Grover


 -Original Message-
 From: Neil H. [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 11, 2002 11:50 AM
 To: CF-Talk
 Subject: Re: Target back to parent.


 Correct so what would I use to submit the form to the opener
  and
then
 close the child?

 Neil

 - Original Message -
 From: Steve Oliver [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Monday, March 11, 2002 1:08 PM
 Subject: RE: Target back to parent.


  What exactly do you mean by posting back to the page? You run
  that
  script in the spawned window, and it sends anything you want
  back to
the
  parent window, then the window.close() (run in the spawned
  window)
will
  close the spawned window.
 
  _
  steve oliver
  senior internet developer
  atnet solutions, inc.
  http://www.atnetsolutions.com
 
 
  -Original Message-
  From: Neil H. [mailto:[EMAIL PROTECTED]]
  Sent: Monday, March 11, 2002 1:04 PM
  To: CF-Talk
  Subject: Re: Target back to parent.
 
 
  I am not worried about

RE: Target back to parent.

2002-03-11 Thread Shawn Grover

Niel out of curiosity.. is your child window modal?  If so, the rules
are a little bit different.  We've found that the only way to process the
action page nicely (meaning without a blank window opening for a moment), is
to use a hidden IFRAME on the modal window, and set our form's target to the
IFrame.

Before we did this (and having proved it again afterwards), we were getting
some tough javascript problems to fix (unable to refresh the current page,
etc.).

Hope that helps.

Shawn Grover


-Original Message-
From: Neil H. [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 2:36 PM
To: CF-Talk
Subject: Re: Target back to parent.


Sigh
This is frustrating.  What a long day.

Neil

- Original Message -
From: Steve Oliver [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, March 11, 2002 4:05 PM
Subject: RE: Target back to parent.


 That's what I have netscape for.  That's the only thing I like about it,
 is it's little javascript error log. It catches every javascript error,
 unlike IE, which sometimes lets them fly on by without doing anything.

 _
 steve oliver
 senior internet developer
 atnet solutions, inc.
 http://www.atnetsolutions.com


 -Original Message-
 From: Neil H. [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 11, 2002 4:01 PM
 To: CF-Talk
 Subject: Re: Target back to parent.


 Yeah for some reason that bit of code didn't work :(

 Neil

 - Original Message -
 From: Steve Oliver [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Monday, March 11, 2002 3:51 PM
 Subject: RE: Target back to parent.


  You don't need to send the form variables back to the mainwindow.
 
  Just submit the form in the child window, process the data there, then
  close it and reload the main window, you will see the changes there
 upon
  reload.
 
  _
  steve oliver
  senior internet developer
  atnet solutions, inc.
  http://www.atnetsolutions.com
 
 
  -Original Message-
  From: Steve Oliver [mailto:[EMAIL PROTECTED]]
  Sent: Monday, March 11, 2002 3:47 PM
  To: CF-Talk
  Subject: RE: Target back to parent.
 
 
  Sure, just put a form in the child window, that goes to an action page
  (in the child window) to update your dbase or whatever.
 
  Then at the end of the action page. Include this.
 
  script
  opener.location.reload();
  wndow.close();
  /script
 
 
 
  _
  steve oliver
  senior internet developer
  atnet solutions, inc.
  http://www.atnetsolutions.com
 
 
  -Original Message-
  From: Neil H. [mailto:[EMAIL PROTECTED]]
  Sent: Monday, March 11, 2002 3:43 PM
  To: CF-Talk
  Subject: Re: Target back to parent.
 
 
  This is strange.  The application I am trying to emulate works like
  this:
  The child window posts back to itself and then forces the parent to
  refresh.
  I wonder if you all would have any suggestions on this one?
 
  Thanks,
 
  Neil
 
  - Original Message -
  From: Neil H. [EMAIL PROTECTED]
  To: CF-Talk [EMAIL PROTECTED]
  Sent: Monday, March 11, 2002 3:28 PM
  Subject: Re: Target back to parent.
 
 
   Ok that doesn't seem good.  I found a basic way be searching but it
  doesn't
   seem to work.  I am using the chromeless windows so I think that is
  screwing
   me up.
  
   Neil
  
   - Original Message -
   From: Steve Oliver [EMAIL PROTECTED]
   To: CF-Talk [EMAIL PROTECTED]
   Sent: Monday, March 11, 2002 3:23 PM
   Subject: RE: Target back to parent.
  
  
Only way to name the main window mainwindow would be to have a
frameset with the frame name set to mainwindow
   
_
steve oliver
senior internet developer
atnet solutions, inc.
http://www.atnetsolutions.com
   
   
-Original Message-
From: Neil H. [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 3:12 PM
To: CF-Talk
Subject: Re: Target back to parent.
   
   
How do you name the Main Window, main window?  (Did that make
 sense
  :) )
   
Thanks,
   
Neil
   
- Original Message -
From: Shawn Grover [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, March 11, 2002 2:00 PM
Subject: RE: Target back to parent.
   
   
 form  Target=MainWindow onSubmit=self.close();

 Would that do the trick?  (haven't had the need to try it out,
 so
  no
 sure)

 Shawn Grover


 -Original Message-
 From: Neil H. [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 11, 2002 11:50 AM
 To: CF-Talk
 Subject: Re: Target back to parent.


 Correct so what would I use to submit the form to the opener
  and
then
 close the child?

 Neil

 - Original Message -
 From: Steve Oliver [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Monday, March 11, 2002 1:08 PM
 Subject: RE: Target back to parent.


  What