AJAX v Javascript

Discussion forum for MOD Writers regarding MOD Development.
Locked
User avatar
Creomire
Registered User
Posts: 174
Joined: Thu May 31, 2007 4:27 pm
Location: Bonnie Scotland
Contact:

AJAX v Javascript

Post by Creomire »

Hi,

I am in the process of moving my mod to the next stage, which is the look and feel (as opposed to the php side of things).

I love one click functionality, and for my mod there will be a lot of data to show. I don't want multiple page loads for this data, so it's either AJAX or Javascript.

I like Javascript, because I can get everything loaded into the html. I can then overlay multiple divs and then use the display attribute to set them invisible. With onClick javascript functions, I can then show whichever data is requested.

The downside to me is obvious, page load and bandwidth.

AJAX, as you know, will do pretty much the same thing, only it retrieves the data and builds the html on demand (ie with each click).

The downside of AJAX, is that maybe the server request is missed for some reason. Then it doesn't work.

I'm thinking that in this day and age, the downside to javascript is becoming less and less of a problem, because we have broadband internet, and most web hosts are offering very generous bandwidth packages.

What are your thoughts, mod authors? 8-)
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 26938
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Re: AJAX v Javascript

Post by Paul »

Ajax is javascript ;)
Knock knock
Race condition
Who's there?

My BlogMy Photosmy phpBB Extensionscustom phpBB work & Development
User avatar
Creomire
Registered User
Posts: 174
Joined: Thu May 31, 2007 4:27 pm
Location: Bonnie Scotland
Contact:

Re: AJAX v Javascript

Post by Creomire »

paul999 wrote:Ajax is javascript ;)
Are you serious? Or are you meaning that Ajax is the best way to use Javascript?
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 26938
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Re: AJAX v Javascript

Post by Paul »

Creomire wrote:
paul999 wrote:Ajax is javascript ;)
Are you serious? Or are you meaning that Ajax is the best way to use Javascript?
When you want to use Ajax you write it in javascript, Ajax isnt a language ;)
Knock knock
Race condition
Who's there?

My BlogMy Photosmy phpBB Extensionscustom phpBB work & Development
User avatar
Creomire
Registered User
Posts: 174
Joined: Thu May 31, 2007 4:27 pm
Location: Bonnie Scotland
Contact:

Re: AJAX v Javascript

Post by Creomire »

AJAX

Javascript

Whilst AJAX uses Javascript, it is a technique in it's own right.
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 26938
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Re: AJAX v Javascript

Post by Paul »

It isnt, its just normal javascript, with a small name. Nothing else, and nothing special.
Knock knock
Race condition
Who's there?

My BlogMy Photosmy phpBB Extensionscustom phpBB work & Development
User avatar
Creomire
Registered User
Posts: 174
Joined: Thu May 31, 2007 4:27 pm
Location: Bonnie Scotland
Contact:

Re: AJAX v Javascript

Post by Creomire »

paul999 wrote:It isnt, its just normal javascript, with a small name. Nothing else, and nothing special.
OK, Paul. I made it clear in my original post that I'm debating whether to call scripts on demand or build the html and show it on demand. If you don't have an opinion on that, then that's fair enough.

I'll toss a coin or something, it seems it'll be easier that way. 8-)
hsiehstanley83
Registered User
Posts: 142
Joined: Sun Feb 11, 2007 8:08 am

Re: AJAX v Javascript

Post by hsiehstanley83 »

Paul, if ajax is javascript, then why are there two names, ajax and javascript. Instead of just one?
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 26938
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Re: AJAX v Javascript

Post by Paul »

hsiehstanley83 wrote:Paul, if ajax is javascript, then why are there two names, ajax and javascript. Instead of just one?
Ajax is written in Javascript, its just a funky name for something. Nothing else.
Knock knock
Race condition
Who's there?

My BlogMy Photosmy phpBB Extensionscustom phpBB work & Development
User avatar
p4plus2
Registered User
Posts: 140
Joined: Sat May 26, 2007 5:06 am

Re: AJAX v Javascript

Post by p4plus2 »

from w3schools wrote:AJAX stands for Asynchronous JavaScript And XML.

AJAX is a type of programming made popular in 2005 by Google (with Google Suggest).

AJAX is not a new programming language, but a new way to use existing standards.

With AJAX you can create better, faster, and more user-friendly web applications.

AJAX is based on JavaScript and HTTP requests.
My lo-fi version of phpbb MOD

Help the Dial up users, give them a chance! :D
Locked

Return to “[3.0.x] MOD Writers Discussion”