View Full Version : Opening a window
hogtied
07-17-2002, 10:20 PM
What's up members. I need some help in trying to open a window when you click on a calender button. The calender is done in Flash.
Thanks
Hogtied
poccil
07-17-2002, 10:37 PM
By "calender [sic] button", do you mean a button in the calendar, or a button that opens the calendar?
If it is the latter, then the fact that the calendar is done in Flash is irrelevant to the solution. Add something like this to the button element:
onclick="window.open('calendar.html','left=200,top=200');"
assuming that the calendar is in a separate HTML file and that the window will be 200 by 200 pixels.
hogtied
07-18-2002, 01:22 AM
It's a button that opens a calender. I would also need to pass data to the calender on whether they are selecting a check in date or check out date so that when the user selects the date it will be entered in the correct box on the parent web page.
Thanks for you info
Hogtied :)
hogtied
07-18-2002, 01:25 AM
I am most likely going to change the Flash calender to HTML on because there are probably a lot if not a few user who don't have the Flash plug-in and maybe generated by CGI.
mouse
07-18-2002, 01:51 AM
To open the link in a new window stick the following actionscript on the button*:
On(release){
geturl("link.html","_blank");
}
If you want to make a pre-sized or chromeless window then you can do several things; 1) do a function in JavaScript and call it from the Flash button or my favourite; 2) stick the javascript to the button within flash...
on (release) {
getURL ("javascript:NewWindow=window.open'ShowPopup.php','Win1','width=300,height=300,left=50,top=50,toolbar= No,location=Yes,scrollbars=No,status=No,resizable=Yes,fullscreen=No');NewWindow.focus();void(0);");
}
*must be a button symbol
hogtied
07-18-2002, 02:36 AM
Thanks mouse but the main page is in HTML and I'm called the calender which is created in Flash.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.