We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Java Script Custom On Site | Forum

Topic location: Forum home » Support » General Questions
Bob Brown
Bob Brown Oct 3 '15
Hello,
When trying to add custom html that requires javascript such as on the users dashbaord. For example below.

This code below is used to place where you want it to display on a webpage such as "dashboard", in HTML of course.

<div id="cc_recenttracks_gymradio" class="cc_recenttracks_list">Loading ...</div>

Code below
<script language="javascript" type="text/javascript" src="http://localhost:port/system/recenttracks.js"></script>
is used to place under the </body> tag, however heres the problem, i've placed it in both right under that code in the box, but also tried in the "custom tail code" area and in fact it does display the data, but here's the problem the browser just continues to refresh and make request to the server, which could cause the server to time-out or shut down because of the multiple java request. Is there a way to fix this or add this in without that happening?
Regards,
Bobby
ross Team
ross Oct 3 '15
Topic was moved from Bug reports and troubleshooting.
tammy harris
tammy harris Oct 3 '15
first see if you can navigate to http://localhost:port/system/recenttracks.js
as the problem maybe you need allow it in htacess

riss aslos the problem of pasting a link here and then try type words after it keep extending the link lhttp://localhost:port/system/recenttracks.js like this the link just keeps going and going
Taissa Team
Taissa Oct 5 '15
Michael, first of all make sure that your code is valid.  Where did you take this code? 
Bob Brown
Bob Brown Oct 5 '15
Hello,

The code is valid I have it working on the dashboard, and it's a code from my media streaming server.

Regards,
Bobby
Taissa Team
Taissa Oct 7 '15
Michael, if you have already added this code:
<script language="javascript" type="text/javascript" src="http://localhost:port/system/recenttracks.js"></script>
to dashboard, you don't need to add it again to User dashboard. You just need to insert the rest of the code, without this line.