API code problem
-
Hi there,
I am the administrator for Abingdon Hockey Club’s website, which we created on WordPress.com.
We manage our fixtures through FixturesLive, a system used by hundreds of different sports clubs internationally. The league tables generated by FixturesLive all come with individual HTML code which should allow you to add the league table to your webpage.
Here is an example of the code generated by FixturesLive for one of our teams’ league tables:
<div id=”fl” style=”width:500px;”><!– FL API data –></div>
<script language=”javascript” type=”text/javascript”>
<!–
var fPassKey = ”;
var fStartPage = ‘STATZONE_COMP:38029:1’;
–>
</script>
<script src=”http://www.fixtureslive.com/api/api.js”></script>I have successfully used the HTML code function of WordPress to embed external content elsewhere on our website (GoogleMaps).
However, when I add the above code to the page editing tool and then try to publish the page, the code disappears. Based on the WordPress FAQs I am guessing this is a JavaScript issue?Since being able to show a league table is a vital function for a sports club’s website, I am hoping you can help to provide a way around this problem?
Thanks for your help,
Natalie RingThe blog I need help with is: (visible only to logged in users)
-
Hi Natalie,
You’re right—it is an issue with the Javascript. To help keep everything safe, secure, and stable, we restrict the third-party code that is allowed to run on WordPress.com. (More about this is here)
We don’t offer support for FixturesLive at this time. I’m adding it as a feature request. If you know of other sports teams on WordPress.com that could benefit from this, please do have them contact us so we can better gauge how high the demand is for integrating it.
If you have any questions or need anything else, please let me know. Cheers!
- The topic ‘API code problem’ is closed to new replies.