Sridhar Subramanian has a very good article on accessing wcf services from JQuery, take a
Thursday, February 17, 2011
Wednesday, February 16, 2011
Creating a timer with JQuery Timer
Just found a great plugin that allows me create a timer with jquery instead of using pure javascript.
You can download the plugin here Jquery Timer.
To use the plugin to create a timer,use the everyTime function like this,
//add timer tick function here
$('#span1').html(count);
To stop the timer, call stopTime.
download sample code Here
You can download the plugin here Jquery Timer.
To use the plugin to create a timer,use the everyTime function like this,
$('#timer').everyTime(1000,'label',function(){
//add timer tick function here
$('#span1').html(count);
});The everyTime function allows you to use a label,so you can create and stop separate timer instances.
To stop the timer, call stopTime.
$('#timer').stopTime('label');and thats it.
download sample code Here
Monday, February 7, 2011
Using Linq with SQL Server Compact Edition
Hi,
Somebody recently brought to my notice that you cant use SQl Server Ce with LINQ. on investigation i found this to be partailly true.
You cannot use the VS 2008 ORM designer with the sql server ce the way you could use it with any other sql server version. It seems the LINQ Db designer does not support the sql server ce provider( don't know why).
So whats the work around, just use the sqlmetal command line interface to create the dbml, and add that to your solution, after which you can now use the design view to carry out any further changes.
You can use the sqlmetal from your visual studio command prompt.
e.g SqlMetal.exe "e:\products.sdf" /dbml:e:\products.dbml /namespace:Common.DataLayer
Subscribe to:
Posts (Atom)