ไฟล์ index.html ใส่ฟอร์ม <!doctype html> <html lang=”en”> <head> <script type=”text/javascript” src=”jquery-1.7.1.min.js”></script> <script type=”text/javascript” src=”myscript.js”></script> <script type=”text/javascript” src=”jquery.validate.min.js”></script> <script type=”text/javascript” src=”jQueryPlugin.js”></script>
Day: December 21, 2012
jQuery สร้าง Plugin function ใช้เอง
/// <reference path=”jquery-1.7.1.min.js” /> (function ($) { //สร้างชื่อฟังชั่นไว้ใช้งานเอง $.fn.myhightlight = function () { return this.each(function(){ $(this).css(‘background-color’,’#aa0000′) }); } })(jQuery) เอาไปใช้กับไฟล์
jQuery Validation
http://bassistance.de/jquery-plugins/jquery-plugin-validation/
ทำ Web Service รัน WCF + jQeury คือสามารถรันได้เลย
1) สร้าง Project ใหม่เป็น Web ASP.NET Empty หลังจากนั้น Add new item LINGQ to SQL Class แล้วลาก Table มาวาง 2) ทำการ
ทำ WindowsService ให้รันออโต้บริการ Service
1) เริ่มแรกสร้างโปรเจ็คใหม่เป็น Windows Service Application (C#) และใส่โค้ดในหน้า Service1.cs using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Diagnostics; using System.Linq;
