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",

                            }
                            ))
                        {
    <div>
        <input type="submit" value="Load Chart" />
    </div>
}

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

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”