Calling from Javascript

Jun 27, 2012 at 1:11 PM

HI,

 

I am trying to use your code in a WinRT javascript project. I'm not sure how to do it!

 

� � var storageHelper = new NotificationsExtensions.ObjectStorageHelper(NotificationsExtensions.ObjectStorageHelper.StorageType.Roaming);

Throws Throws a '0x800a01bd - JavaScript runtime error: Object doesn't support this action'.

I set the name spaces etc as 

namespace NotificationsExtensions.ObjectStorageHelper
{
    public enum StorageType
    {
        Roaming, Local, Temporary
    }

    internal sealed class ObjectStorageHelper<T>
    {

etc. the StorageType enum is exposed from the JS code but no other methods are? Any Ideas? I can't seem to make the class public as it complains about the generic type.

Coordinator
Jul 23, 2012 at 9:26 AM

Hi Swellenator,

I wish I had a good answer for you but unfortunately I haven't done work on any of the WinJS stuff. I'm not a JS guy I'm afraid (actually I'm not really a .Net guy either but whatever ... :) )

If you get an answer I'd appreciate you posting some guidance up here in case anyone else experiences the same.,

 

regards

Jamie