Page 1 of 1

Need help on how to implement xajax in the admin part of my module

Posted: Tue Feb 09, 2010 10:44 pm
by Splynx
Hello guys and girls,

am making a small module - am listing some sql rows of data in the same style as page content list etc (alternating colors and hover).

Now I need to be able to move the sql entries up and down in the list, and saw that some xajax function is being used for this.

Want to do the same, but cannot find out where or how to add the javascript to the header.
(which looks like to be this line: $headtext = $xajax->getJavascript($config['root_url'] . '/lib/xajax')."\n";)

Built my module on the Skeleton module, and it's my first one. It is basically a module to create, edit, delete and manage a list of entries with 2 images locations, a title and a text area used for a XML output to talk to the flash on the frontpage displaying a carrousel or a coverflow (IgalleryX 2.0 from activeeden). And I want to be able to control the order of the output in the XML file as that determines the order of the images shown in the coverflow.

Am really in the dark about most of what I am doing when it comes to having my script properly interacting with the CMS core (I take it thats the name?)