View Issue Details

IDProjectCategoryView StatusLast Update
0001503HTML & PERLFeature Request - Interfacepublic2009-04-16 21:31
Reporterfahrenheit Assigned Tolrudor  
PrioritylowSeverityfeatureReproducibilityN/A
Status resolvedResolutionfixed 
Summary0001503: Add AJAX/sorting support to the "Add Anime Relation" page
DescriptionThis be the quest bestowed upon you (as in, what is needed):

Add AJAX support to the "Add Anime Relation" page, such support needs to follow these parameters:

* It must exclude already added relations (anime in the "Current" tab)
* It must exclude itself from the result list
* It must use the same structure of the result table used in the perl generated page
* Optionally it should support "info tooltips".

Adding sorting support to the "Current" table:

* Date, Anime A, Is - Of, Anime B, [Added By], are the sortable columns
Additional Informationexample url: http://anidb.net/perl-bin/animedb.pl?show=addseq&aid=1

useful stuff to know:

* ajax functionality is provided by js(-dev)/ajax.js (always loaded with every page).
* a simple sorting function is provided by js(-dev)/anidbscript.js
* a multi-purpose sorting (and more robust) function is provided by js(-dev)/anime3/utils.js (not loaded by default)

You can find out enough information to build the results table by using:
http://anidb.net/perl-bin/animedb.pl?show=xmln&t=search&type=animedesc&search=SEARCHSTRING (html encoded string as in spaces are converted to %20 etc, there's a core javascript function that provides this)

If you are using more than ajax.js and anidbscript.js you must test localy.
TagsAJAX, animepage, javascript

Relationships

child of 0001510 resolvedDerIdiot AJAX/JS Kanji search for creator guises doesn't work, missing AJAX version of some searches 

Activities

lrudor

2009-04-15 19:04

developer   ~0002698

Please take a look at js-dev/anime3/animerel.js

^^

fahrenheit

2009-04-16 21:30

reporter   ~0002703

it was mostly okay, your latest fix to use &type=animedesc&id= was wrong btw.

btw, use tabs instead of spaces (tab == 4 spaces btw).

And on the js header of the scripts use this:

"revision":"$Revision$",
"date":"$Date:: $",
"author":"$Author$"

instead of writing yourself the values, the svn will take care of filling in the right stuff when you commit.

Issue History

Date Modified Username Field Change
2009-04-14 17:46 fahrenheit New Issue
2009-04-14 17:48 fahrenheit Tag Attached: AJAX
2009-04-14 17:48 fahrenheit Tag Attached: animepage
2009-04-14 17:48 fahrenheit Tag Attached: javascript
2009-04-15 19:04 lrudor Note Added: 0002698
2009-04-16 21:30 fahrenheit Note Added: 0002703
2009-04-16 21:30 fahrenheit Status new => assigned
2009-04-16 21:30 fahrenheit Assigned To => lrudor
2009-04-16 21:31 fahrenheit Status assigned => resolved
2009-04-16 21:31 fahrenheit Resolution open => fixed
2009-04-17 11:22 nwa Relationship added child of 0001510