Page 2 of 2

Re: Web deployment does not work for me

Posted: Fri Jul 01, 2011 2:58 am
by jacque
Wow. That's great! I had no idea the issue was in the HTML. Can you save me a comparison and say which lines you took out?

I'm really glad to hear this. Nice sleuthing.

Re: Web deployment does not work for me

Posted: Fri Jul 01, 2011 4:00 am
by BarrySumpter

Code: Select all

<html>
<head>
</head>

<body>

<center>

<object classid="CLSID:B2EC94AF-4716-4300-824A-3314BF23664A" width=1228 height=608>
<param name="src" value="CampStaffUSAReports.revlet"/>
<param name="stack" value="CampStaffUSA Reports"/>
<param name="requestedName" value=""/>
<param name="instanceID" value=""/>
<embed type="application/x-revolution"
src="CampStaffUSAReports.revlet"
width=1228 height=608
stack="CampStaffUSA Reports"
requestedName=""
instanceID=""
></embed>
</object>

<script type="text/javascript">
var agt=navigator.userAgent.toLowerCase();
var ie = (agt.indexOf("msie") != -1);
var ns = (navigator.appName.indexOf("Netscape") != -1);
var win = ((agt.indexOf("win")!=-1) || (agt.indexOf("32bit")!=-1));
var mac = (agt.indexOf("mac")!=-1);
if(ie && win){ pluginlist = detectIE("RunRev.RevWebPluginCtrl.1","Revolution"); }
if (ns || !win){ nse = ""; for(var i=0;i<navigator.mimeTypes.length;i++) nse += navigator.mimeTypes[i].type.toLowerCase(); pluginlist = detectNS("application/x-revolution","Revolution"); }
function detectIE(ClassID,name) { result = false; document.write('<SCRIPT LANGUAGE=VBScript>\n on error resume next \n result = IsObject(CreateObject("' + ClassID + '"))\</SCRIPT\>\n'); if (result) return name+','; else return ''; }
function detectNS(ClassID,name) { n = ""; if (nse.indexOf(ClassID) != -1) if (navigator.mimeTypes[ClassID].enabledPlugin != null) n = name+","; return n; }
pluginlist += navigator.javaEnabled() ? "Java," : "";
if (pluginlist.length > 0) pluginlist = pluginlist.substring(0,pluginlist.length-1);
var plugin = document.getElementById("plugin");
var noplugin = document.getElementById("noplugin");
plugin.style.display = "none";
noplugin.style.display = "none";
if(pluginlist.indexOf("Revolution")!=-1){ plugin.style.display = "block"; }else{ noplugin.style.display = "block"; }
</script>

</center>

</body>
</html>

Re: Web deployment does not work for me

Posted: Fri Jul 01, 2011 4:31 am
by BarrySumpter
WOW!

That works for me!

Well done!

Mike! You so freakin' rule dude!

DOES NOT WORK in Iinternet Explorer - works ok in FireFox:
http://barrysumpter.com/Splash%20Test.htm

Code: Select all

<html>
<head>
</head>

<body>


This Works:
http://barrysumpter.com/Splash%20Test%202.htm

[code]
<html>
<head>
</head>

<body>

<center>

<object classid="CLSID:B2EC94AF-4716-4300-824A-3314BF23664A" width=480 height=760>
<param name="src" value="Splash%20Test.revlet"/>
<param name="stack" value="Splash Test"/>
<param name="requestedName" value=""/>
<param name="instanceID" value=""/>
<embed type="application/x-revolution"
src="CampStaffUSAReports.revlet"
width=1228 height=608
stack="CampStaffUSA Reports"
requestedName=""
instanceID=""
></embed>
</object>

<script type="text/javascript">
var agt=navigator.userAgent.toLowerCase();
var ie = (agt.indexOf("msie") != -1);
var ns = (navigator.appName.indexOf("Netscape") != -1);
var win = ((agt.indexOf("win")!=-1) || (agt.indexOf("32bit")!=-1));
var mac = (agt.indexOf("mac")!=-1);
if(ie && win){ pluginlist = detectIE("RunRev.RevWebPluginCtrl.1","Revolution"); }
if (ns || !win){ nse = ""; for(var i=0;i<navigator.mimeTypes.length;i++) nse += navigator.mimeTypes[i].type.toLowerCase(); pluginlist = detectNS("application/x-revolution","Revolution"); }
function detectIE(ClassID,name) { result = false; document.write('<SCRIPT LANGUAGE=VBScript>\n on error resume next \n result = IsObject(CreateObject("' + ClassID + '"))\</SCRIPT\>\n'); if (result) return name+','; else return ''; }
function detectNS(ClassID,name) { n = ""; if (nse.indexOf(ClassID) != -1) if (navigator.mimeTypes[ClassID].enabledPlugin != null) n = name+","; return n; }
pluginlist += navigator.javaEnabled() ? "Java," : "";
if (pluginlist.length > 0) pluginlist = pluginlist.substring(0,pluginlist.length-1);
var plugin = document.getElementById("plugin");
var noplugin = document.getElementById("noplugin");
plugin.style.display = "none";
noplugin.style.display = "none";
if(pluginlist.indexOf("Revolution")!=-1){ plugin.style.display = "block"; }else{ noplugin.style.display = "block"; }
</script>

