jquery - OCS presence in SharePoint AJAX-based web part -


I am currently implementing AJAX-based Web Parts that show search results. And contrary to each name, I am representing the OCS presence index. This indicator works well in IE6 but I can not do it for working in IE 7/8

Actually the problem in IE 7/8 is that the OCS is provided but when you do not show any mouse over it, if you try to scroll down the page, then the mouse is called the OCS icon By clicking on the bottom of the page you will see the OSCS action menu instead of the opposite of the username.

My AJAX-based web part uses the jQuery Post method to request the server and receives Jason, which is render in the device.

My HTML looks for the user name as

  & lt; Nobr & gt; & Lt; Period & gt; & Lt; A target = '_ blank' href = '/ viewExpert.aspx? UID = 4 '& gt; Some experts & lt; / A & gt; & Lt; Img height = '1' width = '3' border = '0' alt = '' src = '/ _ layout / image / empty. Gif' & gt; & Lt; A class = 'MS-IMNLink' onclick = 'IMNimageOpen (); Description is false;' Href = 'javascript:' & gt; & Lt; Img height = '12 'width =' 12 'border =' 0 'id =' 3 'showofflinepage =' 1 'type =' smtp 'sip ='ips@sip.com' src = '/ _ layout / portrait / blank .gif 'valign =' middle 'name =' imnmark 'alt =' no presence information 'title =' '& gt; & Lt; / A & gt; & Lt; / Span & gt; & Lt; / Nobr & gt;  

After placing it on the above HTML page, I call the following two lines:

  // must reset this value, otherwise ProcessImn () ImnCount = 0 after the next AJAX request fails; ProcessImn ();  

Any idea why it does not work in IE7 / 8?

I'm sure that the wrong presence control is caused by buggy init.js in SharePoint 2007. Init.js does not have an account for scrolling. Since you should not touch out-of-box and brake support files, you can hack your own JavaScript which sets ActiveX NameControl to appear. I can not take the credit for fixes. I got it by Googling Unfortunately, I can not remember where I read about it.

If you want to hack SharePoint 2007's init.js, you can try it:

IMNShowOOUI (inputType) in the function,

I will change lines from the following:

  oouiX = objRet.oouiX; OouiY = objRet.oouiY;  

To do the following:

  oouiX = (objRet.oouiX - document.body.parentNode.scrollLeft; oouiY = (objRet.oouiY - document Body) .parentNode.scrollTop;  

Instead of init.js, you have to have javascript that comes with MS examples to be careful that you have to implement the same fix for scrolling issue.

Good luck :)


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -