Copy link to clipboard
Copied
Hi all,
My client needs to paste embed code from Vimeo into a Web app field. The problem I'm running into is that the & bits of code are being changed to regular & symbols - which breaks the link. I can't figure out anyway around this off the top of my head. Thoughts?
Use more modern plugins such as prettyPhoto and all you ever have to provide it the URL and will work for youtube and vimeo as well as images, flash and more. Custom field - URL - Sorted
Copy link to clipboard
Copied
The best way we found is to generate embed links using jQuery directly from a Vimeo URL.
So the client pastes the Vimeo URL (Rather than the embed) then the jQuery creates a clean embed code.
You can then setup your markup so the video displays how you like and it's really easy for the client.
Copy link to clipboard
Copied
The problem is the web app needs to be able to accept either YouTube or Vimeo embed codes. On top of that, I'm running the result in Shadowbox. Not sure my Javascript comprehension is high enough to write what you described.
Copy link to clipboard
Copied
You can set the jQuery to handle Youtube and Vimeo separately. Alternatively if you use prettphoto (instead of Shadowbox) it automatically embeds youtube and vimeo straight from the URL. Might be an easier route if it's going to pop-up anyway.
Copy link to clipboard
Copied
Use more modern plugins such as prettyPhoto and all you ever have to provide it the URL and will work for youtube and vimeo as well as images, flash and more. Custom field - URL - Sorted
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Ah, good to know! Thanks to you both.