View Full Version : JavaScript
Amanda
Jul 18th, 2001, 06:17 AM
:rolleyes:
Hi!
I have no clue as to how I am supposed to be using JavaScript in my coding, or if it is even necessary - last night I took out the rem code around the Script line in my HTML, and I ended up with a blank page in Explorer!! I am assuming that I need an external JavaScript file, but I don't know what for!
I know I can do a simple search and get tons of info, but anyone have a suggestion as to a really good, no-nonsense site that can fill me in on JavaScrip?? I hear so much about it, I am assuming that it is a must-have for a great site!
Just think - in a few months from now, when I am so much more informed about all this stuff - I'll probably look back and laugh at the simplicity of some of these questions myself!! :D
Thanks,
Amanda Ayles
ebizSolutions!
ebizsolutions@go.com
For your FREE e-bizWoman newsletter, email Amanda at awarren71@go.com!
Mr Chunder
Jul 18th, 2001, 06:47 AM
You can, in theory, live without javascript in your webpages.
However, the main feature of javascript is that it executes on the webbrowser of the user and not on the server so it can reduce round trips to the server.
e.g. to either perform some validation - checking that user has entered data correctly on a form but also it allows to make visual changes depending on what the user has done without going off to the webserver first e.g. you can copy user input from one textbox to another or add up numbers as someone types them in.
The combinations of things you can do are enormous and any website that requires some real interaction with the user (as opposed a simple brochureware site) will require javascript somewhere.
Javascript is normally located within the server side file e.g. htm, .php, .asp etc. i.e. a usual example would have a html file that contains script inline, embedded between the <SCRIPT> tags.
Often, you do not get involved in the ins and outs of javascript (I don't) but you can find scripts that do useful things for you.
There are lots of sites and none spring out as being brilliant but I'd suggest javascriptsource.com (from internet.com) as a start. There is a help page as well. Try also, scriptlocker.com
Tommy
Jul 18th, 2001, 07:00 AM
I think that maybe FrontPage is inserting some JavaScript into the page for something you've added. Frontpage will allow you to add sorts of whizzy features but will also add the code that does it, thats why it's better to hand code HTML.
If you stick to simple links and tables then there should be reason why JavaScript is used.
If you want paste the JavaScript into a post and we'll look over it for you (work restrictions permitting :)).
Amanda
Jul 18th, 2001, 09:00 AM
Thanks for the replies,
I'll be sure to check out the links recommended - thanks.
Tommy, there wasn't any JavaScript actually in my HTML code - just the <script..../script> line in the header section that FrontPage had generated (for whatever reason I'm unsure) and had also remmed out - me trying to "tinker" with it, I took out the rems to see what would happen! :D
Thanks again,
Amanda.
Tommy
Jul 18th, 2001, 09:14 AM
Amanda,
Tinkering with code is a very good way to learn HTML. And your lesson from last night is DON'T DO IT AGAIN! Just kidding :D
Personally I don't know JavaScript that well but I can tinker with it to get it to do what I want. I think JavScript is one of those scripting languages where not people bother to learn outright but can work with it when needed.
Tommy :)
Jaiem
Jul 18th, 2001, 02:20 PM
Tommy is correct about FP adding JS to your site, especially if you use FP extension services like shared boarders and themes. The problem can be that the JS you put in conflicts with the JS FP automatically adds.
When I have to put my own JS into an FP website I save the JS as a seperate file and FTP it on my own to the server. Then I use SSI to include the JS file into the website. FP ignores the SSI file so the JS runs as I want it to when the page is loaded.
newman9800
Mar 13th, 2010, 03:10 AM
Personally I don't know JavaScript that well but I can tinker with it to get it to do what I think that maybe Front Page is inserting some JavaScript into the page for something you've added. Front page will allow you to add sorts of features but will also add the code that does it, thats why it's better to hand code HTML.
_________________________________________________
Office Furniture (http://www.bucon.co.uk)
garadesafe
Mar 14th, 2010, 06:50 AM
http://img697.imageshack.us/img697/1807/eek.gif (http://bcyouthweek.com/gallery/g/4e6baa9b.html) Wow thats really interesting. Thnx for sharing.
marc8358
Mar 24th, 2010, 11:16 PM
Java script is used for validation in a web development page.Front page will allow you to add sorts of features but will also add the code that does it, thats why it's better to hand code embedded into HTML.
__________________________
Link Building (http://www.micrositez.co.uk/link-building-packages.html)
chris.klinton
Mar 30th, 2010, 10:13 PM
You are not giving information about in which language you have done your coding if it is in html then you can go with header and footer..
martinez7990
Apr 12th, 2010, 10:28 PM
I accept with information: It is compatible with all modern web browsers having enabled support for Java script.
___________________________________
Hotels Ballina (http://www.therocks.ie)
dikertrome
May 4th, 2012, 05:08 AM
JavaScript is the most famous scripting language on the internet, and works in all important browsers such as Internet Explorer, Firefox, Chrome, Opera, and Safari etc.
PHP Web Development (http://www.openxcell.com/php-website-development.html) | PHP Application Development (http://www.openxcell.com/internet-technologies/php-web-application-development.html) | PHP Developer India (http://www.openxcell.com/hire-developers-team-india/hire-developer-services/hire-php-developer-india.html)
Powered by vBulletin® Version 4.2.0 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.