A step by step tutorial teaching you how to create your own chat client and chat server easily in C#, for local networks or the Internet.
A C# tutorial showing you how to make use of WMI to extract information on disk drives, such as model, capacity, sectors and serial number.
This tutorial will teach you how to calculate the shipping cost based on the weight, height, length and depth of the box, the distance and the UPS service type.
Creating a Rich Text Editor using JavaScript is easier to do than you might think, thanks to the support of modern browsers; this tutorial will walk you through it.
Starting a JavaScriptHow do you tell the browser that a script is starting? Moreover, how does he know what kind of script is starting? What if the browser doesn’t support JavaScript? |
On Monday, March 8th 2004 at 10:35 AM By Andrew Pociu (View Profile) ![]() ![]() ![]() ![]() (Rated 3.3 with 12 votes) |
||
|
Contextual Ads
More JavaScript Resources
Advertisement
This is another fragment from the book I started some time ago, named 'JavaScript class' Telling the browser JS is startingWe can’t tell the browser that a JavaScript is starting using some JavaScript code, because he doesn’t know, how to interpret it. We should tell the browser that a JavaScript code is starting that it says that another JavaScript is starting. That’s a paradox. Therefore, we must tell him using some usual code that all browsers can understand. That is HTML. We will use a HTML tag to tell the browser that JavaScript code is starting, and to send it to the JavaScript compiler implemented in the browser:
Language attributeYou saw in our script that we used an attribute that specified the language, and the language version: ‘language=”JavaScript1.5”’. We talked earlier in this book about JavaScript versions, and now we’re already applying the stuff we talked about. In the tag in which we are declaring that the script is starting, we can declare, as an attribute, the version that we use. If we specify an older version, for example JavaScript 1.3, the syntax will be checked as with an older interpreter, so if you use functions that are implemented in version 1.4 or earlier, the browser will most probably throw an error, even if it supports version 1.5. Anyway, you’ll probably use the most recent version in your scripts, 1.5. Pay attention if you want to use the first version of JavaScript, you must not write:
Hidding JS from older browsersYes, this is about compatibility again. In the first days of JavaScript, when not all browsers had built-in support for understanding JavaScript, this code was very important. Now, because most of the browsers support JavaScript, and when I say most, I mean nearly every browser, you can safely discontinue using this improvised code. Let’s see how we can hide JS from old versions of browsers:
Script skeletonHere’s a very very very simple JavaScript script:
I call it very very very simple because it does nothing! Actually, this is just the skeleton that you must use every time you will write your script, except the comments, which we discussed earlier that are optional. You can write your script in an editor but it will do nothing. |
|||
Digg It!
Del.icio.us
Reddit
StumbleIt
Newsvine
Furl
BlinkList
|
|||
|
|||
Current Commentsi AM LOOKING ON WRITING SOME JAVASCRIPT BUT NEED A HELPING HAND IN THE RIGHT DIRECTION CAN YOU HELP?
OK, you can post on the forums or contact me by email.
your samples are just very simple, i need some difficults like accessing to the database..k? hop u wll.
Accessing a database using JavaScript? ... I don't think so :) Maybe you want JSP (Java Server Page) or try PHP.
Read this: <a href-"http://www.webreference.com/programming/javascript/j_s/column9/" target="_blank">http://www.webreference.com/programming/javascript/j_s/column9/</a>
gv
Hi! That\'s ok...But i\'am looking for new development tols in php programming and data base development by using MYSQL
hi im starting with java i dont know anyhting about it so if anybody that can help me n take time to help me or sen dme the codes i would be more then happy thnk u gefhf@yahoo.com email me if u can help me !
Hi....I am looking the the use of javascript in my project. I need to ise the javascript to control the subjects direction. For example I want the subject turn left or right when it meet the conditions.
Can u help? Thanks
Very interesting post. I like to share this post with my friends and book mark this interesting page. Keep it up.
I am so grateful to read this such a wonderful post.
I am so grateful to read this such a wonderful post.
This is a very long story... I started shooting photos about 12 years ago. On the beginning I did mostly skating photos - those were sport pictures of my friends skaters. Later on I decided that I want to spread my horizons and I passed exams to Polish National Film School. From that time I started thinking about photography much more seriously - I decided that one day I will earn for my living by shooting photos
I want to spread my horizons and I passed exams to Polish National Film School. From that time I started thinking about <a href="http://www.drdremonsterbeatsheadphones.com">dre headphone</a> photography much more seriously - I decided that one day I will earn for my living by shooting photos
I decided that one day I will earn for my living by shooting photos
I decided that one day I will earn for my living by shooting photos
I decided that one day I will earn for my living by shooting photos
<a href="http://www.christianlouboutinreplicacl.com/"><strong>christian louboutin replica</strong></a> or <a href="http://www.christianlouboutinreplicacl.com/"><strong>Christian Louboutin Knockoffs</strong></a> is one of the best choices for them to save money.Discount <a href="http://www.christianlouboutinreplicacl.com/"><strong>christian louboutin high heels</strong></a> online Sale with 60% off, And Christian Louboutin in 2011 new style hot sale,quality guarantee.
Acheter à prix moins cher les produits <a href="http://www.monclerfemme-france.com"><strong>moncler</strong></a> avec www.monclerfemme-france.com.com Nos offres bottes <a href="http://www.monclerfemme-france.com"><strong>doudoune moncler</strong></a> sont mises à jour quotidiennement pour acheter pas cher vos produits préférés. Profitez la grande marque <a href="http://www.monclerfemme-france.com"><strong>doudoune moncler femme</strong></a> de bonne qualité. <a href="http://www.monclerfemme-france.com"><strong>doudoune moncler homme</strong></a>, classique, longue et courte. Livraison rapide, paiement sécurisé. Nous vous remercions de votre visite et nous espérons votre prochain achat.
I recently came across your blog and have been reading along. I thought I would leave my first comment. I don't know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often.
Very nicely written post it contains useful information for me. I am happy to find your distinguished way of writing the post. Now you make it easy for me to understand and implement the concept
in comparison to spending twenty to thirty thousand on an original Swiss-designed model. In addition, your watch will have the same look and feel of a real watch, and you will have thousands of dollars in savings. This situation is ideal in the event that you need an impressive and stylish luxury timepiece from a world-class brand name, but are not in a position to afford to buy one.
This is good stuff. I just shared it on my FB page.
This is such a deep blog! What can I say, youve hit the nail right on the head! You even added some videos to make it seem so much more real. Youve got a great way of communicating with the reader, a great way of making me feel like what you have to say is just as important to me as it is to you. Keep it up!
thank u for providing me information on List View.
I want to know how i can display data in datalist in Newsletter layout and Thank you so much, this is easy to understand and fun to continue along with. I am a migrating VB.NET/C# Developer looking for an insight into VC .NET. I've found the VC tutorials on many sites to be confusing, and the navigation around the sites to be near impossible to use! Thanks once again.
Thanks a lot mate, I have been looking for this guide for a long time, thanks!
Thanks a lot mate, I have been looking for this guide for a long time, thanks!
Thanks a lot mate, I have been looking for this guide for a long time, thanks!
Thanks a lot mate, I have been looking for this guide for a long time, thanks!
Once you have recreated the problem and captured these steps, you can save them to a file and send it to your support person, who can then open it up and view
Hello.This post was really interesting, especially since I was browsing for thoughts on this topic last week.
Thanks a lot mate, I have been looking for this guide for a long time, thanks!
Hi there! Do you use Twitter? I'd like to follow you if that would be ok. I'm undoubtedly enjoying your blog and look forward to new updates.
<a href="http://selfservebacklinks.com">link building service</a>
Hi there! Do you use Twitter? I'd like to follow you if that would be ok. I'm undoubtedly enjoying your blog and look forward to new updates.
<a href="http://selfservebacklinks.com">link building service</a>
Your site always offer some really interesting information. Thank you for sharing it with us.
Good post....thanks for sharing.. very useful for me i will bookmark this for my future needs. Thanks.
Vous obtiendrez beaucoup de visiteurs à votre site Web de moi!
I enjoyed reading your articles. This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work!
Hi there! Do you use Twitter? I'd like to follow you if that would be ok. I'm undoubtedly enjoying your blog and look forward to new updates.
I like this post, enjoyed this one regards for posting .
I should really buy your book, I understood what you wrote and my knowledge of the HTML language is based on the little I learned in high school. JavaScript seems even harder, now that you told us there's a paradox involved.
Related Tutorials
Related Source Code
JavaScript Job Search