Solved

Passing Url vaulue to new window.(Coldfusion)

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
A short article about problems I had with the new location API and permissions in Marshmallow
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

776 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