Why does the user home refresh when I add my script?

Facebook clone for Web
pbhuvanesh
Posts: 4
Joined: Fri Mar 04, 2016 12:50 am

Why does the user home refresh when I add my script?

Postby pbhuvanesh » Fri Mar 04, 2016 3:39 am

Why does the home page refresh when I add my own script?

Here is my script:
<!-- SCM Music Player http://scmplayer.net -->
<script type="text/javascript" src="http://scmplayer.net/script.js"
data-config="{'skin':'skins/aquaPink/skin.css','volume':50,'autoplay':false,'shuffle':false,'repeat':1,'placement':'top','showplaylist':true,'playlist':[{'title':'Piano','url':'https://www.youtube.com/watch?v=B2P7k_pHJ-k'},{'title':'DBZ','url':'https://www.youtube.com/watch?v=VPBrbhu6i7g'}]}" ></script>
<!-- SCM Music Player script end -->

Im trying to add this on my user home page. But when I do so the page keeps refreshing automatically. Expecting a quick reply.


Thanks in advance.

pandiyaraja
Posts: 14
Joined: Tue Oct 13, 2015 12:27 pm

Re: Why does the user home refresh when I add my script?

Postby pandiyaraja » Wed Mar 23, 2016 9:14 am

Hi pbhuvanesh

You want the player after login or before login?

Did you implement on separate html file?

It's works fine, you can move that code to buddyNet

pbhuvanesh
Posts: 4
Joined: Fri Mar 04, 2016 12:50 am

Re: Why does the user home refresh when I add my script?

Postby pbhuvanesh » Mon Mar 28, 2016 7:14 pm

Thanks for the reply Pandyaraj. I would like to load the music player after the login page. But unfortunately the wall(after login) keep refreshing. No I did not use a separate HTML file for this I added where the wall loads up.


Regards,
Bhuvanesh.


Return to “BuddyNet”

Who is online

Users browsing this forum: No registered users and 2 guests