Adding Javascript to PHP
Posted: Fri Oct 13, 2017 2:06 pm
My knowledge of WEB Page programming stopped at HTML, and I am very rusty at using that.
I am trying to create my own block to track the International space station (ISS).
I know there is a functioning plug in for this, but I wanted a block.
I am trying to insert this Javascript into a block called isstrack.php
The Javascript is:
<script type="text/javascript" src="http://www.satflare.com/export/xvsft.as ... "></script>
It works fin in HTML, but syntax for PHP eludes me.
I think I am missing defining the size of the output from the script, my block shows up, but only as a small band about one character tall.
I have created a few other blocks that work just fine, this one is kicking my butt!
Bob
I am trying to create my own block to track the International space station (ISS).
I know there is a functioning plug in for this, but I wanted a block.
I am trying to insert this Javascript into a block called isstrack.php
The Javascript is:
<script type="text/javascript" src="http://www.satflare.com/export/xvsft.as ... "></script>
It works fin in HTML, but syntax for PHP eludes me.
I think I am missing defining the size of the output from the script, my block shows up, but only as a small band about one character tall.
I have created a few other blocks that work just fine, this one is kicking my butt!
Bob