Embedding a revLet in an existing web page

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
SirWobbyTheFirst
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 246
Joined: Tue Jun 30, 2009 11:15 pm

Embedding a revLet in an existing web page

Post by SirWobbyTheFirst » Sat May 22, 2010 2:32 pm

Hello everyone.

I am doing a little web development for a website i'm creating and although I am not fluent (I'm a noob) in HTML and JavaScript, my web pages look alright. However I'm wanting to create a send feedback page and I have created a web page and I want to know how I could embed a revLet into the existing web page so my websites users could send their feedback.

Any help would be much appreciated. Thanks.

doc
Posts: 148
Joined: Fri Jun 09, 2006 4:30 pm

Re: Embedding a revLet in an existing web page

Post by doc » Sat May 22, 2010 11:09 pm

Hello,
As far as I can tell, all you need to do is build the revlet separately, then set up an area in your existing page to accommodate the proper dimensions. Open the HTML file that contains your revlet and look for the code that is automatically generated:

Code: Select all

<!-- Embed your revlets using code like this, to automatically guide the user to install the plugin, if it is not already installed -->
</p>
<div id="plugin" style="display:none">
<object classid="CLSID:B2EC94AF-4716-4300-824A-3314BF23664A" width=742 height=564>
	<param name="src" value="MyRevlet.revlet"/>
	<param name="stack" value="MyRevlet"/>
	<param name="requestedName" value=""/>
	<param name="instanceID" value=""/>
	<embed type="application/x-revolution"
		src="MyRevlet.revlet"
		width=742 height=564
		stack="MyRevlet"
		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 -->
Copy that code into your target file in the proper area, upload the new page and a copy of the revlet to your server and you're in business. You may have to do some tweaking to the dimensions and/or div's in order to get the positioning correct, but it should work just fine.

-Doc-

SirWobbyTheFirst
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 246
Joined: Tue Jun 30, 2009 11:15 pm

Re: Embedding a revLet in an existing web page

Post by SirWobbyTheFirst » Sun May 23, 2010 1:14 am

Thanks alot doc, I tried other methods but each failed with a blank page and no revlet displayed. Rather annoying tbh.

Post Reply