Hi everyone,
I have a coldfusion form (ReportMenu.cfm ) that the action page is itself as below:
[CODE=cfm]<cfform action="/cfreport/ReportMenu.cfm" method="POST" enctype="multip art/form-data">
[/CODE]
and it's button:
[CODE=cfm]<input type="Submit" value="View Report" class="button" name="submit" >
<!--- onclick="MM_ope nBrWindow('','' ,'toolbar=yes,s crollbars=yes,w idth=910,height =600')" --->
[/CODE]
and finally the end tag and if statement to call a function:
[CODE=cfm]</cfform>
<cfif isdefined("form .Submit")>
<cfinvoke component="Scho lasticObjects.i mportExport" method="Report" >
<cfinvokeargume nt...>
</cfinvoke>
</cfif>
[/CODE]
This function creates my report. I want my report to be open in a new window (you can see the commented onclick inside the button) but I have the button outside the <cfif> so it opens my report on the same window. Do you guys have any idea how I can make it work. I appreciate your comments.
I have a coldfusion form (ReportMenu.cfm ) that the action page is itself as below:
[CODE=cfm]<cfform action="/cfreport/ReportMenu.cfm" method="POST" enctype="multip art/form-data">
[/CODE]
and it's button:
[CODE=cfm]<input type="Submit" value="View Report" class="button" name="submit" >
<!--- onclick="MM_ope nBrWindow('','' ,'toolbar=yes,s crollbars=yes,w idth=910,height =600')" --->
[/CODE]
and finally the end tag and if statement to call a function:
[CODE=cfm]</cfform>
<cfif isdefined("form .Submit")>
<cfinvoke component="Scho lasticObjects.i mportExport" method="Report" >
<cfinvokeargume nt...>
</cfinvoke>
</cfif>
[/CODE]
This function creates my report. I want my report to be open in a new window (you can see the commented onclick inside the button) but I have the button outside the <cfif> so it opens my report on the same window. Do you guys have any idea how I can make it work. I appreciate your comments.
Comment