Archive

Archive for June, 2010

How to approach C#.Net ?

C#.Net သို ့ .Net Frame work နဲ ့မိတ္ဆက္ေပးျခင္းဆိုျပီး ဒီေနရာေလးမွာ က်ေနာ္ေရးသားခဲ့ဖူးပါတယ္။ .Net Frame work အေၾကာင္းကို က်ေနာ္ Java Platform နွင့္ နွိင္းယွဥ္ျပီးတင္ျပခဲ့ပါတယ္ ။။ ဒီေန ့က်ေနာ္ေရးသားလိုတာက C#.net

ကိုေလ့လာမယ့္သူေတြ အတြက္ Carrier Talk ပုံစံမ်ဳိး ဘယ္လို စာေမးပြဲေတြေျဖဆိုရမယ္ ဆိုတာကိုက်ေနာ္ေရးသားလိုပါတယ္။
ဒီေနရာမွာ C#.Net အေၾကာင္းေလးမေျပာခင္ အျခား Platform ေၾကာင္းနဲနဲေျပာခ်င္ပါတယ္ ..

Java Platform က ေတာ့ Software application ေတြသာမက Web application ေတြ . Mobile application ေတြပါေရးသာနုိင္ပါတယ္။ Java ကေတာ့ CROSS PLATFORM ပါအဆင္ေျပပါတယ္။ .Net က windows platform သီးသန္ ့ဆိုတာသိထားရမွာပါ ။ သို ့ေပမယ့္လည္း Microsoft ရဲ ့product မဟုတ္တဲ့ အျခား product ေတြဟာ .Net ကို OS Independent အျဖင့္ သုံးနုိင္ေအာင္က်ဳိးစားက် လာတာလည္းရွိေနပါျပီ။ Java ကလည္း C / C++ ကုိ base လုပ္တဲ့ အတြက္ Syntax အားျဖင့္ ဆင္တူပါတယ္ ။

PHP ကေတာ့ open source technology တခုျဖစ္ျပီးေတာ ့Web application ေတြေရးသားရာမွာ အရမ္းကို နာမည္ရေနတဲ့ language တမ်ဳိးပဲျဖစ္ပါတယ္၊ သူမွာေတာ့ Framework သီးသန္ ့မရွိပဲ PHP ကို support လုပ္တဲ့ Web application Framework ေတြ အမ်ားၾကီးရွိပါတယ္။ ဒါေၾကာင့္ PHP ကိုေလ့လာရာမွာ language ကိုသာပိုင္နုိင္ေအာင္ေလ့လာရမွာပါ။ Framework ေတြကိုေတာ့ လိုအပ္ရင္ လိုအပ္တဲ ့ Framework ကို ေလ့လာဖို ့လိုပါမယ္။။ သူဟာ လည္း C / C++ နဲ ့ Syntax ေတြဆင္တူပါတယ္ ..ဒါေၾကာင့္ C / C++ ကိုေလ့လားထားဖူးမယ္ဆို ေတာ္ေတာ္ေလး ေကာင္းပါတယ္။ ဒါေၾကာင့္ အေတာ္မ်ားမ်ားေသာ Senior ေတြက programming ကိုစေလ့လာဖို ့အတြက္ C / C++ ကစေလ့လာဖို ့ေျပာ ၾကား လမ္းညြႊန္က်တာပါ.။ Read more…

Categories: .Net

How I started exploring in IT ?

June 29, 2010 1 comment

How I started exploring in IT ?

My first step with DIT
My university life ,2007 , at that time I’m really nooby boy in IT.. I have no an email account. I have only basic computer knowledge that mean my skill is outer level of end user in touching with computer. I was attending Bachelor of Science in Chemistry at The University of Distance Education. I have more friends in my university life. One of them is Hero in IT. He is attending IT diploma. Most of the time, he told me about the Computer ..How much he is crazy in it. And also he gave me a light that to attend IT diploma.. And also I was thinking that IT will be developed coming future in our Country . All over the word IT supports all of the field. And then I have been analysis my hobby? Read more…

Categories: General

Direction of Data Flow

