Results 1 to 15 of 15
Thread: JavaScript and AJAX
-
01-07-2011, 05:52 AM #1
JavaScript and AJAX
I would like to how much JavaScript & AJAX can effect the performance of a website and many people prefer to use AJAX rather than using flash slide shows? What are your views about it/
-
02-07-2011, 07:07 AM #2
Sophomore
- Join Date
- Jul 2010
- Location
- punjab
- Posts
- 118
- Thanks
- 0
- Thanked 0 Times in 0 Posts
- Feedback Score
- 0
Hi..
JavaScript is an easy-to-use programming language that is common on Web pages. It can enhance the dynamics and interactive features of your site with small amounts of code.
Ajax (Asynchronous JavaScript and XML), is a group of inter-related Web development techniques (including JavaScript, PHP, among others) used for creating interactive Web applications.
-
04-06-2011, 08:46 AM #3
Junior
- Join Date
- Apr 2011
- Posts
- 332
- Thanks
- 0
- Thanked 2 Times in 2 Posts
- Feedback Score
- 0
In my point of view AJAX is a part of javascript program where as javascript is a client side programming language.
AJAX is use to send query to the server where as javascript is use for designing the menu,different types of animation etc......
-
04-19-2011, 09:07 PM #4
Freshman
- Join Date
- Mar 2011
- Posts
- 31
- Thanks
- 0
- Thanked 1 Time in 1 Post
- Feedback Score
- 0
Does not matter how cool or stylish the animation and graphics because search engines have no eyes,
so any content written to screen using flash is basically invisible to them.
Google at present cannot index any images from inside a flash slideshow or associated text descriptions making it harder for anybody to find your site on the web. Javascript by contrast can be read by google, not just inside the page but external .js files as well. So this makes javascript more attractive for SEO purposes, JS also requires no special tools to write or compile and all the scripts are free.
It is posibble to overdo the amount of javascript in a page to the point where performance suffers, but it tends to be a newbie designers mistake and there are ways of avoiding it happen. For many years the big arguement between Flash and javascript was that flash did better animation but is no longer the case.
-
04-20-2011, 01:55 PM #5
Freshman
- Join Date
- Apr 2011
- Posts
- 4
- Thanks
- 0
- Thanked 0 Times in 0 Posts
- Feedback Score
- 0
Hello,
AJAX is asynchronous javascript and xml. Use of javascript and ajax in your website your website is look like a professtional and very attractive in internet.javascript as linear code is synchronous, as any linear code .using javascript you can add many of the functionality in your application. the javascript/dhtml eventing model made javascript asynchronous a long long time ago .It is the javascript (API) to make the function call to the ActiveX API, i.e., the javascript merely initiates the function call and passes the needed parameters.
-
08-17-2011, 06:40 AM #6
Banned
- Join Date
- Aug 2011
- Posts
- 20
- Thanks
- 0
- Thanked 0 Times in 0 Posts
- Feedback Score
- 0
Using JavaScript technology, an HTML page can asynchronously make calls to the server from which it was loaded and fetch content that may be formatted as XML documents, HTML content, plain text, or JavaScript Object Notation (JSON). The JavaScript technology may then use the content to update or modify the Document Object Model (DOM) of the HTML page. The term Asynchronous JavaScript Technology and XML has emerged recently to describe this interaction model.
Ajax is not new. These techniques have been available to developers targeting Internet Explorer on the Windows platform for many years. Until recently, the technology was known as web remoting or remote scripting. Web developers have also used a combination of plug-ins, Java applets, and hidden frames to emulate this interaction model for some time. What has changed recently is the inclusion of support for the XMLHttpRequest object in the JavaScript runtimes of the mainstream browsers. The real magic is the result of the JavaScript technology's XMLHttpRequest object. Although this object is not specified in the formal JavaScript technology specification, all of today's mainstream browsers support it. The subtle differences with the JavaScript technology and CSS support among current generation browsers such as Mozilla Firefox, Internet Explorer, and Safari are manageable.
What makes Ajax-based clients unique is that the client contains page-specific control logic embedded as JavaScript technology. The page interacts with the JavaScript technology based on events such as the loading of a document, a mouse click, focus changes, or even a timer. Ajax interactions allow for a clear separation of presentation logic from the data. An HTML page can pull in bite-size pieces to be displayed. Ajax will require a different server-side architecture to support this interaction model. Traditionally, server-side web applications have focused on generating HTML documents for every client event resulting in a call to the server. The clients would then refresh and re-render the complete HTML page for each response. Rich web applications focus on a client fetching an HTML document that acts as a template or container into which to inject content, based on client events using XML data retrieved from a server-side component.
-
08-18-2011, 06:22 AM #7
Banned
- Join Date
- Jun 2011
- Location
- Parma, Ohio
- Posts
- 43
- Thanks
- 0
- Thanked 0 Times in 0 Posts
- Feedback Score
- 0
JavaScript is an easy-to-use programming language that is common on Web pages. It can enhance the dynamics and interactive features of your site with small amounts of code.
One reason for the rapid adoption of AJAX is that no additional software is needed since AJAX make use of what the clever designers of Javascript
have already built into internet browsers.
-
08-25-2011, 12:23 PM #8
Freshman
- Join Date
- Apr 2010
- Posts
- 38
- Thanks
- 0
- Thanked 1 Time in 1 Post
- Feedback Score
- 0
As JavaScript runs from the client computer its execution time is very short, almost instantaneous. Viewers can run JavaScript without being connected with the server as well. But in Ajax, viewers must be connected to the server. Here execution time is much longer which depends on their internet connection speed, server hardware and number of bytes to be transferred between client side and server side.
Since AJAX can use database its application area is much wider.
-
01-04-2012, 11:54 PM #9
Freshman
- Join Date
- May 2011
- Posts
- 12
- Thanks
- 0
- Thanked 0 Times in 0 Posts
- Feedback Score
- 0
How to organize Javascript and AJAX with PHP?
My javascript is getting out of hand for my PHP application. I have 20 tags that link to various javascript files in a javascript folder. Each javascript file basically controls one element on the DOM. And, if the javascript file uses AJAX, then it will have a corresponding PHP file that the AJAX will call.
For example, a js file might control a button on the page:
As you can see, this gets out of hand. What is the best way to organize all of the javascript?$(document).ready(function () {
$("#button").live('click', function() {
$.ajax({
type: "POST",
data: ...
url: "button_click.php",
});
});
});
-
01-05-2012, 01:38 PM #10
I want to know AJAX but now I think I don't want it anymore for its so hard.
-
01-06-2012, 01:56 AM #11
Junior
- Join Date
- Jan 2012
- Posts
- 149
- Thanks
- 0
- Thanked 2 Times in 2 Posts
- Feedback Score
- 0
AJAX is a bit more complicated than normal JavaScript, but its uses are great. With the ability to autoreload certain pieces of websites without having to reload then entire page, it makes interactivity of websites easier and more appealing than when you have to constantly wait for the page to reload each time.
-
01-12-2012, 01:52 AM #12
Freshman
- Join Date
- Jan 2012
- Posts
- 12
- Thanks
- 0
- Thanked 0 Times in 0 Posts
- Feedback Score
- 0
use slide show and jquery for process
-
02-04-2012, 04:56 AM #13
Sophomore
- Join Date
- Dec 2011
- Posts
- 119
- Thanks
- 0
- Thanked 0 Times in 0 Posts
- Feedback Score
- 0
JavaScript is a wonderful technology to use on the web. It is not that hard to learn and it is very versatile. JavaScript is a prototype-based scripting language. Ajax is a technique for creating interactive web applications. AJAX stands for Asynchronous JavaScript and XML. It is used for allowing the client side of an application to communicate with the server side of the application.
-
02-17-2012, 01:43 AM #14
Freshman
- Join Date
- Jan 2012
- Posts
- 17
- Thanks
- 0
- Thanked 0 Times in 0 Posts
- Feedback Score
- 0
-
02-21-2012, 08:43 AM #15
These days javascript Use in web pages ,Mostly use for Images sliders and Images Galleries. its use for functionality and ajax use parallel purpose .but Java and Ajax Use are mostly Same ...
Similar Threads
-
What is JavaScript & AJAX?
By amelisametis in forum JavaScript & AJAXReplies: 1Last Post: 12-27-2010, 11:45 AM -
A Basic AJAX Demo Application Using PHP And JavaScript
By JavaScriptBank in forum JavaScript & AJAXReplies: 0Last Post: 12-02-2010, 12:54 AM -
Passing Result from PHP to JavaScript with AJAX & jQuery
By JavaScriptBank in forum JavaScript & AJAXReplies: 0Last Post: 10-21-2010, 12:48 AM -
Javascript + CF XML Integration w/ AJAX
By Abina in forum ColdFusionReplies: 1Last Post: 01-31-2010, 10:42 AM -
AJAX, DHTML and JavaScript Libraries
By Amit.Verma in forum Web Development - Programming & CodingReplies: 3Last Post: 08-19-2008, 01:18 AM


Reply With Quote

