Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8240 Posts in 1905 Topics- by 2172 Members - Latest Member: JeffHLB
Calendar Script CommunityCustomizationCustomizing CalendarScript (Moderators: scott, DanO)Problem putting flash object on the default calendar.
Pages: [1]   Go Down
Print
Author Topic: Problem putting flash object on the default calendar.  (Read 851 times)
0 Members and 1 Guest are viewing this topic.
diggers253
New Member
*

Karma: 0
Offline Offline

Posts: 32


« on: September 19, 2009, 03:42:41 PM »

Can anyone help?


I am trying to put a flash object (actually a map containing lots of links to the calendars) onto the default.html page  - like this http://www.fla-shop.com and I cant get it to work properly.

I have it attached and it looks nice but none of the mouse over elements work.


the problem seems to be something to do with the location of the files.


If the files are located here: www.mysite.com/files then everything works fine. The map consists of a .swf file (the map itself) and a .xml file (the data for the links. The xml file has to be next to the html file on the server - for example if I put the map on the home page the .xml file has to be in the same place as index.html on the root



If I put the .xml file next to the default.html file (in mysite/cgi-bin/calendarscript/templates/calendars/default) - the map appears but the mouse over parts just dont work.

In tests, if I put the files anywhere within the  cgi-bin directory then it doesn't work - it seems to make the xml file invisible???



Any ideas?


I either need to be able to access through the cgi-bin dir as if its a normal directory - or perhaps move the default.html file to a location outside the cgi-bin dir if thats possible.


Has anyone done anything similar?

Thanks

Anthony
« Last Edit: September 20, 2009, 06:43:23 PM by DanO » Logged
DanO
Moderator
Sr. Member
*****

Karma: 13
Offline Offline

Posts: 273

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: September 20, 2009, 06:57:11 PM »

** The xml file has to be next to the html file on the server **

I'm just guessing since I do not have access to the instructions for the application you're attempting to use but:

I would assume the xml file would likely need to be in the same server path as the calendar is run. What is the URL to your calendar (the .pl file not the template)?

Either that or you may be able to get the authors the modify the flash file to look for the xml data file in the root directory of your site and then you can put the xml data file there.

The calendar template file needs to stay exactly where it is.

JMO

Dan O.
Logged
diggers253
New Member
*

Karma: 0
Offline Offline

Posts: 32


« Reply #2 on: September 21, 2009, 06:52:23 PM »

Hi, thanks for the reply. I just got this sorted but it was really tricky. In case anyone has a similar problem - here is our solution....You need an fla flash file - not just an swf file. The place I bought the map from wanted an extra £500 for the fla file! Instead we used a freeware program to decompile the swf file into an fla file and could then access the active layer in adobe flash. From there it was  just a simple case of editing the path to the xlm file - which give the flash program all its functions.

The reason we had to do that was because you cannot "run" an xlm file from within the cgi-bin directory - I'm not sure why but apparently its a security issue. By placing the xlm file outside of the cgi-bin directory on the server we were able to link to it from within the default.html file and run a flash program inside the calendar using normal html script.

I would add that were it not for the support I have been getting from Dan I would have had to give up with this project ages ago. Thanks - its starting to come together now!
Logged
DanO
Moderator
Sr. Member
*****

Karma: 13
Offline Offline

Posts: 273

Please don't PM me. Post in the open forum.


WWW
« Reply #3 on: September 21, 2009, 07:51:05 PM »

** you cannot "run" an xlm file from within the cgi-bin directory - I'm not sure why but apparently its a security issue. **

An xml file is not "run", just served. It is just a text file. Depending on how the web server software is set up, only script files (.pl, .cgi, etc.) may be allowed to be access within a cgi-bin directory, yes.

Glad to hear you figured it out and got it working. Thanks for the follow up.

Dan O.
Logged
diggers253
New Member
*

Karma: 0
Offline Offline

Posts: 32


« Reply #4 on: September 23, 2009, 07:38:02 PM »

One little update...


Probably a lot of people know this already, but I discovered that you need to add a flash fix - like flashfix.js to the html file.

It seems to stem from a legal battle Microsoft had a few years ago - so if you have a flash object on a page you have to click it first to activate it before you can use it.

In you install the Java fix then it just works straight away when the page loads.

The problem only exists with IE I think, FF, Chrome, Safari and Opera all seem to work fine without it.
Logged
Pages: [1]   Go Up
Print
Jump to: