Click to See Complete Forum and Search --> : toolbar=no, menubar=no, scrollbars=no


Larry Minutella
06-04-2003, 12:43 PM
<SCRIPT>
window.resizeTo(500,400);
</SCRIPT>

The above code (placed in the child window code) allows me to set the "child" window size. I need to also set (toolbar=no, menubar=no, scrollbars=no). How is this done?

There is code out there that is incorporated into the link of the parent window for the required parameters BUT I need it to reside in the "child" window code.

PLEASE HELP!

Jona
06-04-2003, 12:46 PM
It cannot be done without the code being in the parent window.

Jona

Larry Minutella
06-04-2003, 12:50 PM
The parent window is a FLASH file. I do not know who to insert it into the FLASH generated link. I am not that savy in FLASH. I assume that FLASH provides paramters that will allow for this to happen.

Jona
06-04-2003, 12:54 PM
Use getURL("javascript:newWin = window.open('file.htm','file','params')");

Jona

BrainDonor
06-04-2003, 01:04 PM
Wouldn't an "onload" in the child window accomplish this?

Newbie Tom

Jona
06-04-2003, 01:07 PM
The child window cannot edit its properties; it must be from the parent. In this case, the Flash file must call JavaScript via getURL()

Jona

Larry Minutella
06-04-2003, 01:18 PM
I tried to alter the FLASH and did not get it to work... Below is what I coded:

on (release) {
getURL("java script:newWin = window.open('projects_qvs.htm','file',' toolbar=no, menubar=no, scrollbars=no, resizable=yes, ')", "_blank");
}


What is wrong?

Thanks :-)

Jona
06-04-2003, 01:39 PM
First of all, take off the _blank part. Second, try taking the spaces off from behind each comma.


on (release) {
getURL("javascript:newWin = window.open('projects_qvs.htm','projects','toolbar=no,menubar=no,scrollbars=no,resizable=yes')");
}


Jona

Larry Minutella
06-04-2003, 02:16 PM
not having luck. the code actually shows up in the browser address bar.

Jona
06-04-2003, 02:31 PM
All right. Make sure your file is .htm or .html and you're using <object> or <embed> tags to display the swf file. Then, put this in the <head> tag:


<script type="text/javascript">
<!--
function popupWin(){
newWin = window.open('projects_qvs. htm','projects','toolbar=no,menubar=no,scrollbars=
no,resizable=yes');
}
//-->
</script>


Now in your Flash source, use this:


on(release){
getURL("javascript:popupWin()");
}


Jona

Larry Minutella
06-04-2003, 03:00 PM
I think the flash source is wrong since it is not calling the file: projects_qvs.htm in the code.

I tried it as is and it did not work.

-Larry

Isn't there an easy way in flash thru the wizzard when assigning the parameters in the link to designate the opened window parameters?

Jona
06-04-2003, 03:08 PM
Well, the code I posted should work. :rolleyes:

Jona