June 27, 2010 2 comments

က်ေနာ္ေရးသားလိုတာက data communication ရဲ ့အေျခခံ အခ်က္လက္ေတြပါပဲ ကြန္ပ်ဳတာ နဲ ထိေတြ ့မည့္သူေတြအားလုံးသိထားသင့္တဲ့အေျခခံ အခ်က္လက္ေတြလို ့ယူဆပါတယ္ .. ဒါေၾကာင္ ့က်ေနာ္ data communication ေလ့လာခဲ့ဖူးတာေလးေတြကို က်ေနာ္နားလည္သေလာက္သိသေလာက္ျပန္လည္ ေ၀မ်ွခ်င္းသာျဖစ္ပါတယ္.။

Direction of Data Flow
Direction of Data flow ဆိုေတာ့ Data ေတြဟာ device ေတြၾကားမွာ ဘယ္လို ဦးတည္ရာပုံစံမ်ဳိး နဲ ့ ဆက္သြယ္ communicate လုပ္ေနတယ္ဆိုတာ၊ အခ်င္းခ်င္း ဘယ္လို အျပန္လွန္ ဆြက္သြယ္တယ္ဆိုတာ ကိုဆိုလိုတာပါပဲ။ က်ေနာ္တို ့အားလုံး ဒီေနရာမွာ device ဆိုတာ နားလည္ထားဖို ့လိုပါမယ္။ က်ေနာ္ Data communication အေၾကာင္းမွာ sender ေတြ receiver ေတြအေၾကာင္း အနည္းငယ္ ရွင္းျပခဲ့ဖူးပါတယ္။ သူတို ဟာ device ေတြပါ။ အခ်က္လက္ေတြကို ေပးပို ့မယ္ လက္ခံမယ္ (ဆက္သြယ္မွုျပလုပ္မယ္)ဒါေတြကို လုပ္ေဆာင္မယ့္သူေတြပါ ။

Device တခုနွင့္ တခုၾကား ဆက္သြယ္မွု communication ျပဳလုပ္က်တဲ့ အခါမွာ data ရဲ ့flow ပုံစံေတြက simplex ေသာ္လည္းေကာင္း၊ half-duplex ေသာ္လည္းေကာင္း ၊ full-duplex ေသာလည္းေကာင္းဆုိျပီး ျဖစ္နိုင္ပါတယ္။ Read more…

Categories: Network Tags: ,

Data Representation ဆိုတာဘာလဲ

Data Representation

Data and Information
ဒီအေျကာင္းေလး မေျပာခင္ က်ေနာ္တို့ သိရွိထားရမွာက Data and Information ရဲ့အဓိက ျခားနားခ်က္ကိုပါ။ ဒါကို က်ေနာ္ ဥပမာေပးရမယ္ဆိုရင္ က်ေနာ္တို့ ေကာင္မေလး တေယာက္အေျကာင္း စုံစမ္းျကမယ္ေပါ့ဗ်ာ။။ က်ေနာ္က ေကာင္မေလး ဘယ္အခ်ိန္ သင္တန္းသြားမလဲဆိုတာ သိခ်င္တယ္ ။။ ဒါေျကာင့္ေကာင္မေလး ဘယ္အခ်ိန္သြားမလဲ သိရေအာင္ စုံစမ္းဖို့ လူလြတ္ထားတယ္ေပါ့ဗ်ာ.။ အဲစုံစမ္းတဲ့လူက ဗ်ာ ေကာင္မေလး ဘယ္ခ်ိန္ေစ်းသြားေျကာင္း ဘယ္ခ်ိန္မွာ သီခ်င္းနားေထာင္ ဘယ္ခ်ိန္မွာ Television ျကည့္တယ္ အင္တာနက္သုံးတယ္ ဘယ္ခ်ိန္မွာ သင္တန္းသြားတယ္ ဆို ျပီး က်ေနာ္ဆီသတင္းပို ့ပါတယ္ ။။ ဒါအခ်က္လက္ေတြအားလုံးက data ပါ။။ ဒီထဲကမွ က်ေနာ္သိခ်င္ က်ေနာ္လိုခ်င္တဲ့ အေျကာင္းရာက သင္တန္းသြားမယ့္အခ်ိန္ ေအာ္ ဒါက Information ပါ ..ဒီ Information ကို အသုံးခ်ျပီ ေကာင္မေလးေနာက္ကိုဘယ္လိုလိုက္ရမလဲ ..က်ေနာ္တို ့knowldege ဆိုတာ ရျကတာပါ။(က်ေနာ္ေတာ့စုံစမ္းဖူးဘူးေနာ္)
ဒီလိုပါပဲ အျခား ဥပမာတခုေပးရမယ္ဆို ေက်ာင္းတေက်ာင္းမွာ ေက်ာင္းသားေပါင္းမ်ားစြာရဲ့ကိုယ္ေရးရာဇ၀င္ရွိပါတယ္ ဒါေတြက data ေတြပါ။ အဲထဲကမွ ေအာင္ေအာင္ဆိုတဲ့ေက်ာင္းသားရဲ့ အိမ္လိပ္စာ ဖုန္းနံပါတ္လိုခ်င္လို့ရွာတဲ့အခါ ဒါကို Information လို့ နားလည္ရင္ျဖစ္ပါတယ္။..

