Go
Not registered? Sign up!

encodeURIComponent stop working in 4.6

Google Translate
3 posts | return to the Bug Reports forum | get the rss feed for this thread

Oct. 19, 2009Raoul

So far I have used this js function with 4.4:

function newPly(nP,nF,iG) {
document.getElementById(nP).sendEvent('STOP');
document.getElementById(nP).sendEvent('LOAD',{file:encodeURIComponent(nF),type:'video',image:encodeURIComponent(iG)});
document.getElementById(nP).sendEvent('PLAY','true');
};


With 4.5 and 4.6 i need eliminate the encodeURIComponent(). It seems they prefer raw URIs, no matter if they are full of ?,=,&. My new function is:
function newPly(nP,nF,iG) {
document.getElementById(nP).sendEvent('STOP');
document.getElementById(nP).sendEvent('LOAD',{file:nF,type:'video',image:iG});
document.getElementById(nP).sendEvent('PLAY','true');
};


It´s a bug or a enhancement??

Oct. 19, 2009Raoul

I call this function from a link:

<a href="javascript:newPly('<?php echo $row['idvideo']?>','<?php echo html_entity_decode($row['urlvid'])?>','<?php echo $row['urlimg']?>')">Clik here for another video</a>

I need the html_entity_decode() php function because i need to save all my URIs with the htmlentities() function.

Oct. 25, 2009Zachary Ozer

Sorry, I'm not clear on what the problem is. Can you please restate your issue?

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.