Problems embedding xml

Q&A about the latest versions
Post Reply
BrownewellPhoto
Posts: 46
Joined: Wed Nov 17, 2010 3:00 pm
Location: Elkhart, IN, USA
Contact:

Tue Jul 07, 2015 5:33 pm

I'm trying to embed a file but I'm having trouble getting the skin to load.

here's my code:

Code: Select all

<h1></h1>
		<br>
		<script type="text/javascript" src="360-product-photography/CM9550/object2vr_player.js">
		</script>
		<script type="text/javascript" src="360-product-photography/CM9550/skin.js">
		</script>
		<div id="container" style="width:911px;height:504px;">
		This content requires HTML5 & Javascript or Adobe Flash Player Version 9 or higher.
		</div>
		<script type="text/javascript">
	
			// create the object player with the container
			obj=new object2vrPlayer("container");
			// add the skin object
			skin=new object2vrSkin(obj);
			// load the configuration
			obj.readConfigUrl("360-product-photography/CM9550/CM9550.xml");
			// hide the URL bar on the iPhone
			setTimeout(function() { hideUrlBar(); }, 10);
		</script>
		<noscript>
			<p><b>Please enable Javascript!</b></p>
		</noscript>
What it actually ends up looking like is this:
What it actually ends up looking like is this:
what it looks like.JPG (51.57 KiB) Viewed 2163 times
What it's supposed to look like
What it's supposed to look like
what it's supposed to look like.JPG (29.55 KiB) Viewed 2163 times
Coding isn't my strong suit, can anyone tell me what I'm doing wrong?
Pat Brownewell
Brownewell Photography
http://www.360ProductPhotographer.com
User avatar
Hopki
Gnome
Posts: 10354
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Tue Jul 07, 2015 9:36 pm

Hi Pat,
This just looks like the project can't see the images folder.
Use the error console to see what it actually looking for.
Regards,
Hopki
Hopki
Garden Gnome Software Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
BrownewellPhoto
Posts: 46
Joined: Wed Nov 17, 2010 3:00 pm
Location: Elkhart, IN, USA
Contact:

Tue Jul 07, 2015 10:12 pm

That's not really helping me much. As I said, I'm not great with coding so I don't even know what I'm looking for unless it says /images/... and is CLEARLY out of place.

I uploaded the folder exactly as it comes out of O2vr and am embedding directly from there. by using

Code: Select all

src="360-product-photography/CM9550/object2vr_player.js"
. I can open the version that is just sitting in the exported folder but I don't know how to make the embedded version work with the skin. I've tried messing with the skin.js to no avail.

Is there just an embedding tutorial that you can link to? I can't seem to find one.
Pat Brownewell
Brownewell Photography
http://www.360ProductPhotographer.com
BrownewellPhoto
Posts: 46
Joined: Wed Nov 17, 2010 3:00 pm
Location: Elkhart, IN, USA
Contact:

Tue Jul 07, 2015 10:30 pm

I should also say that this is only happening with files with skins.
Pat Brownewell
Brownewell Photography
http://www.360ProductPhotographer.com
BrownewellPhoto
Posts: 46
Joined: Wed Nov 17, 2010 3:00 pm
Location: Elkhart, IN, USA
Contact:

Tue Jul 07, 2015 10:52 pm

It's taken me all day but I figured it out. My skin.js and player/js were all calling from the wrong location. I figured it would be by folder but I had to change every instance when an image was called.

Thanks for the help!
Pat Brownewell
Brownewell Photography
http://www.360ProductPhotographer.com
Post Reply