Ionic is not recognized as internal or external command

Ionic framework rocks, I am new to it and it’s fun. I am working with VS 2015 community version to make my First mobile App. I started with Ionic 2 beta version but as Ionic team are releasing new version I am following them. They changed project structure in RC version of ionic 2 framework. […]

Ionic 2 Cr + angular 2 + type script VS Code to Visual studio 2015 Apache cordova

Recently I started to work on my app. Being use to of Visual studio 2015 I found Ionic 2 beta templates. Downloaded, installed, Ran project. It ran like a charm. These templates  installed beta.10 version of ionic. In RC version of Ionic project structure has been changed massively. I tried to update my project but […]

angular js directive for decimal number

Here you find a directive for angular js. input will be a valid decimal number. It will prompt your for spaces too.   app.directive(’validNumberdecimal’, function () { return { require: ‘ngModel’, link: function (scope, el, attrs, ngModel) { el.bind(’change’, function () { scope.$apply(function () { ngModel.$setViewValue(el.val()); ngModel.$render();   var number = el[0].value;   var re […]

Porting JQuery RC4 encryption to c# .Net 3.5

Recently I had a task that involved unencrypting an encrypted query string that had been encrypted on the front end using JQuery’s RC4 encryption located in file: JQuery.rc4.js. I needed to un-encrypt the encrypted string in the c# code-behind: Below is a line for line port of the JQuery.rc4.js. library functions I needed. I made […]

What to use with Jquery for Div html , innerHtml Or text

What to use with Jquery for Div html , innerHtml Or text? I was working on project which uses Google maps. We allow users to create polygon on the Google map and when user starts drawing polygon we were to show tool tips, you can read how we are showing tooltips using Jquery on teh […]

Highlight dot net form text box onfocus using jquery

Highlight asp.net text box when it gets focus. When your cursor will focus on text box it will be surrounded by a red rectangle when cursor leaves text it becomes normal. If coursor goes to  button or dropdown list they dont get any style the behave as normal. This code is ony tested in IE7. […]

Why onfocusout event is not firing in firefox

Why onfocusout event is not firing in firefox I was using onfcousout event of text box to fire some javascript those were firing in IE but were not firing in Firefox. Then  I found that onblur is firing on both Internet Explorer. So do not use onfocusout event instead use onblur. Tested on I.E 7.0 […]

Json, Jquery, $.ajax(), asp.net and c# to get ajaxed data table rows passing multiple parameters

Json, Jquery, $.ajax(), asp.net and c# to get ajaxed data table rows passing multiple parameters I got a request from my client that before creating user they want to see the list of existing users with the like first name and last name. I didn’t want to use asp.net ajax update panel and full post […]

Printing contents of a div using javascript

Guys this is a nice piece of code which has been tested in IE7 to print the contents of a div. I got this code from http://www.webdeveloper.com/forum/showthread.php?t=152798 While printing keep in mind that on the printed copy you will lose all css styles. <script type="text/javascript"><!– function ClickHereToPrint(){ try{ var oIframe = document.getElementById(’ifrmPrint’); var oContent = […]

Getting ASP.NET Radiobutton list Text using javascript not JQuery

I came accross a problem while I was trying to Get ASP.NET Radiobutton list Text using JQuery. I used the JQuery method $(‘#<%=RadioButtonList1.ClientID%>’).val(); but it was not returning selected value though same works for asp.net Dropdown list then I started searching over the internet but didn’t find any solution. After searching for an hour I […]