In the "main page":
<div name="hidden" style="visibility: hidden; positon: absolute; left: 0;
top: 0;">
<iframe src="blank.html" width="1" height="1" frameborder="0"
id="utilityframe">
</iframe>
</div>
Call the page you were opening in a new window in the iframe using
javascript:
document.getElementById('utilityframe').src=newurl
Then, instead of opener.location.reload() you'd use parent.location.reload()
Author's note: untested, unproven, etc. YMMV. Use at own risk. Keep head
and arms inside car at all times. :-)
-- Ben Doom
Programmer & General Lackey
Moonbow Software, Inc
: -----Original Message-----
: From: James Blaha [mailto:[EMAIL PROTECTED]]
: Sent: Friday, February 14, 2003 1:26 PM
: To: CF-Talk
: Subject: Re: Application ? For JavaScript?
:
:
: Ben,
:
: Do you have an example of this? This sounds very interesting.
:
: Regards,
: James Blaha
:
: Ben Doom wrote:
:
: >How about a hidden iframe?
: >
: >
: >-- Ben Doom
: > Programmer & General Lackey
: > Moonbow Software, Inc
: >
: >: -----Original Message-----
: >: From: James Blaha [mailto:[EMAIL PROTECTED]]
: >: Sent: Friday, February 14, 2003 12:27 PM
: >: To: CF-Talk
: >: Subject: Application ? For JavaScript?
: >:
: >:
: >: Hello CFers
: >:
: >: I think this should be a simple question. I have an
: application that has
: >: a result set and the users can delete a row by clicking a
: delete option
: >: at the end of each row. When they do this they are essentially opening
: >: up a popped up template that runs some SQL that deletes the record and
: >: gives them a HTML message. In that template that deletes the records at
: >: the end I run a script that refreshes the opening window so the result
: >: setup now shows the right information.
: >:
: >: <!--- Note: The opener option will refreshs the referring pages result
: >: set. --->
: >: <script>
: >: opener.location.reload();
: >: </script>
: >:
: >: My question is: Is there a way to just have a JavaScript pop up that
: >: says that the record has been deleted without the user seeing a blank
: >: template page open thats doing the processing?
: >:
: >: Regards,
: >: James Blaha
: >:
: >:
: >
:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4