Go to Post Different approaches to the same problem. Isn't it better to focus on understanding both than to be dogmatic about it? - Greg McKaskle [more]
Home
Go Back   Chief Delphi > Technical > IT / Communications
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 15-03-2011, 17:16
Nelson's Avatar
Nelson Nelson is offline
Lord of Engineering
AKA: Spock
FRC #3241 (Dragon Army)
Team Role: Engineer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Ogden, Ut
Posts: 36
Nelson is an unknown quantity at this point
AJAX links

Our team website has had AJAX into the code, and I was wondering if I could get some people to try the links and give feedback on how fast they are and any problems they encounter. I am pretty our programmer worked out all of the bugs, but double checking would be nice.

Thank you.
  #2   Spotlight this post!  
Unread 15-03-2011, 17:30
connor.worley's Avatar
connor.worley connor.worley is offline
Registered User
FRC #0973 (Greybots)
Team Role: Mentor
 
Join Date: Mar 2011
Rookie Year: 2010
Location: Berkeley/San Diego
Posts: 601
connor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond repute
Re: AJAX links

Everything seems to work well except the the browser's back button.
I use reallysimplehistory to handle this when working with AJAX. It's really easy to use.

Code:
window.dhtmlHistory.create();

var pageChangeListener = function (newLocation, historyData) {
    if (newLocation == "") {
        // Not accessing an AJAX page
        newLocation= "index";
    }
    // Load the page elsewhere (i.e. your programmer will need to implement this)
    loadPage(newLocation);
}

window.onload = function () {
    dhtmlHistory.initialize();
    dhtmlHistory.addListener(pageChangeListener);
    pageChangeListener(window.location.hash.slice(1));
};

Last edited by connor.worley : 15-03-2011 at 17:34.
  #3   Spotlight this post!  
Unread 15-03-2011, 23:16
colt527 colt527 is offline
Registered User
AKA: Ken Colton
FRC #0527
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Long Island
Posts: 123
colt527 is a splendid one to beholdcolt527 is a splendid one to beholdcolt527 is a splendid one to beholdcolt527 is a splendid one to beholdcolt527 is a splendid one to beholdcolt527 is a splendid one to beholdcolt527 is a splendid one to behold
Send a message via AIM to colt527
Re: AJAX links

Hey,

You guys have a nice looking site! Also good job getting the AJAX links working. They all seem to work fine for me in Chrome. While AJAX links might make the content load faster and make for a more seamless browsing experience, there are a few downsides to this approach that make it generally discouraged.

#1 was already mentioned, which is it causes the browser back button to become non functional. As was posted, there are work arounds for this.

#2 is that it negatively affects search engine indexing. The google crawler does not know how to crawl AJAX links. One way around this is to use a technique called progressive enhancement. For example, have all your links be in the normal <a href="URL"> format, and then have javascript that goes and binds the necessary events for turning those into pages loaded over AJAX. This means that you still need to have those pages exist at a real URL location. If you are using a content management system, this is a pretty easy tasks to accomplish. This will still allow the search engine crawlers (which have no javascript interpreting) to crawl and index all of those pages.

Just a few things to keep in mind and to weight against the benefits. PM me if you would like any more information on how to implement these
__________________
Mentor, Team 527 -- Plainedge Red Dragons
FIRST Volunteer
SUNY Stony Brook Computer Science 2010
kcolton@gmail.com
  #4   Spotlight this post!  
Unread 15-03-2011, 23:59
keehun's Avatar
keehun keehun is offline
Team Captain
AKA: Keehun Nam
FRC #2502 (EP Robotics)
Team Role: Leadership
 
Join Date: May 2008
Rookie Year: 2008
Location: Eden Priaire
Posts: 474
keehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond repute
Send a message via AIM to keehun
Re: AJAX links

Is AJAX really necessary? Really.
__________________
For by grace you have been saved through faith, and that not of yourselves; it is the gift of God, not of works, lest anyone should boast. -- Ephesians 2:8-9
2010: Quarter Finalist (MN 10,000 Lakes)
2010: Website Award (MN 10,000 Lakes)
2009: Quarter Finalist (MN 10,000 Lakes)
2009: GM Industrial Award (MN 10,000 Lakes)
  #5   Spotlight this post!  
Unread 18-03-2011, 00:35
Nelson's Avatar
Nelson Nelson is offline
Lord of Engineering
AKA: Spock
FRC #3241 (Dragon Army)
Team Role: Engineer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Ogden, Ut
Posts: 36
Nelson is an unknown quantity at this point
Re: AJAX links

It keeps the non robot programmer busy, and is cool.
__________________
http://www.thebluealliance.net/tbatv/teambadge/teambadge_gen.php?team=3241&start=000000&stop=0080  00
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 00:10.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi