1 30 Javascript 25th February 2010, 10:23 am
z3r0c00l
Administrator
က်ြန္ေတာ္ 30 Javascript ဆိုတဲ့စာအုပ္ေလးတစ္အုပ္ရထားပါတယ္။ alt.332 ေရးတဲ့ Javascript ဆိုပါလား ဆိုတဲ့ ပို႔စ္ နဲ႕ က်ြန္ေတာ္ေရးထားတာေလးကို ေပါင္းၿပီးဖတ္လိုက္ရင္ေတာ့ အဆင္ေျပပါလိမ့္မယ္။ က်ြန္ေတာ္မအားတာေၾကာင့္ PHP လိုမ်ိဳး ျမန္မာျပန္ၿပီးေတာ့ မတင္ေပးႏိုင္တာကိုေတာ့ ခြင့္လႊတ္ပါခင္ဗ်ာ။Simple English ျဖစ္တဲ့အတြက္ အားလံုးနားလည္လြယ္လိမ့္မယ္လို႔လဲ ထင္ပါတယ္။ က်ြန္ေတာ္အားတာနဲ႕ ဒီပို႔စ္ေတြအကုန္လံုးကို ျမန္မာလိုျပန္ၿပီး edit ျပန္လုပ္ေပးမယ္ဆိုတဲ့အေၾကာင္း ကတိျပဳပါတယ္ခင္ဗ်ာ။ ကဲ......စလိုက္ၾကရေအာင္။
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Agenda
Generating HTML Dynamically
• Monitoring User Events
• Basic JavaScript Syntax
• Applications
– Using JavaScript to customize Web pages
– Using JavaScript to make pages more dynamic
– Using JavaScript to validate CGI forms
– Using JavaScript to manipulate HTTP cookies
– Using JavaScript to interact with and control frames
– Controlling applets and calling Java from JavaScript
– Accessing JavaScript from Java
Generating HTML Dynamically
Idea
– Script is interpreted as page is loaded, and uses
document.write or document.writeln to insert
HTML at the location the script occurs
• Template
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Agenda
Generating HTML Dynamically
• Monitoring User Events
• Basic JavaScript Syntax
• Applications
– Using JavaScript to customize Web pages
– Using JavaScript to make pages more dynamic
– Using JavaScript to validate CGI forms
– Using JavaScript to manipulate HTTP cookies
– Using JavaScript to interact with and control frames
– Controlling applets and calling Java from JavaScript
– Accessing JavaScript from Java
Generating HTML Dynamically
Idea
– Script is interpreted as page is loaded, and uses
document.write or document.writeln to insert
HTML at the location the script occurs
• Template
- Code:
<BODY>
Regular HTML
<SCRIPT TYPE="text/javascript">
<!--
Build HTML Here
// -->
</SCRIPT>
More Regular HTML
</BODY>