Embedding Mashlet in HTML page

jacktyrrell
jacktyrrell's picture
User offline. Last seen 1 year 49 weeks ago. Offline
Joined: 05/27/2009
Points: 130

Hi,

I am trying to place two mashlets in a html page by using a table and placing the mashlets in the first two columns of a row (as shown below) but no matter what i try the two mashlets are just displayed one above the other. Would a table be the right structure to do this or would i have to split the html page up into sections and place the embed code within them? or is there a property in the mashlet that renders it to this position in tha page?

<HTML>
<BODY>
<TABLE>
<TR>
<TD><script src="http://localhost:8080/mashlets?mashlet=HelloWorld.Mashlet"></script></TD>
<TD><script src="http://localhost:8080/mashlets?mashlet=HelloWorld.Mashlet"></script></TD>
</TR>
</Table>
</BODY>
</HTML>

0
Your rating: None
jeremy.pitten
jeremy.pitten's picture
User offline. Last seen 2 weeks 6 days ago. Offline
Joined: 09/22/2008
Points: 275

Try this:

<HTML>
<BODY>
<TABLE>
<TR>
<TD id="abc" ><script src="http://localhost:8080/mashlets?mashlet=HelloWorld.Mashlet&el=abc"></script></TD>
<TD id="def" ><script src="http://localhost:8080/mashlets?mashlet=HelloWorld.Mashlet&el=def"></script></TD>
</TR>
</Table>
</BODY>
</HTML>