What is the difference between javascript and AJAX?

1 Answer

Answer :

Javascript is a client-side language that runs in the browser. AJAX Is javascript that for the most part uses the XMLHTTPREQUEST object to grab snippets from a server. For example.. I have a website. I want some data. I will use AJAX to grab some data from a database. Then I plug that data into the site using Javascript. The user never has to reload the page. It is all real-time. This site is AJAX heavy.

Related questions

Description : How ajax event that occurs every one second affect the web page performance?

Last Answer : That’s what the ask-public chat does.

Description : How do you have Ajax requests fade in with jQuery?

Last Answer : I’m not entirely sure how you would do this in jQuery since I use Prototype, but my usual method is: 1) Load the content into a hidden container 2) onSuccess, fade in the hidden container housing the content I’m sure there’s a similar method in jQuery.

Description : Ajax beginner,need help!

Last Answer : Your page is ajax.html ... It isn't being run through the PHP interpreter. Rename it ajax.php and see what happens. This is assuming you are running a script on a PHP enabled server in ... 't work: file:///Applications/MAMP/htdocs/login/index.php This will: http://localhost:8888/login/index.php

Description : Ajax.PeriodicalUpdater update every second and work real time?

Last Answer : Sounds like you want a TimedObserver instead.

Description : ajax or dom image resizing

Last Answer : answer:Can’t you just set width: 400px; in CSS? (Of course, replacing 400px with your desired width)

Description : Ajax.PeriodicalUpdater — only update if the content has changed?

Last Answer : It’s been a while since I’ve written in Prototype, but what if you bound your own method for the onSuccess for the PeriodicalUpdater (instead of using the helper methods for updating the DOM); you could check for data coming back, and if there were data, then call update yourself.

Description : Ajax refresh in, guess what, IE.

Last Answer : answer:Are you using the XMLHttpRequest directly on purpose? I don't see anything wrong with your JavaScript in terms of the actual requests. However, you are declaring your response, responseold and ... t really test much more because you've got your numpa.js include commented out right now.

Description : I'm building an Ajax-based website, where do I start?

Last Answer : This is where I started when I learned AJAX.

Description : What is the difference between a modal and a popup?

Last Answer : A modal window requires the user to complete interation with it before allowing access back to the parent window. A plain old pop up window can just be a separate browser window that the user can ignore until later. I’ve seen popup blockers block both kinds.

Description : Executing JavaScript in a page retrieved using AJAX?

Last Answer : Would assigning the scripts in page B to an “onload” event handler not work? (I’m new to this, but that seems possible. Forgive my kneejerk response.)

Description : Dynamic content presented in Google _______ crawling isn’t normally indexed. a) AJAX b) Java c) Javascript d) All of the mentioned

Last Answer : AJAX

Description : Dynamic content presented in Google _______ crawling isn’t normally indexed. a) AJAX b) Java c) Javascript d) All of the mentioned

Last Answer : AJAX

Description : How can I add HTML markup to this ajax result?

Last Answer : Need Answer

Description : Why use ASP.NET MVC 4 over just HttpHandlers with JQuery Ajax?

Last Answer : answer:I'm not familiar with asp.net, so I'm not sure what it gives you, but a common problem with a single-page app using a lot of jQuery is that it can quickly become unmanageable, especially if ... you other questions, I'm a fan of using only as much as you need and your approach sounds fine.

Description : Does anyone (besides programmers) really like Ajax-based websites?

Last Answer : answer:I don't think non-programmers will know the difference, I think you should provide some specific sites. Gmail, for example, has links at the bottom basic HTML gives you the non-Ajax ... loads slower, but then everything speeds up because it's loading lots of stuff in the background.

Description : Why is aspen mountain called ajax by the locals?

Last Answer : Apparantly, at the base of the mountain is Ajax Tavern. But that could have been named after the mountain. You should go there and find out. It would be a nice vacation?

Description : What is the best way to learn AJAX?

