[Building Sakai] Portal Chat

Adrian Fish a.fish at lancaster.ac.uk
Fri Oct 14 02:04:08 PDT 2011


Hi All,

The reason we use storage is to maintain the chat state between page 
reloads. Every time you click a tool or a site in Sakai the entire UI 
refreshes and the chat UI has to rebuild itself. I've gone to not 
inconsiderable lengths to get rid of flicker and that's where local 
storage comes in. The alternative to SessionStorage is yucky cookies, 
which we can do but it is a bit of a retrograde step. There are a couple 
of functions in the JS which handle the writing and reading to storage 
so some cookie code would have to be written in there if SessionStorage 
is not available.

Our computer services here has forced everybody onto IE9, so no IE7 use 
here :)

How are your cookie cutting skills Nguni? :)

Anything you do in the 2.8 chat code will be easily transferable to the 
neoportal code for 2.9 and will not be wasted. I use our 2.8 chat stuff 
as a kind of testbed for neoportal stuff.

Cheers,
Adrian.

On 13/10/2011 22:44, Hedrick Charles wrote:
> I'm having a private discussion with both Rutgers people and some developers about IE 7. I think it's time to desupport IE 6, but I think IE 7 will probably need to stay for another release. We're just now getting rid of some software that requires IE 7. 20% of our users used IE 7 at some point since July, although only 4% of our sessions use it.
>
> On Oct 13, 2011, at 9:45:47 AM, Nkululeko Phakela wrote:
>
>> Hi Adrian,
>>
>> I did that and it's working perfectly now on IE 8, but on IE 7 it is
>> giving an error. Session Storage is undefined. Is there a fix for this,
>> or the chat was built for higher versions of IE.
>>
>> Regards,
>> Nguni
>>
>> On Thu, 2011-10-13 at 13:57 +0100, Adrian Fish wrote:
>>> Hi Nguni,
>>>
>>> You need to add json2.js (attached) to your webapps/library/js
>>> directory. You also need to add this line:
>>>
>>> <script type="text/javascript" language="JavaScript"
>>> src="${pageScriptPath}json2.js"></script>
>>>
>>> ... under the trimpath import in
>>> /webapps/portal-render/vm/defaultskin/includeStandardHead.vm
>>>
>>> JSON is included in Safari and Firefox. I forgot about IE ...
>>>
>>> Cheers,
>>> Adrian.
>>>
>>> On 13/10/2011 13:42, Nkululeko Phakela wrote:
>>>> Hi Adrian,
>>>>
>>>> I'm using an https protocol, and on IE 8, either windows 7 or xp, the
>>>> portal chat is throwing an error that JSON is not defined.
>>>>
>>>> Specifically: chat.js, line: 321. 'JSON' is undefined. Would you know
>>>> why this is? Have you run into this problem before? All the other
>>>> browsers are behaving perfectly and the chat tool is working very well.
>>>>
>>>> Cheers,
>>>> Nguni
>>>>
>> -- 
>> Nkululeko Phakela
>> Software Developer
>> 011 717 7167
>> eLearning Support and Innovation (eLSI)
>> Witwatersrand University
>> Braamfontein, Johannesburg
>> <html><p><font face = "verdana" size = "0.8" color = "navy">This communication is intended for the addressee only. It is confidential. If you have received this communication in error, please notify us immediately and destroy the original message. You may not copy or disseminate this communication without the permission of the University. Only authorized signatories are competent to enter into agreements on behalf of the University and recipients are thus advised that the content of this message may not be legally binding on the University and may contain the personal views and opinions of the author, which are not necessarily the views and opinions of The University of the Witwatersrand, Johannesburg. All agreements between the University and outsiders are subject to South African Law unless the University agrees in writing to the contrary.</font></p></html>
>>
>> _______________________________________________
>> sakai-dev mailing list
>> sakai-dev at collab.sakaiproject.org
>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>
>> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"

-- 
==================================
Adrian Fish
Software Engineer
B66 Management School
Lancaster University
Lancaster
LA1 4YW

http://www.sakaiproject.org
http://confluence.sakaiproject.org/display/YAFT/Yaft
http://confluence.sakaiproject.org/display/CLOG/Home
http://confluence.sakaiproject.org/display/BBB/Home



More information about the sakai-dev mailing list