Adding file to existing project


  • After created a blank application, I want to add another file/template into my project. I did so by right click the project->add item->detailPage. The IDE then generated all the necessary boiler codes inside my .js, css and html files. However, the detailPage.js script doesn't seem to work/load when I try to link to the detailPage.html from my default.html. Am I missing something here because the detailPage.html page works just fine? I checked the javascript path, and there is nothing wrong with it.



    Thursday, September 15, 2011 10:12 PM

All replies

  • Make sure you're properly referencing the full path based on the directory structure of where your files are and where the files you're trying to include are.
    Friday, September 16, 2011 10:05 PM
  • Yup, triple checked that. I even went as far as putting them all in the same directory and modify the manifest but no luck either.
    Friday, September 16, 2011 10:46 PM
  • How are you linking to the html file? Also, if you put a break point on the WinJS.Namespace.define() line at the end of the .js file, does it get hit?
    Saturday, September 17, 2011 1:08 AM
  • Did you get this resolved?
    Jeff Sanders (MSFT)
    Friday, October 14, 2011 12:53 PM