Last Answer : If you're planning on learning AJAX for creating a websites (like this one), you should probably look into AJAX Libraries... which not only make AJAX easier to approach, but are also a great way to get started, because many have tutorials and documentation.

Description : Why is AJAX so popular all of a sudden?

Last Answer : answer:Well the technology has been around for some time. But now that bandwidth for many users has increased, and simplification in design has become popular, so has AJAX. Any time I can use AJAX to simplify the user experience or save on building a page, I try to use it.

Description : Learning AJAX / implementing easy AJAX on a new site

Last Answer : answer:First of all.. Don't use AJAX because you want to use AJAX. A good example of when it is proper to use AJAX is the great answer option here. There is no need to reload the entire page ... for that. And I will send you a link via the comments function with a lot of tutorials about AJAX.

Description : Tutorial on AJAX (XMLHTTPREQUEST)?

Last Answer : This might help. It is how I usually do it.

Description : Which is the best book on php and ajax?

Last Answer : answer:Hope these help. http://www.phpbuilder.com/columns/acorbelli_20080919.php3 http://www.w3schools.com/php/php_ajax_intro.asp http://netbeans.org/kb/docs/php/ajax-quickstart.html http://www.ibm.com/developerworks/web/library/wa-ajaxintro1.html

Description : Which team has a soccer team called Ajax?

Last Answer : Amsterdam

Description : Which of the following programming medium makes social networking widgets more prevalent than the past? A. HTML B. CSS C. JAVA D. AJAX

Last Answer : AJAX

Description : Which component of web 2.0 allow reloading a part of webpage without reloading the whole page a)Folksonomy b) Ajax c)Mash up d) RSS generated Syndication

Last Answer : Ajax

Description : Define what are the challenges in Handling Ajax Call in Selenium Webdriver?

Last Answer : The challenges faced in Handling Ajax Call in Selenium Webdriver are Using the pause command for handling Ajax call is not completely reliable. Long pause time makes the test unacceptably ... as such AJAX application often use different encoding or serialization technique to submit POST data.

Description : Ajax is one of the brand names of Colgate -Palmolive. Ajax bathroom cleaner, kitchen cleaner and window cleaner exemplify A)wholesaler branding. B)product brand marks. C)line family branding. D)individual branding

Last Answer : C)line family branding.

Description : Explain with neat diagram construction and working of Ajax Wyatt vertical core induction furnace.

Last Answer : Neat sketch of Ajax Wyatt' vertical core furnace: Construction of Ajax Wyatt' vertical core furnace: Vertical core type induction heating furnace is nothing but transformer. It consists of ... is utilized to melt the charge. Where, R = Resistance of charge & I secondary current.

Description : How do I make an HTTP request in JavaScript?

Last Answer : There are several ways to make an HTTP request in JavaScript, and the choice of which to use depends on the type of request you need to make and whether you want to use modern standards or not. ... .data)); Which option you choose will depend on your needs and which browsers you need to support.

Description : How can I become advanced in javascript in 2 months?

Last Answer : Study hard…work hard!!!

Description : How to add 2 buttons that do 2 things in JavaScript?

Last Answer : Can you share some code? Can probably get you on the right track here. To start, I'd double check whatever you're using to target the form and make sure it's right. Some common things might be ... sure it's not shared between both and make sure you're calling the right target for the right button.

Description : How do I simply repeat a line of code 4x in Javascript?

Last Answer : something like a for loop is pretty simple, and gives you a handy counter if needed. for(var i = 0; i < 4; i++) { forward(); }

Description : Help making a questionaire with javascript/html?

Last Answer : Are you familiar with Javascript? Are you using any type of framework like jquery?

Description : Any way to directly download an audio source file when the web page is using a javascript audio player (that doesn't use filenames like "x.mp3")?

Last Answer : Could try file2hd.com to see if you can find the resource.

Description : What's bugging my simple JavaScript toggle script?

Last Answer : answer:The toggle_visibility function specifies (eng, met), not (var1, var2), so it seems not to matter what order of parameters you send it, it's going to read (eng, met) always. function toggle_visibility(eng, ... = block'; } else { e1.style.display = block'; e2.style.display = none'; }

