lunedì 10 dicembre 2007

Phedex widget

Componenti (server-side):

Data Source - www
config.xml --> QueryManager - PhedexNazgul.pl --> info.xml
info.xml --> PHPScript - PhedexPHP.php --> HTML

QueryManager:
Basically it must generate the URL for the image according to the graph characteristics in the XML - must loop on all the graphs in the XML.

Why not doing everything in js (~10 lines)?
-structure uniformity
-cleaner HTML client-side (php generated)
-no cross-browser XMLHTTPrequest issues

devo trovare un nome agli script php. Shadowfax (cavallo?). Perché non possiamo usare un altro libro che conosco meglio?

IDEA: usare XLST (da QueryManager in perl) per la traduzione config.xml --> info.xml. Così se la sintassi degli url di PhEDEx cambia devo cambiare solo il template.
Potrebbe non essere facilissimo, dato che c'è ramificazione dei contenuti a seconda del tipo di plot.

Nessun commento: