The script give you the way around it’s horrors.
- if(true) {
-
- //
- // NOTE: After a document has been finalized, calling document.write
- // REPLACES the document, that is, reloads the page. If you are embedding
- // the content of the script tag call using JavaScript, capture the
- // content using a technique similar to the following:
- //
- // html = '<script src="http://occipital.com/360/embed.js?pano=...
- // content = '';
- // document.write = function(s) {
- // content += s;
- // };
- // $(viewer_target).html(html); // Load the script, capturing the content
- // $(viewer_target).html(content); // Append the generated HTML content to the same place
- //
-
- document.write(occipitalViewer.outputHTML);
-
- }
JΛ̊KE