Data ေတြကိုု process လုုပ္တဲ့အခါမွာ Information ေတြရပါတယ္။ ရလာတဲ့ Information ေတြကိုု process လုုပ္တဲ့အခါမွာ Knowledge ဆိုုတာရပါတယ္။ ခုုခ်ိန္မွာကိုုလိုုခ်င္တဲ့ data ေတြဟာ information  အေနနဲ ့ရွိေနယံုုမကေတာ့ပဲ Knowledge အေနနဲ ့ ေပါမ်ားစြာရနုုိင္ေနပါျပီ။ လူတိုုင္းလူတုုိင္းဟာ Level တူလာျပီလိုု ့ေျပာလိုု ့ရပါတယ္။ ဘာေၾကာင့္လဲ ဆိုုေတာ့ knowledge ဆိုုတဲ့ေျမာက္မ်ားစြာေသာ အခ်က္လက္ေတြဟာ အင္တာနက္ေပၚစာအုုပ္ေတြေပၚမွာပလူပ်ံေနပါျပီ။ ဒီပလူပ်ံေနတာကိုု လူေတြက Input လုုပ္ၾကပါတယ္။ လူငယ္ေတြစာေလ့လာၾကပါတယ္။ စာအုုပ္ေတြဖတ္ၾကပါတယ္။ ဒါေပမယ့္ သူတိုု ့ေတြဖတ္ျပီး ေလ့လာျပီးမၾကာခင္ေမ့ေလ်ွာ့ၾကပါတယ္။ ဘာေၾကာင့္လဲဆိုုေတာ့သူတိုု ့ေတြ Input သာရွိျပီး Process မလုုပ္တဲ့အတြက္ Output ျဖစ္တဲ့ wisdom ဥာဏ္ပညာ ဖန္တီမွုု ဆိုုတာမထြက္လာခဲ့ပါဘူး။ ဘာေၾကာင့္လဲဆိုုေတာ့ ငယ္စဥ္ခါကတည္းက Creative thinking ျဖစ္ေပၚေစမယ့္ imagination ဆိုုတဲ့ စိတ္ကေလးေသေနခဲ့လိုု ့ျဖစ္ပါတယ္။ (အရာရာကိုု တြက္ခ်က္တာက အစ ဂဏန္းေပါင္းစက္ အားကိုုးတာ ဖုုန္းနံပါတ္ေတြမွတ္မယ့္အစား ph မွတ္ဥာဏ္ထဲမွာပဲမွတ္ထားတဲ့အတြက္ ဖုုန္းနံပါတ္ေတြမမွတ္မိတာ စတဲ့ စတဲ့ အုုံးေနွာက္ အလုုပ္ေပးမွဳေတြနားခဲ့တဲ့အတြက္ ပါ)

