It is currently Thu Jun 20, 2013 12:56 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Sat Jul 15, 2006 12:25 pm 
 Post subject: Site changes - 07/15/06 - AJAX
Offline
Site Admin
User avatar

Joined: Tue Jan 24, 2006 2:04 pm
Posts: 1577
Location: Good old US of A
Hi all,
I've updated the site with a new feature I'd like to test. It's AJAX which is a first for me ;)
Anyway, it concerns the 'add to favorites' link. Previously, when you clicked it, the whole page reloaded and redirected you to the same image with the image marked as a fav.

Now, you can click the link and the image is added to your list of favorites on the fly, without having to reload the current page. I think this will make managing favorites a lot faster and reduce server load & bandwidth.

Since this is a new way of coding for me, let me know if you find and problems with it
Thanks! :D

_________________
e-shuushuu!
Image


Last edited by anonymous_object on Sat Jul 15, 2006 12:27 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Sat Jul 15, 2006 12:27 pm 
 Post subject:
Offline
Site Admin
User avatar

Joined: Tue Jan 24, 2006 2:04 pm
Posts: 1577
Location: Good old US of A
Oh, and if this new feature works out well, I may change other functions of shuushuu to work this way too (rating images, replying, etc). Suggestions on how to use AJAX are welcome.

_________________
e-shuushuu!
Image


Top
 Profile  
 
PostPosted: Sat Jul 15, 2006 1:08 pm 
 Post subject:
Offline
User avatar

Joined: Wed Jan 25, 2006 7:06 am
Posts: 313
Location: Belgium
Hello, I have problems with this function I put http://e-shuushuu.net/image.php?mode=vi ... e_id=26111 in my favorites. It displayed "Favorite: Image added as a favorite [Remove from favorites]" but after a refresh it displayed "Favorite: Add this image to my favorites!" again and it wasn't in "My Favorites" page.

I use IE 6.0.something and never had problems with other website using AJAX.
Edit : Doesn't seem to work with Firefox 1.5 neither
Edit 2 : I think the problem is in the httpreq file. It's certainly a stupid question but didn't you forget to open a sql connection ? I made this mistake the first time I tried to use this XMLhttprequest thing.

_________________
|[ Current projects : DoujinSuki | CF ]|


Top
 Profile  
 
PostPosted: Sat Jul 15, 2006 1:20 pm 
 Post subject:
Offline
Site Admin
User avatar

Joined: Tue Jan 24, 2006 2:04 pm
Posts: 1577
Location: Good old US of A
Roger that, I made a mistake when copying the files over from my dev environment to the live... should work now

_________________
e-shuushuu!
Image


Top
 Profile  
 
PostPosted: Sat Jul 15, 2006 1:24 pm 
 Post subject:
Offline
User avatar

Joined: Wed Jan 25, 2006 7:06 am
Posts: 313
Location: Belgium
Yes, it works great now :D


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
SubLite Theme By Echo -=Designs By Echo=- © 2007-2008 Echo
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group