</center>

</body>
</html>

Re: Web deployment does not work for me

Posted: Fri Jul 01, 2011 4:37 am
by BarrySumpter
DOES NOT WORK in FireFox - works ok in Internet Explorer:
http://barrysumpter.com/Splash%20Test%202.htm

Code: Select all

<center>
<h1>Test page for  Splash Test</h1>
<p>

<!-- Embed your revlets using code like this, to automatically guide the user to install the plugin, if it is not already installed -->
<div id="plugin" style="display:none">
<object classid="CLSID:B2EC94AF-4716-4300-824A-3314BF23664A" width=480 height=800>
	<param name="src" value="Splash%20Test.revlet"/>
	<param name="stack" value="Splash Test"/>
	<param name="requestedName" value=""/>
	<param name="instanceID" value=""/>
	<embed type="application/x-revolution"
		src="Splash%20Test.revlet"
		width=480 height=800
		stack="Splash Test"
		requestedName=""
		instanceID=""
	></embed>
</object>

</div>
<div id="noplugin" style="display:none">
	<a href="http://revweb.runrev.com"><img src="http://www.runrev.com/revweb/images/revweb-noplugin.gif" border=0></a>
</div>
<!-- Revlet embedding code finishes above this line -->

</p>

<!-- This script determines if the plugin is installed, and if so shows the 'plugin' DIV, otherwise it shows the 'noplugn' DIV -->
<script type="text/javascript">
var agt=navigator.userAgent.toLowerCase();
var ie  = (agt.indexOf("msie") != -1);
var ns  = (navigator.appName.indexOf("Netscape") != -1);
var win = ((agt.indexOf("win")!=-1) || (agt.indexOf("32bit")!=-1));
var mac = (agt.indexOf("mac")!=-1);
if(ie && win){ pluginlist = detectIE("RunRev.RevWebPluginCtrl.1","Revolution"); }
if (ns || !win){ nse = ""; for(var i=0;i<navigator.mimeTypes.length;i++) nse += navigator.mimeTypes[i].type.toLowerCase(); pluginlist = detectNS("application/x-revolution","Revolution"); }
function detectIE(ClassID,name) { result = false; document.write('<SCRIPT LANGUAGE=VBScript>\n on error resume next \n result = IsObject(CreateObject("' + ClassID + '"))\</SCRIPT\>\n'); if (result) return name+','; else return ''; }
function detectNS(ClassID,name) { n = ""; if (nse.indexOf(ClassID) != -1) if (navigator.mimeTypes[ClassID].enabledPlugin != null) n = name+","; return n; }
pluginlist += navigator.javaEnabled() ? "Java," : "";
if (pluginlist.length > 0) pluginlist = pluginlist.substring(0,pluginlist.length-1);
var plugin = document.getElementById("plugin");
var noplugin = document.getElementById("noplugin");
plugin.style.display = "none";
noplugin.style.display = "none";
if(pluginlist.indexOf("Revolution")!=-1){ plugin.style.display = "block"; }else{ noplugin.style.display = "block"; }
</script>
<!-- Plugin detection script finishes above this line -->

</center>

</body>
</html>

Re: Web deployment does not work for me

Posted: Fri Jul 01, 2011 7:46 am
by admin12
lol. Hmmm. Well, use one for IE and the other for FF.

I got the same results with your file. With mine, everything works except chrome. Of course, mine is database related and therefore is VERY simplistic on the graphics. Nothing major really going on. Just querying data.

Mike

Re: Web deployment does not work for me

Posted: Fri Jul 01, 2011 12:03 pm
by Klaus
Hi friends,

lets face the truth: The plugin is not ready for primetime in its current state yet!
So do yourself a favour and don't rely on it!


Best

Klaus

Re: Web deployment does not work for me

Posted: Fri Jul 01, 2011 12:50 pm
by admin12
Klaus,

I kinda have to. However, I will let my clients know the state of things.

Mike

Re: Web deployment does not work for me

Posted: Fri Jul 01, 2011 10:34 pm
by BarrySumpter
I think we've just proven it is ready.

And its just the HTML that surrounds it that we need to change get it to work.

Not the first work around - won't be the last.

Not a prob for me if it doesn't work under GC.


Now the only thnig we need to add is how to check which browser is being used and how to redirect.

Re: Web deployment does not work for me

Posted: Fri Jul 01, 2011 11:16 pm
by townsend
BarrySumpter wrote:DOES NOT WORK in FireFox - works ok in Internet Explorer:
http://barrysumpter.com/Splash%20Test%202.htm
Good work getting this working on Internet Explorer!!

Confirmed: works in IE, does not work in Firefox.
Also, this particular example does not work in Chrome.

Re: Web deployment does not work for me

Posted: Fri Jul 01, 2011 11:25 pm
by BarrySumpter
I'm sure if we spent more than just a few minute on it we'd come up with that same solution as admin12.

Just havn't had the time or needs at the mo.