You are viewing an archived version of the site which is no longer maintained.
Go to the current live site or the Adventure Gamers forums
Adventure Gamers

Home Adventure Forums Misc. Feedback Reviews index ajaxified


 
 
LinkBack Thread Tools
Old 08-15-2005, 07:41 PM   #1
Friendly Server Admin
 
tabacco's Avatar
 
Join Date: Sep 2003
Location: Marin County, CA
Posts: 4,087
Default Reviews index ajaxified

Just a heads-up for anyone who cares... the reviews page no longer has a iframe. Everything is now taken care of using AJAX (which updates the content without having to refresh the page). W00t.
tabacco is offline  
Old 08-15-2005, 08:03 PM   #2
merely human
 
Intrepid Homoludens's Avatar
 
Join Date: Sep 2003
Location: Chicago
Posts: 22,309
Default

Much better! Thanks, tabs.
__________________
platform: laptop, iPhone 3Gs | gaming: x360, PS3, psp, iPhone, wii | blog: a space alien | book: the moral landscape: how science can determine human values by sam harris | games: l.a.noire, portal 2, brink, dragon age 2, heavy rain | sites: NPR, skeptoid, gaygamer | music: ray lamontagne, adele, washed out, james blake | twitter: a_space_alien
Intrepid Homoludens is offline  
Old 08-16-2005, 12:17 AM   #3
The Threadâ„¢ will die.
 
RLacey's Avatar
 
Join Date: Jan 2004
Location: United Kingdom
Posts: 22,542
Send a message via ICQ to RLacey Send a message via AIM to RLacey Send a message via MSN to RLacey Send a message via Yahoo to RLacey
Default

My irrational loathing of frames is sated .
__________________
RLacey | Killer of the Threadâ„¢

I do not change to be perfect. Perfect changes to be me.


RLacey is offline  
Old 08-16-2005, 06:36 AM   #4
fov
Rattenmonster
 
fov's Avatar
 
Join Date: Sep 2003
Location: San Francisco
Posts: 10,404
Default

Err... I kind of liked the frame...

*runs*
fov is offline  
Old 08-17-2005, 04:55 AM   #5
Magic Wand Waver
 
Fairygdmther's Avatar
 
Join Date: Sep 2003
Location: Sarasota, Florida
Posts: 3,142
Send a message via MSN to Fairygdmther
Default

Looks good and is easy to navigate! You need to fix the title on Salammbo - it got mucked up, though.

Lynsie
__________________
Nothing can bring you peace but yourself.
Ralph Waldo Emerson
Fairygdmther is offline  
Old 08-17-2005, 06:45 AM   #6
fov
Rattenmonster
 
fov's Avatar
 
Join Date: Sep 2003
Location: San Francisco
Posts: 10,404
Default

Thanks for the heads up. I went to fix it but it's correct in the database. Apparently whatever Doug did doesn't like the ô with the little hat on it.
fov is offline  
Old 08-17-2005, 07:12 AM   #7
Diva of Death
 
Jeysie's Avatar
 
Join Date: Aug 2005
Location: Western Massachusetts
Posts: 1,402
Send a message via MSN to Jeysie
Default

Erm. I get the feeling I'm missing something... when I click on the letters or sort links, nothing happens. I can't get anything other than the first page of reviews to load.

I'm running Opera 8.01 with javascript enabled, if that helps.

Personally I'd rather just have one plain, boring ol' list, but maybe that's just me... can someone tell me what the link is to the "All" version so I can just bookmark that?

Peace & Luv, Liz
Jeysie is offline  
Old 08-17-2005, 07:14 AM   #8
Super Moderator
 
Dale Baldwin's Avatar
 
Join Date: Sep 2003
Location: Southampton, UK
Posts: 3,139
Default

It does seem somewhat less responsive than the old iframe version.
__________________
Now Playing: Catherine, Sword and Sworcery:EP
Recently Completed: The Witcher
Dale Baldwin is offline  
Old 08-17-2005, 07:43 AM   #9
Friendly Server Admin
 
tabacco's Avatar
 
Join Date: Sep 2003
Location: Marin County, CA
Posts: 4,087
Default

Quote:
Originally Posted by Jeysie
Erm. I get the feeling I'm missing something... when I click on the letters or sort links, nothing happens. I can't get anything other than the first page of reviews to load.

I'm running Opera 8.01 with javascript enabled, if that helps.

Personally I'd rather just have one plain, boring ol' list, but maybe that's just me... can someone tell me what the link is to the "All" version so I can just bookmark that?

Peace & Luv, Liz
Hmm... apparently opera doesn't support AJAX properly. Figures. I'll see what I can do later tonight.
tabacco is offline  
Old 08-17-2005, 07:45 AM   #10
Friendly Server Admin
 
tabacco's Avatar
 
Join Date: Sep 2003
Location: Marin County, CA
Posts: 4,087
Default

Quote:
Originally Posted by Dale Baldwin
It does seem somewhat less responsive than the old iframe version.
Shouldn't be. The same basic thing is taking place under the hood, in that you click a link, Javascript forms a URL, requests the URL, loads a new page, and then your browser renders it. The only difference is that instead of the html returned being dumped into an iframe, it's being dumped into a div.
tabacco is offline  
Old 08-17-2005, 07:55 AM   #11
Super Moderator
 
