I am writing a script that builds standings for my front page.
However, I do not want to make my front page a php page, only
HTML. I want to include a script inside a div that will load some
javascript document.write's that will do the job for me.
It will work like the standings on this site:
http://bakersfieldblaze.com
It has this HTML where the standings get shown:
<script language="JavaScript" src="http://146.145.120.3/aspdata/clients/milb-quakes/standings3.aspx?league=CAL"></script>
This aspx script returns this snipped code:
document.write('<table border="0" width="100%"
cellspacing="0" cellpadding="0"><tr><td width="40%"
class="TSN6">North</td><td width="15%" align="center"
class="TSN6">W</td><td width="15%" align="center"
class="TSN6">L</td><td width="15%" align="center"
class="TSN6">PCT</td><td width="15%" align="center"
class="TSN6">GB</td></tr>...</tr></table>');
I want my php script to do the same thing as that aspx script.
Do I need to do anything special? I currently have a script that
returns the HTML, but I want it to return the javascript instead.