Description : How to make a javascript code between shortcodes showing in Wordpress?

Last Answer : answer:My guess is that Wordpress is stripping the javascript out. I found this: http://codex.wordpress.org/Using_Javascript

Description : Anyone here who is a good JavaScript coder or can recommend someone who is?

Last Answer : PMing you, @ETpro.

Description : How can I swap two integers without temporary variables using JavaScript code?

Last Answer : answer:This is a trick using the exclusive or operator ^ that was used when computers were short on memory. a = (a ^ b) /* a^b, b */ b = (a ^ b) /* a^b, a */ a = (a ^ b) /* b, a */ You can also do it using subtraction for numeric ... = a - b /* a - b, b */ b = b -a /* a-b, a */ a = b - a /* b, a */

Description : How to inherit a Javascript class?

Last Answer : answer:There is no such thing as classes or object-oriented programming when it come to Javascript. Are you sure you didn't mean Java? Java is a full programming language, developed by Sun. ... used to do thing like change the background color when you hover your mouse over a certain image.

Description : Why should I use JavaScript Library if it may effect the performance of a web site?

Last Answer : You might want to check out some extremely lightweight Javascript libraries such as xui, zepto, or jQuery Mobile. However, 17KB should not be a huge concern on iOS and Android devices. On phones with ... .example.com or mobile.example.com with minimal CSS, small page size, and no Javascript at all.

Description : How to implement a JavaScript code that doing "Set as my Home Page" in Google Chrome?

Last Answer : So, you’re saying the JavaScript code for doing this works in IE and Firefox, but not Chrome? That’s weird. Let me see if I can find a script for you.

Description : How can client-side Javascript determine the iOS version of an iPhone?

Last Answer : This sums up the atate of the art pretty well.

Description : What's more powerful, JavaScript or Python?

Last Answer : Python is server side. You use python to output HTML/CSS/Javascript that the browser interprets. Your browser doesn’t know what Python is.

Description : Is JQuery much slower than pure JavaScript ?

Last Answer : answer:You might be correct, there can potentially be more abstraction in JQuery with what you are doing when compared to pure JavaScript. But do note, JavaScript is client side based so it depends on your ... But if you are OK with the delay then keep using JQuery, if not, back to pure JavaScript.

Description : Has anyone ever created a timer using JavaScript?

Last Answer : answer:I think the easiest thing to do is just use an existing timer that uses 1,2,3,4 syntax and convert it to hh:mm:ss yourself. It should be a fairly straightforward conversion. You're basically just ... (I imagine there are also some existing conversions you can find, but I'd say just dive in).

Description : Name that Script. Can you help me find a JavaScript for this?

Last Answer : Sounds similar to a “Recently Viewed Items” script or module. However, you can also use a shopping cart module to set the items aside for review.

Description : Is there a code for CSS/Javascript to keep your contents in place when re-sizing a window?

Last Answer : Is your site fixed width?

Description : Which is the best javascript and actionscript editor?

Last Answer : if you have a Mac, Textmate, I use it for all my code. love it.

Description : How, in javascript/jquery, can I change what "this" refers to in an event handling function?

Last Answer : By using the call and apply prototype methods of Functions. For example: function example () { console.log(this); } example.call(window); this will be the window variable. example.call( a string'); this will ... 2'); Hope this helps. If you need any more help with this, feel free to just ask.

Description : Javascript help, please?

Last Answer : any ideas, anyone?

Description : Is Javascript the best way to go when doing a ... photography portfolio site?

Last Answer : Those are all very different technologies that don't really compare to each other. Actionscript is for Flash obviously, which I would not recommend for doing an entire web site in. HTML is the foundation of all ... here. Or you could of course just put them on Flickr and let them manage all of it.