answersLogoWhite

0

How is Ajax better than Javascript?

Updated: 8/11/2023
User Avatar

Wiki User

12y ago

Best Answer

For the most part Javascript is used to make web pages dynamic, move elements on the page, highlighting areas of the page, bringing in new content from the server, etc. There are other cases though like node.js where it's used as a server to make the web pages themselves. There are also a few cases outside of the web world where javascript can be used, some robotics, etc.

User Avatar

Wiki User

9y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

JQuery is a javascript library. It's extremely easy to use, and it abstracts away many of the browser compatibility issues present in javascript. Save yourself some time and give it a shot. Other libraries exist-- to name a few prototype, scripts.aculo.js, moo tools, and YUI.

Check out jquery's web page and some demos.

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

AJAX and Javascript refer to two different concepts.

AJAX stands for Asynchronous Javascript and XML -- it's how websites can load information from the server without refreshing the page.

Javascript is an entire client-side language that does a lot more than just client-server communication.

This answer is:
User Avatar

User Avatar

Wiki User

10y ago

Javascript, can be used to add 'interactivity' to otherwise boringly 'static' HTML web pages; HTML web pages do usually consist of a mixture of dull 'text/graphics' which doesn't move; instead, you just merely stare at it.

For example, when the web page loads you could automatically display a Javascript dialog output message:-

<body onLoad="javascript:alert('Thanks for visiting my web page!');">

Or, if a mouse event occurs such as a form button having been clicked on; then, a Javascript dialog alert message box might suddenly appear.

<form>

<input type="button" value="Click me" onClick="alert('Thanks for clicking!');" />

</form>

Javascript, may also be used to collect input directly from the web page user themselves; again, through the use of dialog boxes.

<script>

number=prompt("Enter a number","Type your number here...");

alert("You typed: " + number);

</script>

As well as, using Javascript to interact with the user through various dialog box messages; it's also possible to get Javascript to write code directly into the web page itself...

<script>

document.write("Hello, world! From Javascript");

</script>

These are all extremely simple 1 or 2 line examples of Javascript code. Using multiple lines of Javascript code; then, it's actually possible to play Javascript games/create and run animations/-etc.

Here is an example of a Javascript program using multiple lines of code...; all this program does is output the 7 times tables:-

<script>

var timesTablesNumber=7;

for (var x=1; x<=12;x++){

document.write(x + " X " + timesTablesNumber + " = " + x*timesTablesNumber + "<br />");

}

</script>

...if you wish the above Javascript program to output a different number times tables; then, change where it says: 7...to become some other number, instead; such as: 8.

Most people start out by learning to write extremely simple 1 line Javascript programs; and, then, over time progress on to learning how to write much longer programs, instead; possibly, consisting of many 10's/or, even 100's of lines of Javascript code. In order to be able to achieve doing that, though; takes much time, effort, patience, practice.

The really good thing about attempting to learn Javascript coding now-a-days is there are many FREE tutorials available online; some of which it's even possible to follow along and do 'interactive' coding...by running the program you wrote...then, viewing the actual output results, immediately, right away...all from inside of your web browser itself. See below for a list of links...

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

javascript is usefull vebpage

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How is Ajax better than Javascript?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering
Related questions

Which is better java or Ajax?

you mean JavaApplet or Ajax? I do not think you can compare java as a whole and AJAX. Ajax is a simple implementation of JAvascript .


What does Ajax use for the processing that is done on the browser?

Javascript. AJAX stands for Asymmetric Javascript And XML


Is Ajax better than Corinthians?

Corinthians is wy better than ajax


What is the meaning of the name Ajax?

AJAX stands for Asynchronous JavaScript and XML.


How do you use javascript in aspnet?

Ajax, I believe uses JavaScript + ASP.


What programming language was Gmail developed in?

Html, javascript, ajax


Can you add Ajax requests in Ajax server page?

If you add javascript to the server page then it is possible. But it would be bad programming practise. Ideally the ajax requests should be on an external javascript file and that should be referenced by a client side page.


What does acronym Ajax stand for?

AJAX is shorthand for Asynchronous JavaScript and XML (Extensible markup language). Ajax allows continued interaction with the server while not requiring a page to be manually refreshed to display new data.


What is the default serialization used for ASPNet Ajax calls?

JavaScript Object Notation


What has the author Nicholas C Zakas written?

Nicholas C. Zakas has written: 'Professional JavaScript for Web developers' -- subject(s): Web site development, JavaScript (Computer program language), OverDrive, Computer Technology, Nonfiction 'Javascript Para Desarrolladores Web/javascript for Web Development (Anaya Multimedia)' 'Professional Ajax' -- subject(s): World Wide Web, JavaScript (Computer program language), Asynchronous transfer mode, Web sites, Ajax (Web site development technology), Design, Computer programs, Authoring programs, OverDrive, Computer Technology, Nonfiction 'Maintainable JavaScript' 'JavaScript and Ajax Wrox Box'


What set of frameworks or libraries would you use for creating an Ajax web application?

There's no debate that JavaScript is the most widely used language client-side on the Web. We are using JavaScript for everything, from form validations to full Ajax applications. Client side java script (CSJS) Frameworks/Libraries for creating an Ajax web applications:ReactJSAngularJS.ReactJSAngularJS


Tell you about asynchronous JavaScript and XML?

I do not know in depth. But using the Asynchronous Javascript and XML HTTP Request one can easily access the concept of AJAX. simply ajax is an technique of many technologies such as Javascript, XMLhttprequest, css and dom. Take the new registration of E- mail id when you are a new user. You can suggest an user name by this technique.