![]() |
|
|||||||
| JavaScript Programming Discuss javascript coding. |
| Have A Look At Some Of Our Webmaster Related Sponsors! | |||||
![]() Script Directory |
![]() Shopping Cart |
![]() Market Leverage |
![]() Free Templates |
![]() 3D Guide-characters |
![]() Advertise Here |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#2 (permalink) |
|
The Dev Hunter
|
We are experimenting with many Ajax features in sites that we build! It is a bit different but everyone better learn it because it will be around for awhile for sure!!
__________________
Website Launch l Bid for Position l Website Advertising l phpLD Template Blogl Bid for Top l WordPress Theme Blog |
|
|
|
|
|
#3 (permalink) |
|
New Hunter
Join Date: Dec 2007
Location: United Kingdom - Dorset - Bournemouth
Posts: 86
iTrader: 0 / 0%
Hunter Bux: 5.00
![]() ![]() |
I've just learnt rather a lot of it and I bluddy love it.
it's actually Extremely simple, like Javascript however, it's hard to pick up. But the actual process of it is simple and self explanitary!
__________________
<!-- I can type the entire Alphabet in 2.19 seconds --> /* (X/D)Html, Css, Javascript, Ajax, Xml (DTD), PHP, MySQL, E4X */ /* Learning C++ and German */ |
|
|
|
|
|
#4 (permalink) |
|
Senior Moderator
|
this forum uses ajax, try rating a thread and you'll see
__________________
Software | William R. Nabaza Blogs | U.S.$5 Domains | FriendTEK | Arcontica | Maypajo| www.sendload.net | Forums| Unfolds Videos | WebTor| Url Shortener| 25%discount| Free Hosting Blogs| | Web Directory| Weblord's Community| Freebies| Cash Surf | Funny Jokes | www.bloghaven.org | Videos | Videos |
|
|
|
|
|
#5 (permalink) |
|
New Hunter
Join Date: Dec 2007
Location: United Kingdom - Dorset - Bournemouth
Posts: 86
iTrader: 0 / 0%
Hunter Bux: 5.00
![]() ![]() |
I noticed!
I've just coded a massive load for a game I work for. All register forms and pages move through Ajax...It's sexy as hell lol
__________________
<!-- I can type the entire Alphabet in 2.19 seconds --> /* (X/D)Html, Css, Javascript, Ajax, Xml (DTD), PHP, MySQL, E4X */ /* Learning C++ and German */ |
|
|
|
|
|
#6 (permalink) |
|
Senior Moderator
|
hell can't be sexy i tell you that,
any previews?
__________________
Software | William R. Nabaza Blogs | U.S.$5 Domains | FriendTEK | Arcontica | Maypajo| www.sendload.net | Forums| Unfolds Videos | WebTor| Url Shortener| 25%discount| Free Hosting Blogs| | Web Directory| Weblord's Community| Freebies| Cash Surf | Funny Jokes | www.bloghaven.org | Videos | Videos |
|
|
|
|
|
#7 (permalink) |
|
New Hunter
Join Date: Dec 2007
Location: United Kingdom - Dorset - Bournemouth
Posts: 86
iTrader: 0 / 0%
Hunter Bux: 5.00
![]() ![]() |
Sure, I wrote this one to make pages load in a <div>:
Code:
function SearchForFile(){
var request_;
var browser = navigator.appName;
if(browser == "Microsoft Internet Explorer"){
request_ = new ActiveXObject("Microsoft.XMLHTTP");
}
else
{
request_ = new XMLHttpRequest();
}
return request_;
}
var josh = SearchForFile();
function LoadPage(url){
josh.open('GET', url, true);
josh.onreadystatechange = handleInfo;
josh.send(null);
}
function handleInfo(){
if(josh.readyState == 1){
document.getElementById('PageViewing').innerHTML = '<br /><br /><br /><center><img src=loading3.gif></center>';
}
if(josh.readyState == 2){
document.getElementById('PageViewing').innerHTML = '<br /><br /><br /><center><img src=loading3.gif></center>';
}
if(josh.readyState == 3){
document.getElementById('PageViewing').innerHTML = '<br /><br /><br /><center><img src=loading3.gif></center>';
}
if(josh.readyState == 4){
var response = josh.responseText;
document.getElementById('PageViewing').innerHTML = response;
}
}
__________________
<!-- I can type the entire Alphabet in 2.19 seconds --> /* (X/D)Html, Css, Javascript, Ajax, Xml (DTD), PHP, MySQL, E4X */ /* Learning C++ and German */ |
|
|
|
|
|
#9 (permalink) |
|
New Hunter
Join Date: Dec 2007
Location: United Kingdom - Dorset - Bournemouth
Posts: 86
iTrader: 0 / 0%
Hunter Bux: 5.00
![]() ![]() |
Using Ajax and Php together is one of the hardest parts of coding I've come upon.
Even though they are my two favourite coding languages, it was an effort and a half to put them together. Forms use the GET technique which is simple, but it's just getting it all together and making the database and php work with the ajax lol. I'll post an Ajax + Php script in a few days. :D:D
__________________
<!-- I can type the entire Alphabet in 2.19 seconds --> /* (X/D)Html, Css, Javascript, Ajax, Xml (DTD), PHP, MySQL, E4X */ /* Learning C++ and German */ |
|
|
|
|
|
#12 (permalink) |
|
New Hunter
Join Date: Dec 2007
Location: United Kingdom - Dorset - Bournemouth
Posts: 86
iTrader: 0 / 0%
Hunter Bux: 5.00
![]() ![]() |
Lol, When my site is finished, you can download some useful ajax stuff.
__________________
<!-- I can type the entire Alphabet in 2.19 seconds --> /* (X/D)Html, Css, Javascript, Ajax, Xml (DTD), PHP, MySQL, E4X */ /* Learning C++ and German */ |
|
|
|
|
|
#13 (permalink) | |
|
The Dev Hunter
|
Quote:
Devhunters may be releasing some Press about a script that people may want to have here very soon that has some Ajax feaures! Shhhhhh ![]()
__________________
Website Launch l Bid for Position l Website Advertising l phpLD Template Blogl Bid for Top l WordPress Theme Blog |
|
|
|
|
|
|
#14 (permalink) |
|
New Hunter
Join Date: Dec 2007
Location: United Kingdom - Dorset - Bournemouth
Posts: 86
iTrader: 0 / 0%
Hunter Bux: 5.00
![]() ![]() |
Ajax Form:
Code:
<script type='text/javascript'>
function Form(){
var ajaxRequest;
try{
ajaxRequest = new XMLHttpRequest();
} catch (e){
try{
ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try{
ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e){
alert("Your browser does not support Ajax!");
return false;
}
}
}
ajaxRequest.onreadystatechange = function(){
if(ajaxRequest.readyState == 4){
var ajaxDisplay = document.getElementById('result');
ajaxDisplay.innerHTML = ajaxRequest.responseText;
}
}
var name = document.getElementById('name').value;
var queryString = "?first=" + first;
document.getElementById('result').innerHTML="Loading...";
ajaxRequest.open("GET", "_example.php" + queryString, true);
ajaxRequest.send(null);
}
</script>
<form>
NAME: <input type="text" id="name" name="name"><br />
<input type="button" onClick="Form()" value="Submit"><br />
</form>
PHP Code:
__________________
<!-- I can type the entire Alphabet in 2.19 seconds --> /* (X/D)Html, Css, Javascript, Ajax, Xml (DTD), PHP, MySQL, E4X */ /* Learning C++ and German */ Last edited by Smiggy; 01-01-2008 at 08:28 AM. |
|
|
|
|
|
#15 (permalink) |
|
New Hunter
Join Date: Dec 2007
Location: United Kingdom - Dorset - Bournemouth
Posts: 86
iTrader: 0 / 0%
Hunter Bux: 5.00
![]() ![]() |
Anyone else into ajax? It's gone a bit quiet.
__________________
<!-- I can type the entire Alphabet in 2.19 seconds --> /* (X/D)Html, Css, Javascript, Ajax, Xml (DTD), PHP, MySQL, E4X */ /* Learning C++ and German */ |
|
|
|
|
|
#16 (permalink) |
|
Senior Moderator
|
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 request. HTML / XHTML and JavaScript is what it is comprised of. With AJAX, your JavaScript can communicate directly with the server, using the JavaScript XMLHttpRequest object. With this object, your JavaScript can trade data with a web server, without reloading the page. VERY USEFUL!! Last edited by SpOrTsDuDe.Reese; 01-06-2008 at 02:52 PM. Reason: a |
|
|
|
|
|
#17 (permalink) |
|
New Hunter
Join Date: Dec 2007
Location: United Kingdom - Dorset - Bournemouth
Posts: 86
iTrader: 0 / 0%
Hunter Bux: 5.00
![]() ![]() |
W3schools??
__________________
<!-- I can type the entire Alphabet in 2.19 seconds --> /* (X/D)Html, Css, Javascript, Ajax, Xml (DTD), PHP, MySQL, E4X */ /* Learning C++ and German */ |
|
|
|
|
|
#19 (permalink) |
|
New Hunter
Join Date: Dec 2007
Location: United Kingdom - Dorset - Bournemouth
Posts: 86
iTrader: 0 / 0%
Hunter Bux: 5.00
![]() ![]() |
I haven't but I learnt ajax and javascript on there site!
__________________
<!-- I can type the entire Alphabet in 2.19 seconds --> /* (X/D)Html, Css, Javascript, Ajax, Xml (DTD), PHP, MySQL, E4X */ /* Learning C++ and German */ |
|
|
|