jroehl
07-14-2010, 07:43 PM
I almost have the website finished, at least functionally (the complicated backend). It will arguably be one of the coolest history sites on the web.
But I am running into some technical problems, and want to ask you about them, as I am at a point where that is my only alternative.
First is in the website:
http://184.73.182.71/timelines/search2.fwx
There is the line:
Timeline.loadXML("http://184.73.182.71/14OZH01XY.xml", function(xml, url) { eventSource.loadXML(xml, url); });
This is loading an XML data file into the time-line, and it works fine. The question is, why cant I dynamically load this data from a process, like:
Timeline.loadXML("http://184.73.182.71/getdata.php?page=10", function(xml, url) { eventSource.loadXML(xml, url); });
It is returning the exact same thing, yet it dosent work.
Somebody suggested the following:
eventSource.loadXML(eventSource.loadXMLText(xmlstring,),"http://184.73.182.71/getdata.php?page=10");
But that dosent seem to work either.
And can I do the same thing with a script tag, such as:
<script src="http://184.73.182.71/getdata.php?page=10" type="text/javascript"></script>
Is this illegal?
Thanks in advance for looking at this.
But I am running into some technical problems, and want to ask you about them, as I am at a point where that is my only alternative.
First is in the website:
http://184.73.182.71/timelines/search2.fwx
There is the line:
Timeline.loadXML("http://184.73.182.71/14OZH01XY.xml", function(xml, url) { eventSource.loadXML(xml, url); });
This is loading an XML data file into the time-line, and it works fine. The question is, why cant I dynamically load this data from a process, like:
Timeline.loadXML("http://184.73.182.71/getdata.php?page=10", function(xml, url) { eventSource.loadXML(xml, url); });
It is returning the exact same thing, yet it dosent work.
Somebody suggested the following:
eventSource.loadXML(eventSource.loadXMLText(xmlstring,),"http://184.73.182.71/getdata.php?page=10");
But that dosent seem to work either.
And can I do the same thing with a script tag, such as:
<script src="http://184.73.182.71/getdata.php?page=10" type="text/javascript"></script>
Is this illegal?
Thanks in advance for looking at this.