Topic: js error - Object Expected
Just bought SV Builder Pro and, although SV is a brilliant piece of SW, I'm having probs already!!
Just created a simple embedded gallery, relative paths changed accordingly, DOCTYPE set as per SVBpro generated index.html file, and I can't think of anything else that would need changing!
The SVBpro index.html file works ok in its installed directory, but the moment I move it up one directory and adjust the "simpleviewer.js" path accordingly I get a js error; Object Expected, referring to $(document).ready(function () {...});
I'm doing the site on localhost at present so I don't have anything uploaded for you to look at :-| but can assure you I'm not a newbie.
Saying that, "What else needs changing???"
Here's the adjusted code for the index.html file:
<body>
<!--START SIMPLEVIEWER EMBED -->
<script type="text/javascript" src="/accommodation/svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
$(document).ready(function () {
SV.simpleviewer.load('sv-container', '100%', '100%', '222222',true);
});
</script>
<div id="sv-container"></div>
<!--END SIMPLEVIEWER EMBED -->
</body>
The only change here is the addition of the "/accommodation/" in the path for the simplevierer.js file - which is loads without problem.
No other changes to the xml file, thumbs or images directories, etc.....
Thanks in advance for any very PROMPT help anyone can give me!