title: Titanium JavaScript: How to pass data/values from one window to another window
body: <p>In objective c we can pass data between two classes very easily by nextClassname.recievedVariable = passedVariable;</p>
  
  <p>i tried same with titanium, but failed</p>
  
  <p>I tried as follows  </p>
  
  <p>in Second Class</p>
  
  <pre><code>$.table.addEventListener('click', function(e) {
                           var selected = e.row;
  
                           alert(e.row.title);
  
                           var TodayStatus = Titanium.UI.createWindow({ url:'TodayStatus.js' });
  
                           TodayStatus.seletedProj = e.row.title;
                           // var TodayStatus = new Alloy.createController("TodayStatus");
                              TodayStatus.getView().open();
  
  
                           });
  </code></pre>
  
  <p>in the first Calss whic we have to recieve string from another class</p>
  
  <pre><code>var win = Ti.UI.currentWindow;
  Ti.API.info(win.seletedProj);
  </code></pre>
  
  <p>But causes errors like</p>
  
  <pre><code>  message = "'undefined' is not an object (evaluating 'win.seletedProj')";
  [ERROR] :      name = TypeError;
  </code></pre>