Custom silverlight control in mojoportal

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
8/8/2011 5:38:14 AM
Gravatar
Total Posts 4

Custom silverlight control in mojoportal

Hello,

I use the latest version of mojoportal and i want a custom Silverlight control. I read all the forum posts and didn't find answer. I tried copy .xap to ClientBin folder and add content into html feature. Nothing helped, although it suggest me to install Silverlight. But the funny thing is that i programmed with it for 1 year. Does anyone know answer?

Regards, Adomas

8/8/2011 5:51:13 AM
Gravatar
Total Posts 108
Community Expert

Re: Custom silverlight control in mojoportal

Please post hear the code that you use for insert the silverligh object into the html feature, so we can check if you have any error.

 

this is a example from my code

 

<div id="silverlightControlHost"><object width="500" height="280" type="application/x-silverlight-2" data="data:application/x-silverlight-2,">
<param value="black" name="background" />
<param value="/ClientBin/ImageFlow3D.xap" name="source" />
<param value="Path=/Services/GalleryDataService.ashx?pageid=18&amp;mid=27,UseReflejo=true,TypeFile=jpg,ImageHeigth=160,ImageWidth=250" name="initParams" />
<p>This content requires Microsoft Silverlight.</p>
<p><a style="text-decoration: none;" href="http://go.microsoft.com/fwlink/?LinkId=149156"><img style="border-style: none;" src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" /></a></p>
</object></div>

 

8/8/2011 6:04:34 AM
Gravatar
Total Posts 4

Re: Custom silverlight control in mojoportal

<div id="silverlightControlHost"><fck:object type="application/x-silverlight-4" height="213%" width="95%" data="data:application/x-silverlight-4,">
<param name="source" value="Clientbin/SL.Features.xap" />
<param name="onError" value="onSilverlightError" />
<param name="background" value="transparent" />
<param name="windowless" value="true" />
<param name="minRuntimeVersion" value="3.0.40624.0" />
<param name="autoUpgrade" value="true" /><a style="text-decoration: none;" href="http://go.microsoft.com/fwlink/?LinkID=149156&amp;v=3.0.40624.0"> <img width="95%" height="213%" alt="Get Microsoft Silverlight" src="http://go.microsoft.com/fwlink/?LinkId=108181" /> </a></fck:object><iframe id="_sl_historyFrame" style="border: 0px currentColor; width: 0px; height: 0px; visibility: hidden;"></iframe></div>

My code. I found that in this forum

And that are you doing with service? is it necessary?

 

8/8/2011 6:16:23 AM
Gravatar
Total Posts 108
Community Expert

Re: Custom silverlight control in mojoportal

Please remove the fck: before your object, I'm suppose that this is something the FCKeditor add and could be part of the problem, also you are missing one "/" in the value of your source path.

Every thing else seems right to me.

The service I'm using it's a initial parameter that my Silverlight app is waiting, if you don't need passing parameters into your app you don't need this

You must sign in to post in the forums. This thread is closed to new posts.