When trying to share some of my Project Swiki projects with Squeakland, it
was discovered that the projects would not load properly on the Mac(both OS9
and OSX). For some odd reason, embedding the <embed> tag inside the <object>
tag does not work as it should.

Replace the html code in /installDirectory/ComSwiki/swiki/refs/templates/68
with the following script:

<SCRIPT LANGUAGE="JavaScript">
    var _info = navigator.userAgent;
    var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 &&
_info.indexOf("Windows 3.1") < 0);
</SCRIPT>

<SCRIPT LANGUAGE="JavaScript">
    if (_ie == true) document.writeln('<OBJECT ID="SqueakOCX Control"
WIDTH="<?embedWidth?>" HEIGHT="<?embedHeight?>"
type="application/x-squeak-source"
CLASSID="CLSID:2BE9C39E-8386-4435-B337-FCDAD8EAB006"
CODEBASE="http://squeakland.org/installers/SqueakPluginInstaller.exe";>
<PARAM name="width" value="<?embedWidth?>"> <PARAM name="height"
value="<?embedHeight?>"> <PARAM name="src" value="<?fullSrcUrl?>"> <PARAM
name="codeUrl" value="<?fullCodeUrl?>"> <PARAM name="projectUrl"
value="<?fullProjectUrl?>"> <PARAM name="bookUrl" value="<?fullBookUrl?>">
<PARAM name="pageId" value="<?pageId?>"> <PARAM name="locked"
value="<?isLocked?>"> <PARAM name="types" value="<?types?>"> <PARAM
name="update" value="111"> <PARAM name="win32" value="Squeak3.2gamma of 12
January 2002 [latest update: #4879]"> <PARAM name="macos"
value="Squeak3.1alpha of 16 May 2001 [latest update: #4081]"> <PARAM
name="loader_url" value="http://squeakland.org/project.jsp";> <PARAM
name="pluginspage" value="http://squeakland.org/detect.html";> <PARAM
name="update_url" value="http://squeakland.org/update/";></OBJECT>');
    else document.writeln('<embed type="application/x-squeak-source"
src="<?fullSrcUrl?>" codeUrl="<?fullCodeUrl?>"
projectUrl="<?fullProjectUrl?>" bookUrl="<?fullBookUrl?>"
pageId="<?pageId?>" locked="<?isLocked?>" types="<?types?>"
width="<?embedWidth?>" height="<?embedHeight?>"
pluginspage="<?pluginUrl?>">');
</SCRIPT>

Finally, restart the server.

Good luck,

John

Reply via email to