I just tried and it gets closer to working, however now I have an
error in js on the form action page. (Note the names in this example
are changed to protect the not so innocent).

Here's what I worked out so far to open the popup frame:
<script language="javascript" type="text/javascript">
 function modalWinTest() {
                        var urlItem =
'act_dialogBoxFrame.cfm?whatever=<cfoutput>#variables.whatever#</cfoutput>&type=editRec';
                        var windowName = 'Demonstration';
                        var windowWidth = '760';
                        var windowHeight = '640';

                        if (window.showModalDialog) {
                                ret = 
window.showModalDialog(urlItem,windowName,"dialogWidth:"+windowWidth+"px;dialogHeight:"+windowHeight+"px");
                        } else {
                                ret = 
window.open(urlItem,windowName,'height='+windowHeight+',width='+windowWidth+',toolbar=no,directories=no,status=no,continued
from previous linemenubar=no,scrollbars=no,resizable=no ,modal=yes');
                        }
                }
</script>

this opens the appropriate frame page in the popup window.

the user fills in the form
<form name="mainForm" method="post" action="doWhatever.cfm" target="_self" >
blah blah blah etc.
</form>

Then on the doWhatever.cfm

<!--- do some CF related stuff --->
<script language="javascript">
        top.window.opener.document.formTest.testInput.value = 'this works in
FF but not IE now';
        top.window.close();
</script>

This works in Firefox now, but in IE I get the following error dialog:
'top.window.opener.document' is not an object

thx,
larry

On Tue, Jun 22, 2010 at 2:24 PM, Ian Skinner <[email protected]> wrote:
>
> On 6/22/2010 10:32 AM, Larry C. Lyons wrote:
>> firefox just throws a javascript error
>> Any suggestions on how to get this to work with firefox would be
>> really appreciated.
>>
>> thx,
>> larry
>>
>
> What's the JavaScript error.
>
> The codes probably just using an IE property method to access the parent
> part of the DOM.  Changing it to a more standards compliant method
> should fix things up.
>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-community/message.cfm/messageid:321693
Subscription: http://www.houseoffusion.com/groups/cf-community/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-community/unsubscribe.cfm

Reply via email to