Ajax.BeginForm not work in ASP.NET MVC 4 and 4.5 ?

In newer versions of ASP.NET MVC such as 4 or 4.5, when you used Ajax.BeginForm like

@using (Ajax.BeginForm("Index", "MyController”,
                            new AjaxOptions()
                                UpdateTargetId = "chart",
                                InsertionMode = InsertionMode.Replace,
                                HttpMethod = "post",
                                OnSuccess = "loadChart",

        <input type="submit" value="Load Chart" />

Continue reading “Ajax.BeginForm not work in ASP.NET MVC 4 and 4.5 ?”

JavaScript HTML5 Charts Comparison

We recently needed a HTML5 JavaScript Chart for our small project. but we need base features such as zoom and pan. After we searched some time, we found the zoom and pan were the painful for JavaScript visualization libraries.  We spent long time to make decision which one was the one we needed. maybe we finally have to buy a commercial chart.

However, during we searching, we found Dennis Krusko had a nice post on his blog about Comparison of JavaScript Data Visualization Libraries, which could save you lots of time to learn different features.

How to Add 3rd Party or Custom JavaScript Files or Libraries in ASP.NET MVC 4+

If you wrote your own JavaScript or jQuery file, and it is not too big, for sure you can place it to any custom folder which you like, and drag it to your view or html file to use it.

But, how about you got big JavaScript or jQuery or other JavaScript library ? or , you have lots of external JavaScript files, you add them to your project and reference to them on each your view files ?

Continue reading “How to Add 3rd Party or Custom JavaScript Files or Libraries in ASP.NET MVC 4+”

Open Source or Free HTML5 / JavaScript Charts

Here we collect free or open source HTML5 / JavaScript, or JavaScript Library charts, we ordered the following resource by the time we searched out, not for any other reasons.

1: Flot

From official site: Flot is a pure JavaScript plotting library for jQuery, with a focus on simple usage, attractive looks and interactive features.

Continue reading “Open Source or Free HTML5 / JavaScript Charts”

JavaScript Multithread Links

1: http://stackoverflow.com/questions/39879/why-doesnt-javascript-support-multithreading

2: http://stackoverflow.com/questions/1663125/is-javascript-multithreaded

3: http://www.sitepoint.com/multi-threading-javascript/

4: http://stackoverflow.com/questions/5664011/javascript-asynchronous-but-not-multithread

5: http://msdn.microsoft.com/en-us/hh549259.aspx

6: jquery each() with setInterval

7: Stop jQuery setInterval

Microsoft Ajax Content Delivery Network (CDN)

Microsoft CDN: Microsoft Ajax Content Delivery Network.

Microsoft provided a place to host some popular JavaScript Libraries such as jQuery, also more other libraries, and their own stuff such as SignalR JavaScript files, Web Forms and Ajax JavaScript files, also, all of them has already been licensed. So that you can get them conveniently. they call this place CDN (Microsoft Ajax Content Delivery Network)

Continue reading “Microsoft Ajax Content Delivery Network (CDN)”

jQuery Leaning Notes

All learning content reference to w3schools jQuary Tutorial.

jQuery is a JavaScript Library.

The purpose of jQuery is to make it much easier to use JavaScript on your website.

jQuery “reduce” JavaScript coding works, 1 line of jQuery code = many lines of JavaScript code (wraps them into methods that you can call with a single line of code.)

Continue reading “jQuery Leaning Notes”

Some JavaScript Sample Code

Note: most of code were from internet, such as w3school.

x=document.getElementById("demo")  //Find the element
x.innerHTML="Hello JavaScript";    //Change the content

x=document.getElementById("demo")  //Find the element
x.innerHTML="Hello JavaScript";    //Change the content
x.style.color="#ff0000";           //Change the style

Continue reading “Some JavaScript Sample Code”