Dale Baldwin's Avatar
 
Join Date: Sep 2003
Location: Southampton, UK
Posts: 3,139
Default

Maybe I'm just being impatient with it and/or my router's having a hissy fit with the number of connections the reviews list opens (requesting the large number of ratings stars).

I've never played with the page this much before.
__________________
Now Playing: Catherine, Sword and Sworcery:EP
Recently Completed: The Witcher
Dale Baldwin is offline  
Old 08-17-2005, 07:57 AM   #12
Friendly Server Admin
 
tabacco's Avatar
 
Join Date: Sep 2003
Location: Marin County, CA
Posts: 4,087
Default

Well, to make it a little clearer I added a "Loading..." message that will appear while the request is happening. That way it won't seem like you click and nothing happens if the request is slow.
tabacco is offline  
Old 08-17-2005, 09:52 AM   #13
fire breathing
 
BenjaminBunny's Avatar
 
Join Date: Jun 2004
Location: New England
Posts: 514
Default

I love you Tabacco. *hugs AG web master*
__________________
~Tranquility is beyond form, it cannot be grasped and held. It is beyond sound but perhaps within sound, yet it cannot be heard. It cannot be seen yet it lies in everything we see.~
BenjaminBunny is offline  
Old 08-17-2005, 11:31 AM   #14
SamNMax
Guest
 
Posts: n/a
Default

Thank you! Those frames were pretty annoying.
 
Old 08-17-2005, 08:00 PM   #15
Friendly Server Admin
 
tabacco's Avatar
 
Join Date: Sep 2003
Location: Marin County, CA
Posts: 4,087
Default

Okay, here's your nightly Opera Update:

Opera does not support xmlHttpRequest.overrideMimeType(), along with several other methods of xmlHttpRequest. It would seem that for 8.0 the Opera developers implemented only the methods needed to make gmail work, and nothing more. This == bullshit. End result, I got it working in Opera, but reordering the list causes the page background to go white. That's pretty much how it's going to stay, unless some enterprising Opera user wants to dig through our Javascript and find a solution. Sorry to leave it at that, but Opera represents <3% of our browser share, and I have lots of other stuff to get done

For the truly bored:

function xmlhttpPost(strURL, strSubmit, strResultFunc) {
var xmlHttpReq = false;
// Mozilla/Safari/Opera/Everything other than ****ing IE
if (window.XMLHttpRequest) {
xmlHttpReq = new XMLHttpRequest();
//xmlHttpReq.overrideMimeType('text/xml');
}
// IE
else if (window.ActiveXObject) {
xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlHttpReq.open('POST',strURL,true);
xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xmlHttpReq.onreadystatechange = function() {
if (xmlHttpReq.readyState == 4) {
strResponse = xmlHttpReq.responseText;
switch (xmlHttpReq.status) {
case 404:
alert('The server returned a 404 on ' + strURL);
break;
case 403:
alert('The server returned a 403 on ' + strURL);
break;
default:
if (strResponse.indexOf('Error:') > -1 || strResponse.indexOf('Debug:') > -1) {
alert(strResponse);
} else {
eval(strResultFunc + '(strResponse);');
}
break;
}
}
}
xmlHttpReq.send(strSubmit);
}

Last edited by tabacco; 08-17-2005 at 08:13 PM.
tabacco is offline  
Old 08-18-2005, 12:39 PM   #16
SamNMax
Guest
 
Posts: n/a
Default

... Oh.
 
Old 08-18-2005, 03:50 PM   #17
Diva of Death
 
Jeysie's Avatar
 
Join Date: Aug 2005
Location: Western Massachusetts
Posts: 1,402
Send a message via MSN to Jeysie
Default

Thank you. Considering that 1. the important bit works, 2. Opera's been improving their xmlHttpRequest support with each new version anyway, and 3. you didn't tell me to flip off and download a different browser, I'm pretty happy.

Peace & Luv, Liz
Jeysie is offline  
Old 08-18-2005, 03:53 PM   #18
Friendly Server Admin
 
tabacco's Avatar
 
Join Date: Sep 2003
Location: Marin County, CA
Posts: 4,087
Default

Well, don't get me wrong, I still think you should get a better browser
tabacco is offline  
Old 08-18-2005, 04:02 PM   #19
Diva of Death
 
Jeysie's Avatar
 
Join Date: Aug 2005
Location: Western Massachusetts
Posts: 1,402
Send a message via MSN to Jeysie
Default

If there was a better browser to get, I would.

Seriously, Firefox is all right, but I'd have to download a ton of extensions to get all the stuff I'm used to in Opera, so I can live with the (very) occasional rendering quirk. Plus IE and FF both run rather like molasses on my creaky old computer.

Not to mention that Opera supports pretty much everything else (all the W3C standards, at any rate)...

I'm an "Anything but IE" sort of person, anyway.

Peace & Luv, Liz

Last edited by Jeysie; 08-18-2005 at 04:19 PM.
Jeysie is offline  
 




 


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.