@DoiTung SalaDang

posted on 14 Nov 2009 11:14 by tanicha  in General
วันนี้มานั่งที่ DoiTung SalaDang เพิ่งรู้ว่าลูกค้าต้องเดินไปเอาเครื่องดื่มที่สั่งไว้เอง ทำไมถึงไม่มาเสริ์ฟให้ที่โต๊ะนะ นี่ถ้าลูกค้าไม่ได้ยินเสียงเรียก น้ำที่สั่งไว้คงละลายไปแล้ว - -'' ทั้งๆที่มีลูกค้าน้อยนะเนี่ย อืม เทียบกับการบริการของร้านกาแฟอื่นๆ ถือว่ายังสู้ไม่ได้ อืมไม่มีไรแค่อยากบ่นๆๆ

note url

posted on 16 Oct 2008 00:12 by tanicha  in Magento

 note ไว้ 

url นี้ไว้เข้าหน้า admin 

 http://localhost/magento/index.php/admin/

url นี้ไว้เข้าหน้าแรก

http://localhost/magento/index.php/

user guide

magento  guide chapter1

magento  guide chapter2

magento  guide chapter3

magento  guide chapter4

magento  guide chapter5

magento  guide chapter6

magento  guide chapter7

magento  guide chapter8

magento  guide chapter9

edit @ 16 Oct 2008 00:13:23 by tanicha

edit @ 16 Oct 2008 00:17:47 by tanicha

edit @ 16 Oct 2008 00:26:18 by tanicha

Flex Tutorial Part1

posted on 01 Sep 2008 23:15 by tanicha  in FlexTutorial

Basic MXML Syntax

- mx:Button เป็น tag ที่เอาไว้สร้างปุ่ม
- id="myButton" id เป็นการตั้งชื่อให้ id เพื่อที่จะเอาชื่อนี้ไปอ้างถึงในการทำ event ต่างๆได้
- label="Click me!" label เป็นการตั้งชื่อให้ ปุ่ม ที่เราสร้างขึ้น

-----------------------------------------------------------------------------------------

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    horizontalAlign="center" verticalAlign="center">

    <mx:Button id="myButton" label="Click me!" />

</mx:Application>
  

การที่จะรันโค้ดได้ เราต้องประการส่วนต่างๆให้สมบูรณ์ครับ


- ส่วนนี้เหมือนๆกับการที่เราเขียน ไฟล์ xml เราจะต้องประกาศส่วนนี้ เพราะว่า mxml นั้น extend มาจาก xml นะครับ

http://www.adobe.com/2006/mxml" horizontalAlign="center" verticalAlign="center">
- ส่วนนี้ เป็ฯ tag mx:Application ในกรณีที่เราจะสร้างเป็ฯ application นะครับ
- ส่วนตรง xmlns:mx="http://www.adobe.com/2006/mxml"

xmlns="*" ต้องจับแยกออกเป็นสามคำ

1. xml คือชนิดเอกสารที่เรารู้จักกัน คงไม่ต้องอธิบายกันมาก
2. ns ย่อมาจาก name space เนมสเปส คือแหล่งของไลบราลี หรือคลาส หรือไทป์ต่างๆ
3. * คือเครื่องหมาย wild card หมายถึง แทนที่ได้ทุกอย่าง

แค่นี้พอเดาได้แล้วไหม?

xmlns="*" คือคำการสั่งจับรวมเนมสเปสของ xml เ้ข้ามาทั้งหมด เพราะไฟล์ mxml นี้เป็นสับเซตของ xml ครับ

อ้างอิงจาก http://thailand2siam.com/messageboard/show.php?f=0&topic=20080519024957&u=7

 - ส่วนตรง horizontalAlign="center" verticalAlign="center" เป็นการกำหนดตำแหน่งของ component ที่เราสร้ัางขึ้นนะครับ

---------------------------------------------------------------------------------------
MXML Naming Conventions
การตั้งชื่อไฟล์ mxml :


1.ชื่อไฟล์ได้กำหนดให้เริ่มต้นด้วยตัวอักษรและ เครื่องหมาย _  ตัวอักษรต่อจากนั้นก็ต่อด้วย alphanumerichttp://en.wikipedia.org/wiki/Alphanumeric">alphanumeric> และ _ เท่านั้น


2.ชื่อไฟล์ mxml ไม่สามารถซ้ำกับ ชื่อไฟล์ ActionScript ได้ ห้ามใช้ชื่อเหมือน component และห้ามตั้งชื่อให้เหมือนกับแหล่งของไลบราลี หรือคลาส หรือไทป์ต่างๆ

3.ทุกๆ ไฟล์ต้อง ต่อด้วยนามสกุล .mxml ตัวอักษรเป็นตัวเล็ก

A lot of MXML tags correspond to ActionScript classes. When defining the tags, you use the same naming conventions as the ActionScript class. In other words, the class begins with a capital letter, and each capital letter separates the words in the class name. Also, the properties and events also correspond to the ActionScript class.


ส่วนไหนผิด ก็บอกนะครับจะได้แก้

edit @ 1 Sep 2008 23:40:33 by tanicha

edit @ 2 Sep 2008 09:25:08 by tanicha