Integrate "Windows Live Messenger Web Toolkit" into mojoportal

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
6/8/2010 2:10:02 AM
Gravatar
Total Posts 9

Integrate "Windows Live Messenger Web Toolkit" into mojoportal

        I must declare attributes for 'html' tag  of layout master  to which can integrate "Windows Live Messenger Web Toolkit" into mojoportal

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:msgr="http://messenger.live.com/2009/ui-tags">
 

       I don't know why but after displaying the page then "<html>" tag will no longer have the attributes   xmlns="http://www.w3.org/1999/xhtml" xmlns:msgr="http://messenger.live.com/2009/ui-tags". So I can't integrate "window live mesenger" into mojoportal because "Windows Live

messenger web toolkit" must have the msgr namespace to the root HTML node of the document.

Please help me add the attributes  xmlns="http://www.w3.org/1999/xhtml" xmlns:msgr="http://messenger.live.com/2009/ui-tags" to <html> tag in layout master.
 

6/8/2010 6:24:25 AM
Gravatar
Total Posts 18439

Re: Integrate "Windows Live Messenger Web Toolkit" into mojoportal

You must be editing the wrong file, the site uses skins from /Data/Sites/[SiteID]/skins not from /Data/Skins, so in most cases it will be under /Data/Sites/1/skins/[skinname]

Myself I don't like the way that toolkit works and requires extra elements. Even if you change to xhtml doctype and add those declarations it may be technically valid, but it will not pass the w3c validator.

Hope it helps,

Joe

6/9/2010 10:53:27 PM
Gravatar
Total Posts 9

Re: Integrate "Windows Live Messenger Web Toolkit" into mojoportal

    Thank you so much.

   I've done exactly as you guide. This is  my layout master page. It has javascript in <head> tag that calls "window live messenger service".

  <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="~/App_MasterPages/layout.Master.cs" Inherits="mojoPortal.Web.layout" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:msgr="http://messenger.live.com/2009/ui-tags">
<head id="Head1" runat="server"><title></title>
<%-- JQueryUIThemeName valid options are:
base, black-tie, blitzer, cupertino, dark-hive, dot-luv, eggplant, excite-bike, flick, hot-sneaks,
humanity, le-frog, mint-choc, overcast, pepper-grinder,
redmond, smoothness, south-street, start, sunny, swanky-purse, trontastic, ui-darkness, ui-lightness, vader
--%>

<script type="text/javascript" src="http://www.wlmessenger.net/api/3.7/loader.js">
</script>

<script type="text/javascript">
Microsoft.Live.Core.Loader.load(['messenger.ui.styles.core', 'messenger.ui']);
</script>



<portal:StyleSheetCombiner id="StyleSheetCombiner" runat="server" JQueryUIThemeName="cupertino" UseIconsForAdminLinks="false" />
<portal:IEStyleIncludes id="IEStyleIncludes1" runat="server" IncludeHtml5Script="true" />
<portal:MetaContent id="MetaContent" runat="server" />
<!--[if IE]>
<meta http-equiv="Page-Enter" content="blendTrans(Duration=0)" /><meta http-equiv="Page-Exit" content="blendTrans(Duration=0)" />
<![endif]-->
<meta name="viewport" content="width=670, initial-scale=0.45, minimum-scale=0.45"/>
<portal:Favicon id="Favicon1" runat="server" />
<portal:ScriptLoader id="ScriptLoader1" runat="server" />

</head>

<body class="pagebody"> ..........

 

        I encountered the following javascript error:

Error: Sys.UI.TemplateContext is undefined
Source File: http://js2.wlxrs.com/_D/F$Live.SiteContent.Messenger/3.70.51180/MicrosoftAjaxTemplates.js
Line: 3

Error: Sys.Observer is undefined
Source File: http://js2.wlxrs.com/_D/F$Live.SiteContent.Messenger/3.70.51180/MicrosoftAjaxTemplates.js
Line: 3

Error: Sys.Application.activateElement is not a function
Source File: http://js.wlxrs.com/_D/F$Live.SiteContent.Messenger/3.70.51180/Microsoft.Live.UI.Messenger.Tags.js
Line: 7

Here is the link integration guide ""Windows Live™ Messenger Web Toolkit"  http://dev.wlmessenger.net/

      I have been very  attempts but failed.   Please help me!

 

6/10/2010 8:58:46 AM
Gravatar
Total Posts 18439

Re: Integrate "Windows Live Messenger Web Toolkit" into mojoportal

Hi,

I don't think this part should be in the head:

<script type="text/javascript">
Microsoft.Live.Core.Loader.load(['messenger.ui.styles.core', 'messenger.ui']);
</script>

it should be in the body and probably at the bottom near the body closing tag so it does not run until the page is loaded.

Hope it helps,

Joe

6/11/2010 4:10:10 AM
Gravatar
Total Posts 9

Re: Integrate "Windows Live Messenger Web Toolkit" into mojoportal

Thank you so much.

I am deploying the project of live portal for microsoft viet nam that relate to education of vietnam use live services of microsoft as outlook live, alert, install

messaging.

this is demo site: http://liveatedu.vn

This is link that I have intergrated "Window live Messenger Web Toolkit" into mojoportal with the help of you : http://liveatedu.vn/messenger.aspx

 

I have performed the document guide of deploy "Window Live Messenger Web Tookkit".

I have deployed "Sample code" that downloaded from http://dev.wlmessenger.net/. I start with C#.

This is "Application ID" and "Secret Key":

Application ID: 0000000048030732

Domain(s): demo.vasep.com.vn
Return URL: http://demo.vasep.com.vn/
Secret Key: 6u6N8E4ocArcgihzAfknjslbphk6UB1o

 

When I click on button "sign in" and enter exactly "Email Address", "password". The error was showed from menu bar (<msgr:bar></msgr:bar>) of "Messenger Web Toolkit" following:

"There's a problem with this site and Messenger isn't working correctly. Please try again later."

it is a very generic error and I did not know how to handle. Whether mojoportal blocked "javascript" or a process.


Please help me!

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