Search…

X3 Photo Gallery Support Forums

Search…
 
Costas
Topic Author
Posts: 6
Joined: 16 Mar 2008, 12:34

Unable to integrate from a different directory

16 Mar 2008, 12:37

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"
 
Costas
Topic Author
Posts: 6
Joined: 16 Mar 2008, 12:34

17 Mar 2008, 21:26

still haven't figured it out :(
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

19 Mar 2008, 04:35

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 -
 
Costas
Topic Author
Posts: 6
Joined: 16 Mar 2008, 12:34

24 Mar 2008, 17:49

That did the trick! Thank you so much!