|
-
path to linked HTML document doesn't work after burned to CD
Well in a nutshell that is the problem. When ever I burn to the CD my link to the html documents gets lost. Not sure what to do. It works on my computer. Can it not find it because the back slashes should be forward slashes.
on (release) {
getURL("../player%20file%20s/player%20files/viscusi1-01-wma launch.html", "_blank");
}
Please help.
Thanks
cs
-
FK's Official Mac Hater
I would try using Forward slashes and also, is the path correct? I wouldn't use spaces in your path either. Try using underscores in place of them.
Jason L. Wright
I'm not that hard to imitate. Just make some random negative claim at Apple or anything else for that matter and then have nothing to back it up.
-
Senior Member
put the entire url address i.e. ("http://www.flashkit.com","_blank")
If you don't think you're going to like the answer, then don't ask the question.
-
FK's Official Mac Hater
 Originally Posted by EQFlash
put the entire url address i.e. ("http://www.flashkit.com","_blank")
I would normally recommend this as well but if he is loading the file off of a cd then there isn't really a way to know what the end user's CD Drive letter will be.
Jason L. Wright
I'm not that hard to imitate. Just make some random negative claim at Apple or anything else for that matter and then have nothing to back it up.
-
FK's Official Mac Hater
Actually, I did find a solution that should work for you. Go look at this thread.
Jason L. Wright
I'm not that hard to imitate. Just make some random negative claim at Apple or anything else for that matter and then have nothing to back it up.
-
I tried using forward slashes and unfortunetly it did not work. The html document is just a document located on the disk, so I do not have a complete http address. I am really confused as to why it can not find the documents. Am I right when I start off with the folder the launch.html document is located in on the root of the CD.
on (release) {
getURL("..\schechter2-01-wma\launch.html", "_blank");
}
Thanks for the help, this is driving me nuts.
-
FK's Official Mac Hater
 Originally Posted by Northcode
This should fix the problem...
drv = _url.substr(8,1);
getURL("file://" + drv + ":\\glossary.html");
That is the solution that Northcode gave in the other thread. It allows you to get the drive letter so that you can then give the full path to the file.
Jason L. Wright
I'm not that hard to imitate. Just make some random negative claim at Apple or anything else for that matter and then have nothing to back it up.
-
Flash Gordon
1) \ is a backward slash, / is a forward slash
2) use forward slashes and relative paths as they are OS independend
3) don't use the workaround jasonsplace linked to... as that is not a good workaround and i highly doubt, that this is the problem.
4) in the root dir of the cd you can't use ../ as that points one directory up, but there
is none...
Hmm.. could you pls post the absolute pathes to your files?
Like :
d:/index.html //will be initially loaded from CD
d:/flash/bla.swf // will be embedded in the index.html
So we will have an idea what is going wrong...
My letters on the F1 key have faded, how are yours today?
-
My html documents are not located on the root of the CD unfortunetly they are located in a folder on the root. The person who created the html documents labeled all three presentations the same so I can not put them all on the root without replacing parts of each. I could relabel all of the documents but that would leave me with a ton of documents on the root of the CD. I know that this can be done at least I think so.
Thanks again for your help.
-
FK's Official Mac Hater
Can you give a list of the contents of the CD. Like Where is the file located that launches all of the web pages? Is it in the root? If it is then you don't need the ../ like McUsher said.
Jason L. Wright
I'm not that hard to imitate. Just make some random negative claim at Apple or anything else for that matter and then have nothing to back it up.
-
Flash Gordon
Well then pls post the absolute paths to all involved documents (html/swf),
so we can see, how your filestructure looks like 
[edit]
Oh jason was faster
My letters on the F1 key have faded, how are yours today?
-
file://localhost/Users/cspohr/Desktop/playerfiles/schechter1-01-wma/launch.html
file://localhost/Users/cspohr/Desktop/playerfiles/schechter2-01-wma/launch.html
file://localhost/Users/cspohr/Desktop/playerfiles/viscusi1-01-wma/launch.html
Here are the three complete paths. The files as you can see are located on my desktop. I can get it to work on my mac with this..
on (release) {
getURL("../playerfiles/schechter1-01-wma/launch.html", "_blank");
}
on (release) {
getURL("../playerfiles/viscusi1-01-wma/launch.html", "_blank");
}
on (release) {
getURL("../playerfiles/schechter2-01-wma/launch.html", "_blank");
}
These are in the same order as the paths.
Hope this helps.
Thanks again everyone
-
Flash Gordon
hmm if i am correct, it must be:
getURL("../../playerfiles/schechter2-01-wma/launch.html", "_blank");
or:
getURL("../schechter2-01-wma/launch.html", "_blank");
as relative path, as one example...
I still don't get, why the wrong paths work on your mac ... shouldn't be..
And that is NOT the Absolute path on CD ...
My letters on the F1 key have faded, how are yours today?
-
And this is what is going to be on the CD. It will contain the autorun.inf and the .exe file along with a projector file in case there are any Mac users. Then also on the root will be pdfs that are also linked to the .exe and the projector. On the root will be three folders labeled
schechter1-01-wma
schechter2-01-wma
viscusi1-01-wma
Each will contain all of the parts of the html document along with the main launch.html document. Hoope this helps
Sorry I am a little slow on the replies because I am working on this at the same time.
Thanks
cs
-
FK's Official Mac Hater
Is the EXE File going to be launching these files? If it is, where is it located at. Can you give the complete directory structure of what the CD is going to be if McUsher's last suggestion didn't fix it.
Jason L. Wright
I'm not that hard to imitate. Just make some random negative claim at Apple or anything else for that matter and then have nothing to back it up.
-
Flash Gordon
Grr suddenly there is a projector... hmpf..
Ok the Projector is in cd-root... aknowledged.
So if you do a link to those html files in that projector,
it should naturally be:
getURL("./schechter-1-01-wma/launch.html","_blank");
as ./ is currentpath and schechterXX the first subfolder.
You might omit the ./ as well:
getURL("schechter-1-01-wma/launch.html","_blank");
My letters on the F1 key have faded, how are yours today?
-
I am burning a cd using
getURL("schechter-1-01-wma/launch.html","_blank");
I will let you know
-
Flash Gordon
Should work if that is really your filestructure 
And pls do yourself a favour and read a (short) tutorial about relative paths 
It is quite easy and helps you having less headaches on many occasions.
but tbh i still don't get, why it worked on your harddrives structure..
Where was the Projector located there?
My letters on the F1 key have faded, how are yours today?
-
ALRIGHT!!!! wohoo, that worked. Thanks Now on to my next question I want to constrain the size of my html document to 750 x 550. How would I go about attaching that to the...
getURL("schechter-1-01-wma/launch.html","_blank");
I need javascript for this right?
Thanks again to all.
cs
-
FK's Official Mac Hater
Yes you need JavaScript but you can't run JavaScript from within a projector so you will need to resize the window in the launch.html file. Here is a javascript I found on another thread to do it:
<script language=Javascript>
<!--
self.moveTo(200,200);
self.resizeTo(width=750, height=550);
self.focus();
//-->
</script>
It allows you to move, resize and set focus to the browser window. You can get rid of any of the things that you don't want to do and change the numbers to meet your specs.
Jason L. Wright
I'm not that hard to imitate. Just make some random negative claim at Apple or anything else for that matter and then have nothing to back it up.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|