က်ေနာ္တို့ အခုခ်ိန္မွာ Data ေတြကို computerize သုံးျပီး သိမ္းဆည္းတာ ရွာေဖြတာ ေတြျဖစ္ေနျပီဆိုေတာ့ ခု Computer data ဆိုတာ ဘာေတြျဖစ္နုိင္မလဲဆိုတာ ေျပာျကည့္ရေအာင္။ ကြန္ပ်ုတာ ေဒတာေတြက စာသားဖိုင္ text ေတြ
video ဖိုင္ေတြ သီခ်င္းဖိုင္ေတြ ပုံေတြ ကိန္းဂဏာန္းေတြ အစရွိသျဖင့္ ရွိျကပါတယ္။ Read more…

Categories: Network Tags:

I was invited to attend on Open Talk

June 25, 2010 1 comment

Last Sunday, I attended a seminar that is a new program of organized by Mistake 51 Area (m51a.com) group and My Suboo Fan Club at Excel Treasure Hotel ,10th floor , Meeting room . Their new program name is the ” Knowledge Sharing and Collaboration on Open talk” . For June, they made about the DNS and Hosting Sever. Coming July, They will be hold about the “Hunted Job” at Excel Treasure Hotel or MICT park ( they will announce the update news of their activities coming soon).

 Ko Myint Zaw , Ye' Paing Phyo

At that day, I presented about the Data communication, DNS and hosting Sever with Ko Myint Zaw Oo who is a editor of INTERNET Journal. Read more…

Categories: News

Data Communications

Data Communications

ယခုက်ေနာ္ေရးသားမည့္ အေျကာင္းရာဟာ အခ်ို့လူေတြအတြက္ေတာ့ တကယ့္ကို basically ျဖစ္ေနပါလိမ့္မယ္ ရယ္လည္း ရယ္ခ်င္စရာျဖစ္ေကာင္းျဖစ္ေနပါတယ္ ခုမွ network environment ကိုစတင္မည့္ သူ ကြန္ပ်ုတာ စတင္ထိေတြ့မယ့္ သူငယ္ခ်င္းေတြကို ရယ္ရြယ္ျပီး data communication ရဲ့ အေျခခံကိုေရးသားခ်င္းျဖစ္ပါတယ္ က်ေနာ္ဖတ္ဖူးတဲ့စာအုပ္မ်ား ေလ့လာဖူးတာေတြထဲက နားလည္သလိုျပန္လည္ေရးသားခ်င္းျဖစ္သည့္အတြက္လိုအပ္တာေလးေတြရွိမွာပါ ..က်ေနာ္သိသေလာက္ပဲ ေရးသားလိုက္ပါတယ္..

Data Communication ဆိုတာဘာလဲ?
Data Communication ဆိုတာ device တခုနွင့္ တခုျကား ျကိုး (သို့မဟုတ္) ျကိုးမဲ့ စနစ္ျဖင့္ data ေတြ ေပးပို့ ရယူ ျခင္းျဖစ္ပါတယ္။ က်ေနာ္တို့ လူတဦးနွင့္တဦး စကားေျပာတာလည္း data communication ပါပဲ။ Data communication တခုျဖစ္ဖို့ဆိုရာမွာ Data ေတြကို communication လုပ္မယ့္ Device ေတြဟာ Hardware နွင့္ Software တို့ ေပါင္းစပ္ထားတဲ့ communication system ေတာ့ျဖစ္ဖို့လိုတာေပါ့ဗ်ာ။ က်ေနာ္တို့လူေတြမွာပဲျကည့္ေလ က်ေနာ္တို့ရဲ ့ body ျကီးက သာမက ၀ိဥာဏ္ဆိုတာ ရွိေနမွ က်ေနာ္တို့ အသက္ရွိေနတာေပါ့ ..အသက္ရွိတဲ့လူကိုမွပဲ စကားေျပာလို့ရမွာေပါ့ လူေသကိုစကားေျပာလို့မွမရတာ ..။ ဒီလိုပါပဲကြန္ပ်ုတာ မွာလဲ hardware နွင့္ software ေပါင္းစပ္မွပဲ communication လုပ္လို့ရမယ့္ system တခုျဖစ္လာမွာေပါ့ .။ ေျပာခ်င္တာက communicate လုပ္မည့္ devices ေတြဟာ ဒီလိုအခ်က္ေတြလိိုအပ္ပါတယ္။။ အက်ုိးထိေရာက္မွုရွိတဲ့ data communication system တခုဟာ delivery ,accuracy and Timeliness ဆိုတဲ့အခ်က္လက္ သုံခုေပါ္မွာ လုံး၀ မွုတည္ေနတာပါပဲ…။ Read more…

