Archive

Posts Tagged ‘jQuery’

Jetbrains WebStorm IDE

January 3, 2011 Leave a comment

I bought myself a copy of this product over Christmas as I decided to learn Javascript and JQuery. I really, really like this product, esp on the Mac. It has nice completion support in html , javascript and jquery and is really configurable. It is designed for the developer / designer that wants to stay away from the visual tooling and just get into the code. This is how I wish Visual Studio was for the web , without all the funky drag and drop stuff.

I have not used the source control functions yet but will get an instance of git working with it and blog about that next.

I really recommend this product. Great work guys.

Also it is very consistent with PyCarm and Rubymine as I believe they all use the same engine so really easy to switch from platform to platfrom. Thus Thumbs Up again.

 

Blair

 

Advertisements

Javascript Arrays

May 10, 2010 Leave a comment

So here is how to arrays in Javascript. I have not gone into depth on all the array methods in this post like the last on C Sharp. I am going to check out the functions provided by JQuery in terms of providing foreach and the like.

I do like how arrays in JS are dynamic and you can add elements to the end.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>Examples 2</title>
    <script type="text/javascript">

        function addElementToArray(farray,value){ // Arrays are passed by reference
            farray[farray.length] = value;
        }

        function printLastItem(farray){
            document.writeln(farray[farray.length - 1]);
        }
        var items1 = new Array(10); // Declare array with 10 elements
        var items2 = []; // Create empty array with zero element equal to undefined

        // Add elements to the arrays and then print them to the browser
        for(i = 0; i < 10; i++){
            items1[i] = i;
            items2[i] = i;
        }

        for(j = 0; j < items1.length; j++){
            document.writeln('items1 value at position ' + j + ' is ' + items1[j] + '<br/>');
        }

        for(k = 0; k < items2.length; k++){
            document.writeln('items2 value at position ' + k + ' is ' + items1[k] + '<br/>');
        }

        addElementToArray(items1,'test1');
        printLastItem(items1);
        addElementToArray(items1,'test2');
        printLastItem(items1);
        
    </script>
</head>
<body>

</body>
</html>

Blair…

Learning… I mean Embracing Javascript

May 10, 2010 Leave a comment

Well this is a little interesting for me. Well when I first started programming with PHP back in the early 2000’s i really hated Javascript. and since Ajax had not come into play we use to do everything server side where possible. Then came Ajax which I got my first taste in 2007 with ASP.NET Ajax using update panels. Now everyone expects fairly rich UI’s and trying to do them in ASP.NET is really horrible especially when update panels run the whole page request from start to finish.

Also now my feelings towards Javascript are starting to change. I guess not opinions but ignorance is probably better. I have take the plunge and actually decided to learn Javascript. Now we have frameworks like JQuery we can complain about the DOM and the like we should embrace it as the functional programming language that it is.

I am using WebStorm from Jetbrains which has goot code completion so VS 2010 is not the only one out there that can claim this now.

Well the journey will be a long one but why I am doing this since I can hack my way through using UpdatePanels. Well I am a huge fan of ASP.NET MVC and am keen to update my skills so thus the plunge begins.

Blair..

First ASP.NET MVC jQuery Experience

March 30, 2010 Leave a comment

Well here I am with a quick update on my own personal experience while getting ASP.NET MVC playing with jQuery. Well honestly I found it quite hard to start off with as I have no MVC or jQuery experience and I am also no Javascript expert.

What I will say is no I have done it I feels sooo much better than Web Forms as there is not some huge Page Request life cycle I have to remember and make sure I put things in the right places. It also feels much simpler and I can design clean objects and create place .NET classes with out the stupid Visual Studio design tools getting in my way

jQuery is a really nice framework it make selecting a working with elements really easy and I sure after reading a few books and watching videos this will all become much simpler.

Blair…

Categories: Development Tags: , , , , ,

VS 2008 JQuery Intellisense

March 30, 2010 Leave a comment
Categories: Development Tags: , , ,