Page 1 of 1

Unable to integrate from a different directory

Posted: 16 Mar 2008, 12:37
by Costas
Here's the HTML for the web page
Code
<html>

<head>
<meta>
<title>test</title>
<script></script>
<style>
<body>
</style>
</head>

<body>
<div id="imagevue">
test
</div>
<script>
   var so = new SWFObject("main/imagevue.swf", "imagevue", "900", "550", "6", "#FFFFFF");
   so.addVariable("backimage", "false");
   	so.addVariable("textcol", "EFEFEF");
   	so.addVariable("globalpath", "main/"); 
	so.addVariable("configfile", "main/templates/carbon/config.ini");
   so.write("imagevue");
   
   
</script>
</body>

</html>
Basically, all the files are contained in a folder called "main", but when I put the HTML file in my root directory, it brings up the flash and just says "INPUT..."

What am I doing wrong? If I take out all references of "main" in the html file and put it in that actual folder, everything loads up fine without any issues. It's only when I try to link to it from a different directory that the problems arise.

Edit: I don't know why the <script> tags got closed at the top, but this is the data it contained:

type="text/javascript" src="main/javascript/swfobject_source.js"

Posted: 17 Mar 2008, 21:26
by Costas
still haven't figured it out :(

Posted: 19 Mar 2008, 04:35
by mjau-mjau
I see nothing wrong in your code, except for perhaps this line:
Code
 so.addVariable("configfile", "main/templates/carbon/config.ini");
Path to config file is relative to the globalpath, therefore it should be:
Code
so.addVariable("configfile", "templates/carbon/config.ini");
I am not 100% sure this solves your problem, but if you can provide me with a link, I could look further into it -

Posted: 24 Mar 2008, 17:49
by Costas
That did the trick! Thank you so much!