Hi David I'm afraid I don't have access to a publicly accessible webserver that will do what I want but I've packaged something here:
http://cern.ch/mackepr/code.tgz phptest.php is the starting point. When called with no query string it will include form.php to format a wget query to a database. http://pb-d-128-141-129-170.cern.ch/~rasmack/phptest.php This will add a query string to the page like this http://pb-d-128-141-129-170.cern.ch/~rasmack/phptest?&idkey=8IF9dgaSMCE3U6u24YhB8TJGFnwSu0os which will let phptest.php know to download the appropriate xml-file and convert it to JSON with a python script. It then tells you that the data are retrieved and gives you this URL: http://pb-d-128-141-129-170.cern.ch/~rasmack/phptest?&idkey=8IF9dgaSMCE3U6u24YhB8TJGFnwSu0os&show=1 The "show" parameter tells it to include widget_setup.php and show.php which in turn run the timeline widget. I have included xml and JSON examples as well as the python conversion script. To re-state the problem, when I now see the timeline and click on an entry, it does not add the php query string. It just tries to load an URL that looks like: http://pb-d-128-141-129-170.cern.ch/~rasmack/phptest#22868 Horribly inelegant, I know, but I have written anything for the web in ~10 years, so right now I just try to do a proof of concept. Guess I should really do a proper DB query directly from javascript and then convert the result to JSON but *that* I have not the faintest idea how to do... ;-) Cheers, /Rasmus :-) PS: I have a test site here: http://cern.ch/mackepr/elog. That just runs off a static xml-file. A lot easier... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/simile-widgets?hl=en -~----------~----~----~----~------~----~------~--~---
