Webmaster Key - Discussion Forums


Welcome, Guest. Please login or register.
Did you miss your activation email?
February 09, 2012, 05:56:48 AM

Login with username, password and session length
Welceome to Forums!

Important information for guests and new members:

In order to understand the full benefits of becoming an active member of this forum, please review the following information on guest and new member restrictions. These forum changes have been prompted by an overwhelming and unreasonable amount of bot postings and incoherent guest spam messages. We wish to prevent these events from happening in the future and make our community a more comfortable place for all of our members.

For guests:

Guests are not allowed to open new topics, polls, or posts attachments.
If you wish to open up new discussions on this forum, we encourage you to register.

For new members:

New members with less than five posts are not allowed to modify additional profile information such as avatars, contact information, biographies, and signatures. However, new members are encouraged to post their own topics or reply to topics initiated by other members. Become active on the forums and 5 posts should be an easy task!

We are a diverse community with members from all over the world. We encourage new ideas and interesting conversation. Do not be afraid to post webmaster/computer-related questions or problems, as our active members are always willing to help when they are able. Interested? Join us.

+ Webmaster Key Forums
|-+ Webmaster Corner
| |-+ Site Design and Web Authoring
| | |-+ What is Ajax?
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Stumble Upon! Digg It! del.icio.us! Add to Technorati! ReddIt!  Send this topic Print
Author Topic: What is Ajax?  (Read 1465 times)
Andy
Administrator
Veteran
*****
Posts: 5 752



« on: February 17, 2007, 03:47:52 PM »

I just discovered what Ajax is.

It is a way to combine PHP and Javascript so you can serve up dynamic content to your webpage that comes from your web server. Normally, you ask a visitor to enter information into a form and click on a submit button. Then you display a complete new page with the new information. But Ajax allows you to update content without refreshing the whole page content and avoiding the use of the submit button.

To implement Ajax you just need a php enabled web host and your visitors need to be using a modern browser that supports the client-side functionality. But that should not be a problem since the latest browsers are but a free click away.

At least, this is my basic understanding after a quick read of this tutorial: http://www.tizag.com/ajaxTutorial/index.php

After I cut and pasted their example code it worked as stated on the tin, so no complaints from me  Smiley
Report to moderator   Logged

Andy
Administrator
Veteran
*****
Posts: 5 752



« Reply #1 on: February 19, 2007, 02:30:17 PM »

Wow this is incredible technology! I am really into the concept of sharing resources between a web server and the client (your) browser.

You let people run complex sofware by simply browsing your site with no need for any browser plugins and they interact with your server-based data. The page does not completely reload like it does with the traditional submit button.

Here is a webcast showing off this technology: http://media.tibco.com/gi/gi32_webcast/index.html - this is over my head even though I am an experienced programmer but it does demonstrate how quickly a professional-looking web-based application can be developed when you are used to the tools at hand.

Luckily, the tutorial in the download is very easy to follow. It implements a form for looking up somebodies location in the US from their zip code.

I downloaded the software and worked through the first tutorial in Firefox. Post here if you have any problems getting it working. I missed a few things that you may get stuck with too such as using a local path to the starting web page and needing to download some plugin to support the debugging feature.

Get the software from: http://www.tibco.com/devnet/gi/product_resources33.jsp?tab=downloads - it's a free download as long as you don't need support.
« Last Edit: February 19, 2007, 03:04:36 PM by Andy » Report to moderator   Logged

Andy
Administrator
Veteran
*****
Posts: 5 752



« Reply #2 on: February 26, 2007, 01:31:32 PM »

I spent a few hours today working with the Tibco tool and learnt alot. But I don't see myself using it much since it makes heavy use of JavaScript which is hard to code with since you don't get the power of modern offline Integrated Development Environments (IDEs). This is important if you are designing/developing applications since you want to nail bugs as quickly as possible and have lightning fast development tools at you disposal.

The Tibco software is cool but when you have to type in Javascript code mostly by hand it is a bit off putting. However, they do have pre-written solutions to work from. So if you want to present web pages containing charts such as graphs and pie charts plus spreadsheet like information that your users can interact with, it is a very good solution. And you can interact with other web services such as post code look-up and maybe maps etc. The buzz word behind this is SOAP.

I also found out about DOM which is a way to interact with all the elements on a web page via JavaScript. What I really wanted to do was open an XML data file, get some user input and save the modified data back to the server. Unfortunately, I don't think it's possible to do this without using php or another server-side scripting language. I only managed to open data files. Not save them.
Report to moderator   Logged

Pages: [1] Go Up Stumble Upon! Digg It! del.icio.us! Add to Technorati! ReddIt!  Send this topic Print 
+ Webmaster Key Forums
|-+ Webmaster Corner
| |-+ Site Design and Web Authoring
| | |-+ What is Ajax?

Jump to:  
« previous next »


Our Partners
RelmaxTOP Ranking System Web Hosting RelmaxTOP Ranking System
Staff Sites
12Noon[12Noon Gallery] Andy[Urgentclick]
Tamuril[Tamuril's Digital Art Exhibit] Sensovision
Powered by MySQL Powered by PHP We are hosted by Relmax Inc. |Our Privacy Policy | Sitemap
Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC
Forum design by Tamuril © 2005.
Valid XHTML 1.0! Valid CSS!