Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Open Events page in new window with custom size
elevatedboarding
Junior Member

Posts: 3
Registered: 8/25/2004
Member Is Offline
posted on 8/25/2004 at 01:48 AM Reply With Quote
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?
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 1926
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 8/25/2004 at 08:04 PM Reply With Quote

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.
View User's Profile View All Posts By User U2U Member
elevatedboarding
Junior Member

Posts: 3
Registered: 8/25/2004
Member Is Offline
posted on 8/25/2004 at 08:38 PM Reply With Quote

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
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 1926
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 8/26/2004 at 03:11 PM Reply With Quote

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.
View User's Profile View All Posts By User U2U Member
elevatedboarding
Junior Member

Posts: 3
Registered: 8/25/2004
Member Is Offline
posted on 8/27/2004 at 12:44 AM Reply With Quote

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?
View User's Profile View All Posts By User U2U Member
bluesbrother
Newbie

Posts: 1
Registered: 9/10/2004
Member Is Offline
posted on 9/10/2004 at 12:49 PM Reply With Quote

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.
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Free/Trial Script Download Free Download
Product Documentation Documentation
Documentation page
Change Log
Support Forum Support Forum
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004