title: window.external.notify stops working
body: <p><strong>Update 1:</strong></p>
  
  <p><strong>I also checked MSDN for the window.external.notify() method, on the MSDN, the method starts with “N" in capital(window.external.Notify()), but at many other places on the Internet, I also saw many examples using "n" in lower case(window.external.notify()). This really confuses me.</strong></p>
  
  <hr>
  
  <p>It's really odd.
  The first time when I used the window.external.notify method, it worked perfectly.</p>
  
  <p>Went to a trip overseas about 2 weeks, got back to home today and couldn't find my latest code which had the notidy method in my Javascript code, but the code for Browser_ScriptNotify method in my C# code is still there.
  Searched for 1 hour and found nothing(where did it go?)</p>
  
  <p>Now I coded the Javascript part again and here is the code:</p>
  
  <p>Btw, I am useing jQuery + jQuery Mobile to take care the layout and UI.
  The setColor method is called in</p>
  
  <blockquote>
    <p>$(document).on("pagecreate", "[data-role='page'].weekday", function
    () {
      setColor(this);
       });</p>
  </blockquote>
  
  <p>JavaScript:</p>
  
  <pre><code>var myNotifier = function (msg) {
      if (window.external) 
          {
              window.external.notify('Hi Mate');
          }
  
  };
  function setColor(activePage){
      $(activePage).find('.rightCol').each(function (index, element) {
          var innerRows = $(element).children("div").length;
  
          if ($(element).hasClass('orange'))
          {
              $(element).children("div").addClass('orange');
          }
  
          var timeCol = $(element).prev();
          var time = $(timeCol).text().trim();
          var innerRowsDivs = $(element).children("div");
  
          innerRowsDivs.each(function (index, rowElement) {
  
              var innerRowContent = $(rowElement).text().trim();
  
              if (innerRowContent === "") { }
              else
              {
                  var room = $(rowElement).find("div").text().trim();
                  var trainingClass = $(rowElement).find("strong").text().trim();
                  var duration = innerRowContent.substring(innerRowContent.length - 5, innerRowContent.length - 3).trim();
                  var message = String('myMsg:open:calender:' + time + '|' + room + '|' + trainingClass + '|' + duration);
  
                  $(rowElement).click(myNotifier(message));
              }
          });
      });
  }
  </code></pre>
  
  <p>C# code:</p>
  
  <pre><code>   void Browser_ScriptNotify(object sender, NotifyEventArgs e)
          {
              MessageBox.Show(e.Value);
              if (e.Value.Contains("myMsg"))
              {
                  if (e.Value.Contains("share"))
                  {
                      ShareLinkTask shareMyWebsite = new ShareLinkTask();
                      shareMyWebsite.Title = "WinTech Company";
                      shareMyWebsite.LinkUri = new Uri("http://wintech.azurewebsites.net/", UriKind.Absolute);
                      shareMyWebsite.Message = "Check this awesome website, I'm sure you will find something interesting!";
  
                      shareMyWebsite.Show();
                  }
  
                  if (e.Value.Contains("open"))
                  {
                      if (e.Value.Contains("website"))
                      {
                          WebBrowserTask myWebsite = new WebBrowserTask();
                          myWebsite.Uri = new Uri("http://wintech.azurewebsites.net/", UriKind.Absolute);
                          myWebsite.Show();
                      }
                      else
                          if (e.Value.Contains("facebook"))
                          {
                              WebBrowserTask myWebsite = new WebBrowserTask();
                              myWebsite.Uri = new Uri("https://www.facebook.com/franva008", UriKind.Absolute);
                              myWebsite.Show();
                          }
                          else
                              // myMsg:open:calender:&lt;Message&gt;
                              if (e.Value.Contains("calender"))
                              {
                                  //var message = e.Value.Split(':')[3];
                                  //var time = message.Split('|')[0];
                                  //var trainingClassAndDuration = message.Split('|')[1];
                                  //string[] content = trainingClassAndDuration.Split(" ".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
                                  //string durationString = content[content.Length - 1];
                                  //int takeCount = content.Length - 2;
                                  //string trainingClass = string.Join(" ", content.Skip(1).Take(takeCount));
                                  //string room = content[0];
  
                                  //int duration = Convert.ToInt32(durationString.Substring(0, 2));
  
                                  var message = e.Value.Split(':')[3];
                                  var time = message.Split('|')[0];
                                  var room = message.Split('|')[1];
                                  var trainingClass = message.Split('|')[2];
                                  var duration = Convert.ToInt32(message.Split('|')[3]);
  
                                  DateTime startTime = ParseTime(time);
                                  DateTime endTime = startTime.AddMinutes(duration);
  
                                  this.CreateAppointment(startTime, endTime, room, trainingClass);
                              }
  
                  }
  
  
              }
  
  
          }
  </code></pre>
  
  <p>IsScriptEnabled has been set in the xaml
  and the Browser_ScriptNotify event has been hooked up in my code as well.</p>
  
  <p>I keep getting an error about jquery:</p>
  
  <blockquote>
    <p>Uncaught TypeError: Object 50 has no method 'apply'</p>
  </blockquote>
  
  <p>and an error about notify</p>
  
  <blockquote>
    <p>Uncaught TypeError: Object # has no method 'notify'</p>
  </blockquote>
  
  <p>Please  help, these errors have stopped me more than 4 hours, I have read through many similar questions and none of them soloved my problem.</p>