Solved

Passing Url vaulue to new window.(Coldfusion)

Posted on 2004-10-20
3
342 Views
Last Modified: 2013-12-16
Hi expert!

Greetings!

I have a query page that pass url value to another new window.I want the new winow to be resized, disabled statusbar and tool bar.

For example. Parent window  query

main.cfm

<cfquery="abc" dbtype="query">
Select *  from job
</cfquery>

<cfoutput query="abc">

<a href="action.cfm?id=#abc.jobno# target="_blank">#jobno#</a>
</cfoutput>


action.cfm

<cfquery="sql2" dbtype="query">
Select *  from job where jobid=#url.id#
</cfquery>

<cfoutput query="sql2">
#description#
</cfoutput>



I will pass the url value to a new window.I can pass the value to a new window and get a correct result.
Problem is
How can i resize the new window to resize,disable toolbar,status bar?
HTML has no features to resize,diable toolbar and status bar.

Please help.

Thank you

0
Comment
Question by:gugu_1500
3 Comments
 
LVL 4

Accepted Solution

by:
Sicos earned 125 total points
ID: 12367220

Hi,

You can open a new window like this using javascript.

window.open("example.htm","","resizable=yes,status=yes,toolbar=no,menubar=no" + lSuffix);


In the example.htm file (or whatever youre file is named) you can resize the window in the onload event with window.setSize also using javascript

Greetings,
Sicos

0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
allswap challenge 6 115
Please explain: Aspect Oriented Programming 2 100
C# Error - Add Failed 12 93
in SAS how to create a record for each combination of the two duplicates? 16 104
This article will show, step by step, how to integrate R code into a R Sweave document
This is an explanation of a simple data model to help parse a JSON feed
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question