Pathing Issue to Files

I have a project where the player.html file that calls the .js files, etc. is in the directory with all the other files. I want to move the player to a different directory and still point to the child files and have it work. But it doesn't when I move the parent player.html file and change the paths.

I will attach a zip file at EEStuff for you to look at. The player.html file in the root directory is the one that I want to work, but doesn't. There is one in the child directory that does work if you want to see how it's supposed to work.

Here is the link to the zip file:
https://filedb.experts-exchange.com/incoming/ee-stuff/8312-PathIssue.zip 

thanks!
LVL 2
Starr DuskkASP.NET VB.NET DeveloperAsked:
Who is Participating?
 
nap0leonConnect With a Mentor Commented:
Without access to the SWF file's source code, I can only speculate what is happening.

When I launch the route path's player.html which loads /scrom/player/playershell.swf there is an error loading slidegroup.swf.

When I launch /scorm/player.html, it works fine.  It even loads /scorm/player/slidegroup.swf

This tells me that the pathing reference for the files that are being loaded by the SWF are not fully qualified.  that is, they are relative paths, like "player/slidegroup.swf" instead of "/scorm/player/slidegroup.swf".

Without updating the paths to the files and recompiling them, your options are limited.

The short term solution is to use an iframe that loads the player at /scorm/player.html where ever you want to place your SWF.
0
 
Starr DuskkASP.NET VB.NET DeveloperAuthor Commented:
Since the player is outside of the directory, are the inside paths no longer correct? Are they not relative to the directory they are in at that point?

For instance, in the scorm/player/flashcommand.js file there is a path:

var DATA_PATH = "data/swf/";

Open in new window


Is that no longer relative to that directory? Does that need scorm/data/swf/?

I did change it to that and it still doesn't work. But if it does require the change, then there are other locations that require a change as well. But I thought it was relative to the directory it was in, so that would still be okay.

thanks.
0
 
Starr DuskkASP.NET VB.NET DeveloperAuthor Commented:
BTW, I cannot use an iframe. I need to communicate with the results after the player is done. I can't do that by loading the page in an iframe.
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
nap0leonConnect With a Mentor Commented:
The (first) issue is that it fails to load slidegroup.swf in the html page's /player directory.

I do not see the word "slidegroup" in any of the files, so that leads me to believe that the reference to that file is inside the compiled swf.  To update this value, you would need to edit the source of the SWF and recompile it.
0
 
Starr DuskkASP.NET VB.NET DeveloperAuthor Commented:
why would the compiled swf not work when called by a file outside the directory vs. inside the directory? Isn't it relative to the swf file location? No?
0
 
Starr DuskkASP.NET VB.NET DeveloperAuthor Commented:
The imsmanigest.xml file has the file slidegroup and its path. I can try updating those paths in the manifest, but again, I keep asking, isn't it relative to the directory it's already in?

Once I'm in that directory, I shouldn't have to go back out to the /scorm/ directory again, should I?
0
 
Starr DuskkASP.NET VB.NET DeveloperAuthor Commented:
Changing the path in the imsmanifest.xml file didn't help -- unless I didn't do it right.
0
 
Starr DuskkASP.NET VB.NET DeveloperAuthor Commented:
I will find out more in regard to if the paths are in the SWF file.
0
 
nap0leonCommented:
I presume you are using http://scormsoft.com ?

If so... the manifest.xml file is a reference of files that are included in the project.  Updating the XML file outside of their software does not create any real-time changes... think of this as "reference material" for the project.

Since this is software that creates the swf file for you, I expect you will need to contact them directly for better guidance.  I do not see anything in their User Guide documentation that suggests one way or the other whether you can relocate the "player.html" file to a directory outside of the package's directory.
0
 
Starr DuskkASP.NET VB.NET DeveloperAuthor Commented:
Sorry, no. I'm actually trying to load a file that was generated by Articulate.

thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.