Categories: Network Tags:

The various brands of Laptop motherboard bios universal password

hi all,
Nice to meet you all on IT friends. Really, I’m a beginner of IT industry that mean not a pro. 🙂 I love the knowledge sharing and collaboration to each others . OK OK!! May I share you something knowledge in here. If you know more than me …plz share me and all. Plz . I hope you will.

OK all my dear you may know about BIOS (basic input/output system).The BIOS is boot firmware, designed to be the first code run by a PC when powered on. The initial function of the BIOS is to identify, test, and initialize system devices such as the video display card, hard disk, floppy disk and other hardware. The BIOS sets the machine hardware into a known state, so that software stored on compatible media can be loaded, executed, and given control of the PC.This process is known as booting, or booting up, which is short for bootstrapping. Read more…

Categories: Hardware Tags:

Do you want an email with yourname@student.com by FOC

You can get an email with yourname@student.com as like a Google mail that is powered by Google. All of the features are the same with Gmail.

Step (1)
Firstly go to www.student.com and register your account. After that they will send an activation mail to your primary gmail or email.
Notice : when you signing up on there plz check on the ” I want to get from yourname@student.com” statement . this page is case sensitive .plz care to register there.

Step (2)

Secodly, Login to Student.com from your activation link .

Step (3)

You are now as a member of student.com. Now, you can  get email from this site as a powered by Google. Click to Student.com  <br /

Student.com E-mail

that exit on the right side of this site.

and then you can login with yourname@student.com and your password. Sometime 502 page errors may be show you coz this sever is busy on sometime .You can solve this error by refreshing or reloading this page.

It’s finally here! Your very own @student.com e-mail address using Google’s award-winning Gmail program! And best of all, it’s for free and matches your Student.com username! Read more…

Categories: Mail Tags:

Java Script အတူတူေလ့လာရေအာင္ (၂)

က်ေနာ္တို႕ဒီေန႕ ဆက္လက္ေလ့လာသြားမွာက how to enable JavaScript in your browsers ဆိုတာေလးကိုအတူေလ့လာက်ရေအာင္ က်ေနာ္တို႕ ေရးတဲ့ Script ေတြ browser မွာ run နုိင္ေအာင္ browser က support လုပ္နုိင္ေအာင္ တက္လာတဲ့ error ေတြကို သိရွိနုိင္ဖို႕အတြက္ က်ေနာ္တို႕ browser မွာ Java Script ကို Enable လုပ္ေပးရပါတယ္ ။ တကယ္လို႕ သူမ်ားက disable(uncheck) လုပ္ထားရင္လည္း ကိုယ္ကိုတိုင္ enable လုပ္နုိင္ေအာင္ပါ အသုံးမ်ားတဲ့ browser အခ်ဳိ႕မွာ JS ကို enable လုပ္ပုံကို က်ေနာ္ သိသေလာက္ တင္ျပေပးလိုက္ပါတယ္။

ကဲစျပီးဖတ္ၾကည့္ရေအာင္လား သူငယ္ခ်င္းတို႕ေရ

Enable JavaScript – Internet Explorer
Internet Explorer မွာကေတာ့ JS ကို enable လုပ္ထားရင္ error တက္တဲ့အခါ ဘယ္လိုင္းက တက္တယ္ဆိုတာကအစ ျပေပးပါတယ္။ ဒါေၾကာင့္စမ္းမယ္ဆိုရင္သူနဲ႕ စမ္းသပ္သင့္ပါတယ္။

