You are here:   Blog
Register   |  Login

 

Nov 22

Written by: Michael Washington
11/22/2012 2:30 PM  RssIcon

image

 

This is outdated.

Now See:

Getting TypeScript to Work with a LightSwitch HTML Project (kind of)

9 comment(s) so far...


Gravatar

Re: Creating JavaScript Using TypeScript in Visual Studio LightSwitch

As always, a very good article to get a feeling how and where to start. Thanks a lot!
In general, your blog helped my very much in the last year. Currently I'm implementing the fifth productive Lightswitch application. :-)

Greetings from Germany, Markus

By GelbeEnte on   11/23/2012 4:49 AM
Gravatar

Re: Creating JavaScript Using TypeScript in Visual Studio LightSwitch

Great article Michael.
I definitely have to start walking through the various Jquery courses on Pluralsight....
One day, I hope, ... we'll get the experience in the browser as we have now in the silverlight sandbox.
Thanks for sharing.

By paul on   11/23/2012 7:40 AM
Gravatar

Re: Creating JavaScript Using TypeScript in Visual Studio LightSwitch

Hi Michael,
Great introduction to data handling with JS; thanks a lot! We have to get familiar with this...
One question to the article/sample: How can I extend it in a way, so that the content of the list item is updated when editing the data in a dialog and closing the dialog? At the moment, I have to refresh the entire screen to get the data updated. If a List shows a single field / Summary property, the list is updated after closing the dialog, as expected. Some suggestion would be great!
Thanks a lot and best regards
Robert

By robert on   12/5/2012 11:25 PM
Gravatar

Re: Creating JavaScript Using TypeScript in Visual Studio LightSwitch

@robert - Look for an article I will post next week on Databinding in LightSwitch. Databinding will do what you need.

By Michael Washington on   12/5/2012 11:27 PM
Gravatar

Re: Creating JavaScript Using TypeScript in Visual Studio LightSwitch

Interesting, thanks - so you used TypeScript to create a class which you consumed in your BrowsePeople.js JavaScript file. Couldn't you have also inserted a BrowsePeople.ts Typescript file, from which the corresponding .js file would have been generated? I understand that the example required minimal coding and that you would have needed to bring in the JQuery TypeScript definition file, but...? I guess what I'm asking is why not keep the entire source in TypeScript?

BTW: Beth Massi pointed me to your entry following her excellent LightSwitch demonstration.

By Steve Levy on   12/12/2012 10:40 AM
Gravatar

Re: Creating JavaScript Using TypeScript in Visual Studio LightSwitch

Any advice on getting breakpoints to work in a Visual Studio LightSwitch / TypeScript application? I'm using the latest 8.1.1 and Web Essentials; the breakpoints are erratic, with a warning that symbols cannot be loaded.

By Steve Levy on   1/13/2013 9:51 AM
Gravatar

Re: Creating JavaScript Using TypeScript in Visual Studio LightSwitch

@Steve Levy - Yes the break points can be a bit erratic but I use the latest IE web browser and do a lot of debugging and it works for me 95% of the time. When it doesn't I just try again.

By Michael Washington on   1/13/2013 9:52 AM
Gravatar

Re: Creating JavaScript Using TypeScript in Visual Studio LightSwitch

The marvel of XAML in TypeScript !!
Search the Web for
"M&P H5J is Silverlight in HTML5"

By Javier on   6/5/2013 12:27 PM
Gravatar

Re: Creating JavaScript Using TypeScript in Visual Studio LightSwitch

Just FYI: This procedure does not work with Update 2 of VS2013 (which is supposed to be now 'integrated')... and I wish MS would be as helpful as you in showing us how to use TypeScript with LightSwitch.

By dan houck on   5/19/2014 4:13 AM

Your name:
Gravatar Preview
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Title:
Comment:
Security Code
CAPTCHA image
Enter the code shown above in the box below
Add Comment   Cancel 
Microsoft Visual Studio is a registered trademark of Microsoft Corporation / LightSwitch is a registered trademark of Microsoft Corporation