Web deployment does not work for me

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Web deployment does not work for me

Post by jacque » Fri Jul 01, 2011 2:58 am

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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

BarrySumpter
Posts: 1201
Joined: Sun Apr 24, 2011 2:17 am

Re: Web deployment does not work for me

Post by BarrySumpter » Fri Jul 01, 2011 4:00 am

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>
All my best,
Barry G. Sumpter

Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.

BarrySumpter
Posts: 1201
Joined: Sun Apr 24, 2011 2:17 am

Re: Web deployment does not work for me

Post by BarrySumpter » Fri Jul 01, 2011 4:31 am

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>
Last edited by BarrySumpter on Fri Jul 01, 2011 4:43 am, edited 2 times in total.
All my best,
Barry G. Sumpter

Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.

BarrySumpter
Posts: 1201
Joined: Sun Apr 24, 2011 2:17 am

Re: Web deployment does not work for me

Post by BarrySumpter » Fri Jul 01, 2011 4:37 am

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>
All my best,
Barry G. Sumpter

Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.

admin12
Posts: 412
Joined: Wed May 11, 2011 9:47 am

Re: Web deployment does not work for me

Post by admin12 » Fri Jul 01, 2011 7:46 am

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

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Web deployment does not work for me

Post by Klaus » Fri Jul 01, 2011 12:03 pm

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

admin12
Posts: 412
Joined: Wed May 11, 2011 9:47 am

Re: Web deployment does not work for me

Post by admin12 » Fri Jul 01, 2011 12:50 pm

Klaus,

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

Mike

BarrySumpter
Posts: 1201
Joined: Sun Apr 24, 2011 2:17 am

Re: Web deployment does not work for me

Post by BarrySumpter » Fri Jul 01, 2011 10:34 pm

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.
All my best,
Barry G. Sumpter

Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.

townsend
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 430
Joined: Sun Feb 13, 2011 8:43 pm

Re: Web deployment does not work for me

Post by townsend » Fri Jul 01, 2011 11:16 pm

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.

BarrySumpter
Posts: 1201
Joined: Sun Apr 24, 2011 2:17 am

Re: Web deployment does not work for me

Post by BarrySumpter » Fri Jul 01, 2011 11:25 pm

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.
All my best,
Barry G. Sumpter

Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.

Post Reply