အဆင့္ (၁) Tool Menu ကို နွိပ္လိုက္ပါ (Alt key + T)
အဆင့္ (၂) Internet Options ကို သြားပါ
အဆင့္ (၃) Security Tag ကို သြားပါ
အဆင့္ (၄) Custom Level.. ဆိုတဲ့ button ေလးကိုနွိပ္လိုက္ပါ
အဆင့္ (၅) Scripting section ( Scripting of Java applets) ထိေရာက္ေအာင္ scoll bar ကို ဆြဲခ်ျပီး Enable ကိုေရြးလိုက္ပါ။
အဆင့္ (၆) OK ကို ေရြးျပီ confirm လုပ္ခိုင္းပါက Yes ကိုေရြးေပးလိုက္ပါ။။ Read more…

Categories: Java Script Tags:

Java Script အတူတူေလ့လာရေအာင္ (၁)

Web standard မ်ားျဖစ္တဲ့ HTML, CSS and Java Script တို႕ဟာ Web developer ျဖစ္လိုသူတိုင္းမျဖစ္မေနေလ့လာရမယ့္ထဲ မွာပါ၀င္ပါတယ္။ယခု additional interaction အျဖစ္ java script ကို ေနာက္ပိုင္းေတာ္ေတာ္ေလး အသုံးျပဳလာျပီး ့အက်ဳိးေက်းဇူးေတာ္ေတာ္ေလးရွိတာမျငင္းနိုင္ပါဘူး။  Web standard နဲ႕ မကိုက္ညီတဲ့ flash ေနရာမွာ CSS JavaScript ေတြက အေကာင္းဆုံးေနရာယူလာတာေတြ႔ရွိရမွာပါ ..Java Script က HTML CSS ေတြကို အေတာ္ ေထာင့္ပံ့ေပးလာနိုင္တယ္

Java script definition ကို က်ေနာ္နားလည္ရသေလာက္ကေတာ့ ၄င္းဟာ client-side scripting language တခုျဖစ္ပါတယ္.ဆိုလိုတာက browser ေပၚမွာတင္ run နုိင္တယ္ local မိမိစက္ထဲရွိတဲ့ browser ေပၚမွာတင္ run နုိင္ပါတယ္။
Web Browsers မ်ားျဖစ္တဲ့ ( Firefox, IE, Flock, Chrome ..) ေတြဟာ အမ်ားအားျဖင့္ HTML ,CSS & Java Script တိုကိုပဲ သူကနားလည္တယ္ပါတယ္ ,ASP, C#, Java,PHP,  Python စတဲ့ Sever side programming language ေတြကိုနားမလည္ပါဘူး…client-side scripting language ရဲ႕ အျခား တဖက္မွာလည္း sever-side scripting language ဆိုတာေတြရွိေနပါတယ္.. ဥပမာ PHP ေပါ့။ PHP က web hosting sever ေပၚမွာ run ပါတယ္ ..က်ေနာ္တို႕ Web page ေတြ login ၀င္တဲ့ခါမ်ဳိးမွာဆို က်ေနာ္တို႕လုပ္လိုက္တဲ့ Request ဟာ sever ေပၚမွာသြားျပီး Request လုပ္ပါတယ္ ျပီးမွာ HTML အေနနဲ႕ ျပန္လာတာပါ..ဟိုးအရင္ကေတာ့ server side ကို အေလးေပးၾကျပီး ခုေတာ့ Performance အတြက္ client side ေတြကို အေလးေပးလာၾကပါျပီ ..ဆိုလိုခ်င္တာကေတာ့ဗ်ာ user က request လုပ္သမ်ွ server ကို သြားျပီ လုပ္မယ့္ request time, respond time ေတြကိုေလ်ွာ့ခ်လာနို္္င္ေအာင္လို႕ က်ေနာ္ျမင္ပါတယ္…form တခုကိုလည္း HTML နဲ႕ေရးလို႕ရတယ္ php နဲ႕ေရးလည္းရတယ္ ။ html မွာေရးရင္ request time & Response time ေတြေစာင့္ဖို႕မလိုဘူးေပါ့ local မွာတင္ ျပီးမယ္ေလ..PHP နဲ႕ေရးလိုက္မယ္ဆိုရင္ server မွာသြားျပီ form ကို အလုပ္လုပ္ျပီးမွ html အေနနဲ႕ response ျပန္လာ user ကိုျပ အခ်ိန္ပိုၾကာတာေပါ့..။ ဒါက က်ေနာ္နားလည္သေလာက္အၾကမ္းမ်ဥ္းေျပာတာပါ..

  • Clocks
  • Mouse Trailers (an animation that follows your mouse when you surf a site)
  • Drop Down Menus
  • Alert Messages
  • Popup Windows
  • HTML Form Data Validation ဒီလို ေတြမွာ java script ကိုအရမ္းသုံးပါတယ္။။

