elevatedboarding
Junior Member
Posts: 3
Registered: 8/25/2004
Member Is Offline
|
| posted on 8/25/2004 at 01:48 AM |
|
|
Open Events page in new window with custom size
At the moment I have the calendar set to open a new page when clicking an event. It opens a full page though. Is there a way I can set it to open a
page that is 400px by 400px for example?
|
|
|
tigra
Administrator
Posts: 1926
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 8/25/2004 at 08:04 PM |
|
|
You can use javascript:window.open(...) statement in the url. Search the net for information about this method and code samples. For example you can
find this method call in Tigra Calendar.
|
|
|
elevatedboarding
Junior Member
Posts: 3
Registered: 8/25/2004
Member Is Offline
|
| posted on 8/25/2004 at 08:38 PM |
|
|
Thanks for the response.
I thought of using the javascript, but I am not sure where to put the window.open statement. I have tried it in multiple places in the calendar.php
file and all I ever get is
Parse error: Unexpeted T_STRING on line x (x=line where script is)
Where/which file should the window.open statement be in?
Thanks again.
-Conor
|
|
|
tigra
Administrator
Posts: 1926
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 8/26/2004 at 03:11 PM |
|
|
In Events Editor you have the option to provide the URL of the page for the date. The text you enter there will be placed in <a
href="..."> under the date. This is where you place javascript:window.open(..) statement.
Also you can make changes to the script's code (where calendar is generated) in order to keep standard event list, but make it open in sized
window. Instead of <a href="url"> the generated code should be <a href="javascript:window.open('url', other
params)">
Contact us with customization request if you find it difficult to make those changes to the script.
|
|
|
elevatedboarding
Junior Member
Posts: 3
Registered: 8/25/2004
Member Is Offline
|
| posted on 8/27/2004 at 12:44 AM |
|
|
Putting the javascript:windowopen in the Event redirect URL is a great solution. However, when I put the line
javascript:window.open('events.htm','Events','toolbar=0,location=0,scrollbars=0,resizable=0,statusbar=1,status=1,width=740,he
ight=470')
into the URL: link under Event Editor and click Update, it turns the line into the following:
javascript:window.open(\'events.htm\',\'Events\',\'toolbar=0,location=0,scrollbars=0,resizable=0,statusbar=1,status=1,wi
dth=740,height=470\')
it also prefaces the code with http"//, making the javascript fail. It looks like the event URL does not agree with the single quotes. When I
try double quotes, it turns the javascript line into a single /
Do I need to encapsualte the javascript command in something to avoid this? Or and I missing something very simple?
|
|
|
bluesbrother
Newbie
Posts: 1
Registered: 9/10/2004
Member Is Offline
|
| posted on 9/10/2004 at 12:49 PM |
|
|
Is it also possible to display the events on the same page as the calendar (e.g. under the calendar) instead of opening a new page?
Thanks.
|
|
|