Go
Not registered? Sign up!

External playlist: page to top on click

Google Translate
3 posts | return to the JavaScript Interaction forum | get the rss feed for this thread

Mar. 25, 2009Venom

Hi,

I'm using the external JS playlist seen here: http://home5.inet.tele.dk/nyboe/flash/mediaplayer4/JW_API_xmpl_5-2-1-0.html

The problem I have is, when I click on any link, the movie loads, but the page goes to top (like if I have long page, I'll have to scroll back down to see the video). Is this normal, or can I fix it?

Mar. 25, 2009Venom

The problems disappears if I use

href="javascript: xxx"

instead of href="#" onclick="xxx"

Strange.

But of course, I'd prefer to use "#", so if anyone has a clue, shoot.

Nov. 05, 2009Catwashere

Your probleme is that the web page is trying tu find the anchor with a null tag, that why the page go to top when you make the click, but there's a solution, you can do

href="javascript:void()" onclick="xxx"

Add a reaction

You can also return to the category or try this search for related threads.


 

Search the Forums

Go

Support

Support Here are some helpful links to learn more about the JW Player™:

Monetize Your Video

Monetize Your Video Earn money with ads from LongTail's AdSolution. Watch our demos and sign up now!

Why Buy a License?

Why Buy a License? If you don’t buy a commercial license, you cannot use a JW Player™ on (i) a site that has ads; (ii) a corporate site; or a (iii) CMS. Our licenses are very inexpensive, so what are you waiting for? Buy a license today.