က်ေနာ္နဲ႕အတူေလ့လာမယ့္ သူငယ္ခ်င္းတို႕ဟာ HTML ကိုနားလည္တက္က်ြမ္းထားသင့္ပါတယ္။ HTML ရရင္ အဆင္ေျပမယ္ထင္ပါတယ္.။ html မရေသးရင္ သူ႕ကိုအရင္ေလ့လာလိုက္ပါ

ကဲက်ေနာ္နဲ႕အတူတူေလ့လာက်မယ္ေနာ္ က်ေနာ္လိုအပ္တာရွိခဲ့ရင္ က်ေနာ္ရဲ႕ အကိုအမေတြကလည္းေထာက္ျပေပးဖို႕ေမ်ွာလင့္ပါတယ္…

ကဲစလိုက္က်စို႕သူငယ္ခ်င္းတို႕ေရ

ထုံးစံတိုင္း Hello World ကပဲ စလိုက္ရေအာင္ ဗ်ာေနာ္

HTML & JavaScript Code:

ေအာက္က ကုဒ္ေလးကို notepad သိုမဟုတ္ any source area တခုခုမွာရိုက္လိုက္ပါ ျပီးရင္ေတာ့ yourname.html နဲ႕ သိမ္းပါ yourname ဆိုတဲ့ေနရာမွာ ကိုၾကိဳက္တဲ့နာမည္ေပါ့ ဖိုင္ NAME က .html ျဖင့္ သိမ္းရပါမယ္

<html>
<body>
<script type="text/JavaScript">
<!--
document.write("Hello World!")
//-->
</script>
</body>
</html>

Display:

result က ဒီလိုရပါမယ္

Hello World!

line no 1 : မွာ ကေတာ့ html နဲ႕စပါတယ္။။ ျပီးေတာ့ ေအာက္ဆုံးလိုင္းမွာပိတ္ထားပါတယ္။ html ရထားရင္ဒါေတြေျပာေနဖို႕ မလိုေလာက္ပါဘူး
line no 2 : မွာ body  tag စပါတယ္။ က်ေနာ္တို႕ ေရးခ်င္တဲ့ စာသားေပၚေစခ်င္တာကို body မွာေရးပါတယ္။။
line no 3 : မွာေတာ့ browser ကို script စသုံးမယ္လို႕ စတင္ေျပာလိုက္ပါတယ္ <script> tag နဲ႕ပါ။ ျပီးေတာ့ type ကို  “text/JavaScript” အျဖစ္သတ္မွတ္လိုက္ပါတယ္.. CSS ေလ့လာဖူးရင္သတိထားမိမယ္ထင္တယ္ သူ႕ကိုလည္း “text/css” ဒီလိုသတ္မွတ္တာကို..

