<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>jurassic Discussions Rss Feed</title><link>http://jurassic.codeplex.com/Thread/List.aspx</link><description>jurassic Discussions Rss Description</description><item><title>New Post: Assertion failed</title><link>http://jurassic.codeplex.com/discussions/444468</link><description>&lt;div style="line-height: normal;"&gt;Nevermind... Seems to only do it in debug mode.&lt;br /&gt;
&lt;/div&gt;</description><author>oobenoob</author><pubDate>Tue, 21 May 2013 20:01:55 GMT</pubDate><guid isPermaLink="false">New Post: Assertion failed 20130521080155P</guid></item><item><title>New Post: Assertion failed</title><link>http://jurassic.codeplex.com/discussions/444468</link><description>&lt;div style="line-height: normal;"&gt;If I try the following...&lt;br /&gt;
&lt;br /&gt;
try { js.Evaluate(&amp;quot;sdF:[(L)&amp;quot;); }&lt;br /&gt;
catch (JavaScriptException e) { }&lt;br /&gt;
catch { }&lt;br /&gt;
&lt;br /&gt;
Rather than the catch blocks detecting the rubbish script being evaluated, an &amp;quot;Assertion Failed&amp;quot; dialog appears, asking me to ignore/retry/abort.&lt;br /&gt;
&lt;/div&gt;</description><author>oobenoob</author><pubDate>Tue, 21 May 2013 18:31:08 GMT</pubDate><guid isPermaLink="false">New Post: Assertion failed 20130521063108P</guid></item><item><title>New Post: variable declaration- problem with own datattype</title><link>https://jurassic.codeplex.com/discussions/444391</link><description>&lt;div style="line-height: normal;"&gt;hello,&lt;br /&gt;
i have this classes: &lt;br /&gt;
&lt;pre&gt;&lt;code&gt;public class SessionConstructor : ClrFunction
    {

        public SessionConstructor(ScriptEngine engine, string path) : base(engine.Function.InstancePrototype, &amp;quot;Session&amp;quot;, new SessionInstance(engine.Object.InstancePrototype, path))
        {
        }

        [JSConstructorFunction()]
        public SessionInstance Construct(string path)
        {
            return new SessionInstance(this.InstancePrototype, path);
        }
    }

    public class SessionInstance : ObjectInstance
    {

        private Dictionary&amp;lt;string, object&amp;gt; _items = new Dictionary&amp;lt;string, object&amp;gt;();

        private string path;
        public SessionInstance(ObjectInstance prototype, string path) : base(prototype)
        {
            this.path = path;
            if (System.IO.File.Exists(path + &amp;quot;\\sessions&amp;quot;)) {
                load();
            }
            this.PopulateFunctions();
        }

        [JSFunction(Name = &amp;quot;Add&amp;quot;)]
        public void Add(string k, string v)
        {
            if (_items.ContainsKey(k)) {
                _items[k] = v;
            } else {
                _items.Add(k, v);
            }
            Save();
        }

        [JSFunction(Name = &amp;quot;Get&amp;quot;)]
        public string Get(string k)
        {
            if (_items.ContainsKey(k)) {
                return _items[k];
            }
            return &amp;quot;&amp;quot;;
        }

        private void Save()
        {
            StringBuilder c = new StringBuilder();

            foreach (object l_loopVariable in _items) {
                l = l_loopVariable;
                c.AppendLine(l.Key + &amp;quot;=&amp;quot; + l.Value.ToString);
            }

            System.IO.File.WriteAllText(path + &amp;quot;\\sessions&amp;quot;, c.ToString());
        }

        private void load()
        {
            _items.Clear();

            foreach (object l_loopVariable in System.IO.File.ReadAllLines(path + &amp;quot;\\sessions&amp;quot;)) {
                l = l_loopVariable;
                string k = l.Split(&amp;quot;=&amp;quot;)(0);
                string v = l.Split(&amp;quot;=&amp;quot;)(1);

                _items.Add(k, v);
            }

        }

        [JSFunction(Name = &amp;quot;Destroy&amp;quot;)]
        public void Destroy()
        {
            System.IO.File.Delete(path + &amp;quot;\\sessions&amp;quot;);
            _items.Clear();
        }

        [JSFunction(Name = &amp;quot;Unset&amp;quot;)]
        public void Unset(string k)
        {
            _items.Remove(k);
            Save();
        }

    }&lt;/code&gt;&lt;/pre&gt;

and i will use this in javascript-code: &lt;br /&gt;
&lt;pre&gt;&lt;code&gt;var session = new Session(AddinPath);
        
        session.Add(&amp;quot;d&amp;quot;,now);&lt;/code&gt;&lt;/pre&gt;

but this make nothing.&lt;br /&gt;
please help me&lt;br /&gt;
&lt;/div&gt;</description><author>furesoft</author><pubDate>Tue, 21 May 2013 09:53:38 GMT</pubDate><guid isPermaLink="false">New Post: variable declaration- problem with own datattype 20130521095338A</guid></item><item><title>New Post: Date parsing - doesn't like millsecond portion</title><link>https://jurassic.codeplex.com/discussions/443661</link><description>&lt;div style="line-height: normal;"&gt;The example I provided does parse to a local time -- in Jurassic -- but it turns out this is a standard violation; ECMAScript 5.1 says that a missing time-zone should be interpreted as UTC.  There is actually no standards-compliant way of parsing a local date &amp;amp; time, without explicitly specifying the time-zone (e.g. &amp;quot;2013-01-01T13:59:05.123+13:00&amp;quot;).  In my defence, IE 10 and Firefox 21 both get this wrong (presumably because the local time-zone defaulting behaviour is more useful).  Also, the ECMAScript standard conflicts with ISO 8601 which says that the absence of a time-zone should be interpreted as the local time-zone.  Standards are great, huh?&lt;br /&gt;
&lt;/div&gt;</description><author>paulbartrum</author><pubDate>Thu, 16 May 2013 00:18:19 GMT</pubDate><guid isPermaLink="false">New Post: Date parsing - doesn't like millsecond portion 20130516121819A</guid></item><item><title>New Post: Date parsing - doesn't like millsecond portion</title><link>https://jurassic.codeplex.com/discussions/443661</link><description>&lt;div style="line-height: normal;"&gt;Thanks. I wound up implementing the millisecond parsing for unstructured dates in our Jurassic build (in DateParser). The problem is I can't use ECMA string because they parse to UTC, and in our app we use relative time strings based the current user time zone among other things.&lt;br /&gt;
&lt;/div&gt;</description><author>joepotato</author><pubDate>Wed, 15 May 2013 16:59:13 GMT</pubDate><guid isPermaLink="false">New Post: Date parsing - doesn't like millsecond portion 20130515045913P</guid></item><item><title>New Post: Debugging API that the host app can control?</title><link>http://jurassic.codeplex.com/discussions/267367</link><description>&lt;div style="line-height: normal;"&gt;If I have to support raising an event after each line of code execution in Java Script.&lt;br /&gt;
&lt;br /&gt;
I have found this method &amp;quot;InlineSetPropertyValue&amp;quot; in class Jurassic.Library.ObjectInstance for simple line of execution but what will be the method for functions ?&lt;br /&gt;
&lt;br /&gt;
SampleJs.js&lt;br /&gt;
var count = 1; // worked //Jurassic.Library.ObjectInstance  InlineSetPropertyValue&lt;br /&gt;
myFunction();&lt;br /&gt;
function myFunction()&lt;br /&gt;
{&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;var t1 = &amp;quot;inside my function&amp;quot;; //dont work  &lt;/code&gt;&lt;/pre&gt;

}&lt;br /&gt;
var t2 = &amp;quot;end&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
Thanks in advance.&lt;br /&gt;
&lt;/div&gt;</description><author>Waqaar</author><pubDate>Wed, 15 May 2013 09:45:34 GMT</pubDate><guid isPermaLink="false">New Post: Debugging API that the host app can control? 20130515094534A</guid></item><item><title>New Post: Date parsing - doesn't like millsecond portion</title><link>https://jurassic.codeplex.com/discussions/443661</link><description>&lt;div style="line-height: normal;"&gt;Correct, Jurassic doesn't support this type of date string (unstructured, with milliseconds).  A quick check reveals that &lt;strong&gt;Chrome&lt;/strong&gt; supports it in their javascript implementation, but &lt;strong&gt;Firefox&lt;/strong&gt; and &lt;strong&gt;IE&lt;/strong&gt; don't.&lt;br /&gt;
&lt;br /&gt;
This is the equivalent ECMAScript standard date string, which works in all browsers:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;new Date(&amp;quot;2013-01-01T13:59:05.123&amp;quot;)&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;</description><author>paulbartrum</author><pubDate>Wed, 15 May 2013 02:47:05 GMT</pubDate><guid isPermaLink="false">New Post: Date parsing - doesn't like millsecond portion 20130515024705A</guid></item><item><title>New Post: Date parsing - doesn't like millsecond portion</title><link>http://jurassic.codeplex.com/discussions/443661</link><description>&lt;div style="line-height: normal;"&gt;I am trying to parse a date string into a Date object.&lt;br /&gt;
&lt;br /&gt;
This works: 1/1/2013 13:59:05&lt;br /&gt;
This doesn't: 1/1/2013 13:59:05.123&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;var d = new Date(&amp;quot;1/1/2013 13:59:05.123&amp;quot;);
var invalid = (d == null || isNaN(d.getHours()));
// invalid == true&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;</description><author>joepotato</author><pubDate>Wed, 15 May 2013 00:46:46 GMT</pubDate><guid isPermaLink="false">New Post: Date parsing - doesn't like millsecond portion 20130515124646A</guid></item><item><title>New Post: Debugging in Jurassic</title><link>https://jurassic.codeplex.com/discussions/443431</link><description>&lt;div style="line-height: normal;"&gt;I think what is needed is a visual studio extension called a &amp;quot;expression evaluator&amp;quot;.  See here for sample code: &lt;a href="http://msdn.microsoft.com/en-us/library/8fwk67y3(v=vs.90).aspx" rel="nofollow"&gt;http://msdn.microsoft.com/en-us/library/8fwk67y3(v=vs.90).aspx&lt;/a&gt;  Fair warning though: implementing a expression evaluator is not for the faint of heart; it requires significant COM experience for one.&lt;br /&gt;
&lt;/div&gt;</description><author>paulbartrum</author><pubDate>Mon, 13 May 2013 23:59:16 GMT</pubDate><guid isPermaLink="false">New Post: Debugging in Jurassic 20130513115916P</guid></item><item><title>New Post: WebSocket</title><link>https://jurassic.codeplex.com/discussions/443523</link><description>&lt;div style="line-height: normal;"&gt;Sorry, no, WebSockets are not part of javascript and therefore not part of Jurassic either.&lt;br /&gt;
&lt;/div&gt;</description><author>paulbartrum</author><pubDate>Mon, 13 May 2013 23:51:23 GMT</pubDate><guid isPermaLink="false">New Post: WebSocket 20130513115123P</guid></item><item><title>New Post: WebSocket</title><link>https://jurassic.codeplex.com/discussions/443523</link><description>&lt;div style="line-height: normal;"&gt;I was wondering, does Jurassic handle\compile WebSocket calls and connections?&lt;br /&gt;
&lt;/div&gt;</description><author>ischyrus</author><pubDate>Mon, 13 May 2013 19:49:20 GMT</pubDate><guid isPermaLink="false">New Post: WebSocket 20130513074920P</guid></item><item><title>New Post: Debugging in Jurassic</title><link>https://jurassic.codeplex.com/discussions/443431</link><description>&lt;div style="line-height: normal;"&gt;It is mentioned that Locals window and Watch window is not supported in Jurassic. How can I implement this ? I need to have full debugging support in Jurassic. Please guide me in this.&lt;br /&gt;
Thanks in advance,&lt;br /&gt;
&lt;/div&gt;</description><author>Waqaar</author><pubDate>Mon, 13 May 2013 07:17:53 GMT</pubDate><guid isPermaLink="false">New Post: Debugging in Jurassic 20130513071753A</guid></item><item><title>New Post: RaptorJS</title><link>https://jurassic.codeplex.com/discussions/288812</link><description>&lt;div style="line-height: normal;"&gt;Cool,&lt;br /&gt;
So, how it correspond to RaptorJS from ebay?&lt;br /&gt;
&lt;a href="http://raptorjs.org/" rel="nofollow"&gt;http://raptorjs.org/&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;</description><author>vit21</author><pubDate>Thu, 09 May 2013 22:38:16 GMT</pubDate><guid isPermaLink="false">New Post: RaptorJS 20130509103816P</guid></item><item><title>New Post: doesn't Work on windows phone 7.1</title><link>https://jurassic.codeplex.com/discussions/442651</link><description>&lt;div style="line-height: normal;"&gt;thanks for the answer :)&lt;br /&gt;
&lt;br /&gt;
I've installed on vs2012 Express (windows 8) &lt;br /&gt;
installed jurassic via nuget&lt;br /&gt;
&lt;br /&gt;
here's my last test:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;namespace TestJavascript
{
    public partial class MainPage : PhoneApplicationPage
    {
        // Constructor
        public MainPage()
        {
            InitializeComponent();
            var engine = new Jurassic.ScriptEngine();
            engine.Execute(&amp;quot;var k = 1;&amp;quot;);
        }
    }
}&lt;/code&gt;&lt;/pre&gt;

I get this exeception:&lt;br /&gt;
&lt;br /&gt;
on Execute : &lt;strong&gt;&amp;quot;Could not load type 'System.Runtime.Serialization.ISerializable' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.&amp;quot;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
thanks again &lt;br /&gt;
&lt;/div&gt;</description><author>mydiscogr</author><pubDate>Tue, 07 May 2013 16:40:32 GMT</pubDate><guid isPermaLink="false">New Post: doesn't Work on windows phone 7.1 20130507044032P</guid></item><item><title>New Post: doesn't Work on windows phone 7.1</title><link>https://jurassic.codeplex.com/discussions/442651</link><description>&lt;div style="line-height: normal;"&gt;What exception are you getting?  Have you seen this page?  &lt;a href="https://jurassic.codeplex.com/wikipage?title=Using%20the%20console%20API&amp;amp;referringTitle=Documentation" rel="nofollow"&gt;https://jurassic.codeplex.com/wikipage?title=Using%20the%20console%20API&amp;referringTitle=Documentation&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;</description><author>paulbartrum</author><pubDate>Mon, 06 May 2013 22:01:19 GMT</pubDate><guid isPermaLink="false">New Post: doesn't Work on windows phone 7.1 20130506100119P</guid></item><item><title>New Post: doesn't Work on windows phone 7.1</title><link>https://jurassic.codeplex.com/discussions/442651</link><description>&lt;div style="line-height: normal;"&gt;Hi I've installed Jurassic on app via nuget and I loaded simple example:&lt;br /&gt;
&lt;br /&gt;
var engine = new Jurassic.ScriptEngine();&lt;br /&gt;
engine.Execute(&amp;quot;console.log('testing')&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
just like Jurassic Docs, but doesn't works at all, Exception on deserialize, I've include some libs as reference like System.Serialization ecc.&lt;br /&gt;
&lt;br /&gt;
I've used VS2012 Express edition, Nuget (last one), and a new 7.1 project...&lt;br /&gt;
&lt;br /&gt;
please if U can help me :) &lt;br /&gt;
&lt;/div&gt;</description><author>mydiscogr</author><pubDate>Mon, 06 May 2013 08:58:25 GMT</pubDate><guid isPermaLink="false">New Post: doesn't Work on windows phone 7.1 20130506085825A</guid></item><item><title>New Post: Unexpected line terminator in string literal.</title><link>http://jurassic.codeplex.com/discussions/441992</link><description>&lt;div style="line-height: normal;"&gt;Exactly what I was looking for. Thanks!&lt;br /&gt;
&lt;/div&gt;</description><author>ThomasArdal</author><pubDate>Wed, 01 May 2013 18:19:08 GMT</pubDate><guid isPermaLink="false">New Post: Unexpected line terminator in string literal. 20130501061908P</guid></item><item><title>New Post: Unexpected line terminator in string literal.</title><link>http://jurassic.codeplex.com/discussions/441992</link><description>&lt;div style="line-height: normal;"&gt;Exactly what I was looking for. Thanks!&lt;br /&gt;
&lt;/div&gt;</description><author>ThomasArdal</author><pubDate>Wed, 01 May 2013 18:19:08 GMT</pubDate><guid isPermaLink="false">New Post: Unexpected line terminator in string literal. 20130501061908P</guid></item><item><title>New Post: Unexpected line terminator in string literal.</title><link>http://jurassic.codeplex.com/discussions/441992</link><description>&lt;div style="line-height: normal;"&gt;String literals cannot contain newlines in javascript.  The easiest way to do what you want is this:&lt;br /&gt;
&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;var&lt;/span&gt; script = &lt;span style="color:#A31515;"&gt;@&amp;quot;
    function Hello() {
    }&amp;quot;&lt;/span&gt;;
&lt;span style="color:Blue;"&gt;var&lt;/span&gt; engine = &lt;span style="color:Blue;"&gt;new&lt;/span&gt; ScriptEngine();
engine.SetGlobalValue(&lt;span style="color:#A31515;"&gt;&amp;quot;script&amp;quot;&lt;/span&gt;, script);
&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;</description><author>paulbartrum</author><pubDate>Tue, 30 Apr 2013 00:15:55 GMT</pubDate><guid isPermaLink="false">New Post: Unexpected line terminator in string literal. 20130430121555A</guid></item><item><title>New Post: Where's the silverlight console gone from this site?</title><link>http://jurassic.codeplex.com/discussions/442015</link><description>&lt;div style="line-height: normal;"&gt;I think CodePlex is migrating to use HTTPS, which meant the embedded silverlight control wouldn't load.  I've changed the page so it should work for both HTTP and HTTPS now.&lt;br /&gt;
&lt;/div&gt;</description><author>paulbartrum</author><pubDate>Tue, 30 Apr 2013 00:11:07 GMT</pubDate><guid isPermaLink="false">New Post: Where's the silverlight console gone from this site? 20130430121107A</guid></item></channel></rss>