Solved

Passing Url vaulue to new window.(Coldfusion)

Posted on 2004-10-20
3
315 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Batch file output 20 77
Question to locate the problem 18 53
Image decoding from Camera 3 44
Windows Service to Receive TCP Packets 4 37
A short article about a problem I had getting the GPS LocationListener working.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now