



























































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Web lab manual with theory notes
Typology: Lecture notes
1 / 67
This page cannot be seen from the preview
Don't miss anything!
➢ Originally developed by Netscape ➢ Joint Development with Sun Microsystems in 1995 ➢ Standard 262 (ECMA-262) of the European Computer Manufacturers Association ➢ ECMA- 262 edition 3 is the current standard
XHTML/JavaScript Documents ➢ When JavaScript is embedded in an XHTML document , the browser interpret ‘s it with Java Interpretor to run or execute. ➢ Two locations for JavaScript server different purposes
JavaScript in XHTML: CDATA ➢ The block is intended to hold data that should not be interpreted as XHTML ➢ Using this should allow any data (including special symbols and -- ) to be included in the script ➢ This, however does not work, at least in Firefox: **_
_** ➢ The problem seems to be that the CDATA tag causes an internal JavaScript error **JavaScript in XHTML** ➢ This does work in Firefox **__** ➢ The comment symbols do **not bother the XML parser** (only /* and */ are ‘visible’ to it) ➢ The comment symbols protect the CDATA markers from the JavaScript parser➢ Directly embedded < **_script type=“text/javascript”>
_** ➢ However, note that a-- will not be allowed here! ➢ **Indirect reference** **_