Search found 4 matches
- Mon Oct 19, 2009 6:59 pm
- Forum: Feature Requests
- Topic: Linking Videos\Trailers
- Replies: 11
- Views: 6923
Re: Linking Videos\Trailers
The code doesn't work for me... I was able to call the function (tested with an alert) but not the method .replace().... it seems not working :? <head> ... <script language="JavaScript"> function encodeAmp(aLink) { aLink.replace('&','%26'); //doesn't work aLink.replace(' ','%20'); //no...
- Mon Oct 19, 2009 11:48 am
- Forum: Feature Requests
- Topic: Linking Videos\Trailers
- Replies: 11
- Views: 6923
Re: Linking Videos\Trailers
I didn't think outside of DVDpedia, but javascript should work well as you know the context, the link is for youtube. You could pass the link to a javascript function that replaces any "&" for "%26". <a href="javascript:encodeAmp(http://www.youtube.com...[key:title])&qu...
- Sun Oct 18, 2009 11:34 pm
- Forum: Feature Requests
- Topic: Linking Videos\Trailers
- Replies: 11
- Views: 6923
Re: Linking Videos\Trailers
DVDpedia has no sense of context when replacing the keys in a template, so it creates all of them for display, which is okay for a link as well, except in the case of the & character that should be %26 inside a link. I'll add that to the list of bugs, but I can't see a simple way to fix it. (Ok...
- Sun Oct 18, 2009 12:04 pm
- Forum: Feature Requests
- Topic: Linking Videos\Trailers
- Replies: 11
- Views: 6923
Re: Linking Videos\Trailers
This info view is really cool. However, I have some trouble when it looks up in Youtube with special characters like "&" in "The fast & the furious"... Is there a way to end up with a correct result page in Youtube even if there are special characters like this one in the...