Comment
“<-!”  ေလးရယ္ ေနာက္  “//–>” ေတြ သတိထားမိမယ္ထင္တယ္။ comment (မွတ္ခ်က္) ပိတ္တာပါ program ေတြေရးတဲ့အခါ ရွုတ္ေထြးတက္လြန္းလို႕ မွတ္မိလြယ္ေအာင္ မည္သည့္ကုဒ္ျဖစ္ေၾကာင္း မွတ္သားစာေတြကို comment လို႕ေခၚပါတယ္ မပါလည္းရပါတယ္ ။။ ဒါဆိုဘာလို႕ထည့္လည္းေပါ့ ..ဟုတ္ကဲ့အေၾကာင္းရွိပါတယ္
browser ေတြဟာ တခုနဲ႕ support လုပ္ပုံခ်င္းမတူညီၾကတာေၾကာင့္ တကယ္လို႕မ်ား က်ေနာ္တို႕ေရးတာကို support မလုပ္ခဲ့ရင္ ဘာမွမေပၚဘဲ အျဖဴေရာင္ screen ၾကီးပဲေပၚဖို႕အတြက္ပါ။ support မလုပ္တာနဲ႕  ” //-> ” ဒါေလးကိုျမင္ျပီးေတာ့ html အပိတ္စီ တန္းဆင္းသြားပါတယ္ ဒီေတာ့ user ကို အျဖဳဴေရာင္ plain area ၾကီးပဲျပပါလိမ့္မည္..

JavaScript document.write

line no 5 : မွာ ေတာ့ document.write ဆိုတဲ့ function ကိုေခၚသုံးထားပါတယ္ သူက string (စာသားေတြ ) ကိုရိုက္ထုတ္ျပပါမယ္ user ကို output ျပခ်င္ရင္ သုံတာပါ..မိမိေပၚေစခ်င္တာ ရိုက္ထုတ္ခ်င္တာကိုေတာ့
document.write(” ကိုေပၚခ်င္တာ” ) ဆိုျပီးရိုက္ထုတ္ပါ က်ေနာ္တို႕ အေပၚမွာ “Hello world” ရိုက္ခဲ့လို႕ hello world ေပၚမွာပါ..
document.write ဆိုတဲ့ function ကို ေကာင္းေကာင္းနားမလည္ေသးလည္း ခုေတာ့ စာသားေတြ ရိုက္ထုတ္တဲ့ function လိုခဏမွတ္ထားေပးပါ ေနာက္ပိုင္း က်ေနာ္တို႕ေလ့လာရင္းေဆြးေႏြးရင္းနာလည္သြားမွာပါ..

Syntax

အေပၚက က်ေနာ္တို႕ java script ကိုၾကည့္မယ္ဆိုရင္ statement တခုရဲ႕ အဆုံမွာ semicolon မပါတာ သတိထားမိမွာပါ ” document.write(“Hello World!”) ” ဘာလို႕လဲလို႕ေမးစရာရွိလာပါျပီ ။ ဘာလို႕လဲဆိုေတာ့ javascript မွာ statement တခုအဆုံးမွာ မထည့္လည္းရလို႕ပါ။။
မထည့္လဲရတယ္ဆိုေတာ့ ထည့္လည္းရတယ္ေပါ့ က်ေနာ္တို႕ကေတာ့ထည့္ပါတယ္။။ ဒီလိုေလးေရးပါတယ္

” document.write(“Hello World!”); ” ဒါကေတာ့ လြတ္လြတ္လပ္လပ္ပါ ထည့္လည္းရတယ္ မထည့္လည္းရတယ္ ။။အေတြ႕ၾကဳံ ရွိ programer အမ်ားစုကေတာ့ေရးထည့္ေရးေလ့ရွိပါတယ္ ။ ဒါေပမယ့္ line တလိုင္းထဲမွာ document.write statement ၂ ခုေရးတဲ့ခါမွာေတာ့ထည့္ရပါမယ္။။ ဒီေတာ့အေလ့က်င့္ျဖစ္ေအာင္ ထည့္ေရးပါလို႕ အၾကံျပဳလိုက္ပါတယ္။ statement တခုျပီးတိုင္း ; (semicolon ) ထည့္ေရးပါလို႕အၾကံျပဳရင္းက်ေနာ္နဲ႕အတူ ေနာက္တပတ္ ဆက္လက္ေလ့လာဖို႕ဖိတ္ေခၚလိုက္ပါရေစ……

ဆက္လက္ေဖာ္ျပပါမည္……..
ေလးစားစြာျဖင့္
ရဲပိုင္ျဖိဳး

Categories: Java Script Tags: ,