From: srikanth n on
Hi everyone,

I am beginner to coldfusion.
I have got a problem while creating coldfusion.
I have a page which consists a save button click on this calls the same page.
On second load
I am displaying a popup sized window using javascript.
The code for the same is below.

function popup_window(){
var testWindow;
var mypage = "index.cfm?
fuseaction=index,cfm?Fuseaction=test.test_window
var myname = "popup_window3";
var w = 575;
var h = 265;
var scroll = "no";
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops =
'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resiz
able=no'
win = window.open(mypage, myname, winprops);
if (parseInt(navigator.appVersion) >= 4)
{ win.window.focus(); }
}
window.onload=popup_window;

The popup_window is a seperate fuse action where in I have included the page
to be displayed in popup window.

My problem is the page displayed in popup window is taking the default page
layout of test fuse.
I dont want the default layout in popup.

Please resolve this issue.

Thanks in advance...


From: GArlington on
On Jun 18, 3:24 pm, "srikanth n" <webforumsu...(a)macromedia.com> wrote:
> Hi everyone,
>
> I am beginner to coldfusion.
> I have got a problem while creating coldfusion.
> I have a page which consists a save button click on this calls the same page.
> On second load
> I am displaying a popup sized window using javascript.
> The code for the same is below.
>
> function popup_window(){
> var testWindow;
> var mypage = "index.cfm?
> fuseaction=index,cfm?Fuseaction=test.test_window

What is this suppose to do?
Maybe you meant var mypage = "index.cfm?Fuseaction=test.test_window

> var myname = "popup_window3";
> var w = 575;
> var h = 265;
> var scroll = "no";
> var winl = (screen.width - w) / 2;
> var wint = (screen.height - h) / 2;
> winprops =
> 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resiz
> able=no'
> win = window.open(mypage, myname, winprops);
> if (parseInt(navigator.appVersion) >= 4)
> { win.window.focus(); }
> }
> window.onload=popup_window;
>
> The popup_window is a seperate fuse action where in I have included the page
> to be displayed in popup window.
>
> My problem is the page displayed in popup window is taking the default page
> layout of test fuse.
??? Do you mean that it displays your index.cfm? Then the above
correction might help.
> I dont want the default layout in popup.
>
> Please resolve this issue.
>
> Thanks in advance...