Go Back   DevHunters.com l Webmaster Forum - Web Advertising - Web Design - SEO Forums > Webmaster / Coding / Web Design Discussion > JavaScript Programming

JavaScript Programming Discuss javascript coding.

Have A Look At Some Of Our Webmaster Related Sponsors!


Script Directory


Advertise Here


Market Leverage


Free Templates

3D Guide-Characters
3D Guide-characters


Advertise Here

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 09-05-2007, 12:59 AM   #1 (permalink)
Member
 

Join Date: Sep 2007
Posts: 1
iTrader: 0 / 0%
Hunter Bux: 0
microwave is on a distinguished road
Default HTML and JavaScript

I know that you can write using JavaScript but what is the difference between JavaScript and HTML, are those language but they are different do their uses differ JavaScript function will be executed. I know only one possibility when I write "on load" in body, but it is too early; I want it to be made later. I make table with some text - that is text1. Further I print some text with pup, but user input was made with error, so I want to change text1with JavaScript, because I can not print pup firstly and then that table.
microwave is offline  
Old 09-05-2007, 04:47 AM   #2 (permalink)
Member
 

Join Date: Jun 2007
Posts: 79
iTrader: 0 / 0%
Hunter Bux: 0
Albino is on a distinguished road
Default

by pup do you mean php?

HTML and JS are completely different. HTML is just a markup language, changing the way things look. javascript is an actual programming language, and you can do sums and stuff with it.

to change the text of a table, :

document.getElementById();

:)
__________________
want to unleash some anger? try http://erant.co.uk !
need some web work done? try http://munkydesigns.co.uk , we do flash/XHTML/CSS/PHP/MYSQL/AJAX for any budget!
cheshire home interiors
Albino is offline  
Old 12-27-2007, 10:59 AM   #3 (permalink)
New Hunter
 

Join Date: Dec 2007
Location: United Kingdom - Dorset - Bournemouth
Posts: 88
iTrader: 0 / 0%
Hunter Bux: 5.00
Smiggy will become famous soon enoughSmiggy will become famous soon enough
Send a message via MSN to Smiggy
Default

I get what you mean and Albino is correct. Javascript is for improving your site. You can make pop ups/sums/functions/tools etc. and later use it to go onto Ajax and dhtml.
If you want something to load later in the page then it's rather simple:

Code:
<script type="text/javascript">
function timer()
{
var t=setTimeout("alert('Your alert box')",10000);
}
</script>
</head>
<body onLoad="timer()">
An alert box will appear in 10 seconds.
You can change the time by editting the 10000 part. This is the timing of the event in milliseconds...I think.
</body>
</html>
Smiggy is offline  
Old 01-03-2008, 10:07 AM   #4 (permalink)
Senior Moderator
 
SpOrTsDuDe.Reese's Avatar
Default

Or. For example if you want the page to load before a Script is executed, Then you could put the (for example: alert box) after everything has loaded. In other words put it at the end of the code. It's much simpler then doing an onLoad timer for those who don't know it. + no Coding needed

Last edited by SpOrTsDuDe.Reese; 01-03-2008 at 10:07 AM. Reason: Added something
SpOrTsDuDe.Reese is offline  
Old 01-18-2008, 04:49 PM   #5 (permalink)
Field Master
 
ketum's Avatar
 

Join Date: Sep 2007
Posts: 152
iTrader: 1 / 100%
Hunter Bux: 0
ketum is on a distinguished road
Default

On the other hand, JavaScript would be worthless without HTML. HTML is the base of all websites.
ketum is offline  
Old 01-31-2008, 10:45 AM   #6 (permalink)
New Hunter
 

Join Date: Jan 2008
Posts: 14
iTrader: 0 / 0%
Hunter Bux: 0
Toicantien is on a distinguished road
Default

There are three basic tools that make up a Web page: HTML (document structure), Cascading Style Sheets (document style) and JavaScript/ECMA Script/JScript (document behavior).

Your HTML tags should describe the data in your Web page. Use appropriate class and id attributes to provide ways to style your page, and interact with it using JavaScript. Never include visual markup.

Your Cascading Style Sheets (CSS) contain all the style information.

The JavaScript contains additional behaviors that normal HTML cannot create. Your page should always be usable with just HTML and CSS. JavaScript should never be required to make the page usable. If it is, then your JavaScript needs to be rewritten. JavaScript adds functionality to an already functional page. It never creates basic functionality.

As mentioned earlier, JavaScript is a programming language interpreted by the browser. Through the use of the standard Document Object Model, the browser parses the HTML document to create a tree like structure of nodes that represents the HTML document. JavaScript can interact with this tree structure, which is often called the DOM. Browsers also parse the CSS and alter the DOM accordingly. JavaScript can also access the styles associated with the DOM, and alter the styles.

Think of lunch. Good design, in all its abstract goodness, is like bread. It holds your sandwich together. HTML is like peanut butter and provides a meaningful base to the whole thing. CSS is like jelly, because it adds some pizazz to the sandwich. Lastly, JavaScript is like a glass of milk. The sandwich is still plenty edible without milk, but sure as heck goes down easier with it.
Toicantien is offline  
Old 03-29-2008, 06:28 AM   #7 (permalink)
New Hunter
 
bitslinker.com's Avatar
 

Join Date: Mar 2008
Posts: 57
iTrader: 0 / 0%
Hunter Bux: 0
bitslinker.com is on a distinguished road
Default

Quote:
Originally Posted by microwave View Post
I know that you can write using JavaScript but what is the difference between JavaScript and HTML, are those language but they are different do their uses differ JavaScript function will be executed. I know only one possibility when I write "on load" in body, but it is too early; I want it to be made later. I make table with some text - that is text1. Further I print some text with pup, but user input was made with error, so I want to change text1with JavaScript, because I can not print pup firstly and then that table.
Hell of difference b/w them.

go to w3schools.com & study about em
bye
__________________
free web based proxy
http://www.fxan.net
Computer Tips n Tricks Forum
http://www.bitslinker.com
bitslinker.com is offline  
Old 05-22-2008, 02:11 PM   #9 (permalink)
New Hunter
 

Join Date: May 2008
Posts: 1
iTrader: 0 / 0%
Hunter Bux: 100.00
KaiyureBoy is on a distinguished road
Unhappy Brilliant, it works. Thank you

OK!!!!! It Does work, thank you for your kindless.
__________________________________________________ _______________________________

Angelina Jolie Johnny Depp Al Pacino Brad Pitt site Robert De Niro
KaiyureBoy is offline  
Old 05-22-2008, 02:49 PM   #10 (permalink)
Senior Moderator
 
SpOrTsDuDe.Reese's Avatar
Default

Look at the last time this had a posted comment. Don't post here. Thread locked.
__________________
+-(X)HTML, CSS, JavaScript, SEO, PHP, Flash-+
Code:
<style type="text/css"> u { text-decoration: none; } </style>
GameYin. Redesigning for DevPlooth.
SpOrTsDuDe.Reese is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT -5. The time now is 02:20 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios