embed

Reloading embed PDF in a DIV (empty Accrobat Reader error popup)

Hello, I have a web application coded in C#/ASP.NET. The application basically exports a PDF file when the user click on Save. It then reloads a DIV, putting the EMBED (with the src pointing to the newly generated pdf file) in it. Sometimes the embed area just gets black and I get this window from Acrobat Reader: http://img180.imagesh...

How to embed PDF in a web page using Acrobat Reader instead of Acrobat.

I have a pdf form that uses Acrobat 8 features. The form contains Javascript that interacts with the hosting web page. Some of my Windows users have both Adobe Acrobat and Acrobat Reader installed, and need Adobe Acrobat to be the default handler for pdf files. The users with Adobe Acrobat 7 are unable to use the form, even though they ...

Embedding cg shaders in C++ GPGPU library

I'm writing a GPGPU Fluid simulation, which runs using C++/OpenGL/Cg. At the moment, the library requires that the user specify a path to the shaders, which is will then read it from. I'm finding it extremely annoying to have to specify that in my own projects and testing, so I want to make the shader contents linked in with the rest. ...

Can't play wav file from Javascript in Firefox for Mac

I have the following html file that plays a wav file when the user hovers over the 'Play' anchor tag. It works perfectly on IE, Chrome, Firefox, Opera, Safari on both Windows and Mac - except for Firefox on the Mac which does not play the file. We know the file type is supported because if the autostart attribute of the embed tag is se...

Best way to store parameter data for lazy loading videos in the form of embed/object elements?

As of now on my results page there are ~20-30 embed elements: <embed width=420 height=240 src=http://something.swf?foo=bar&amp;baz scale="noscale" type="application/x-shockwave"> I was thinking along the lines of something like defining an object and populating it as such: window.videos = []; <div class="video-1 video-"> <script>vi...

Problems with tk85.dll when shutting down an application that embeds the Python interpreter.

My C++ application embeds the Python interpreter, but seems to be having some trouble when it shuts down. Right after the main window closes, I get a segmentation fault (this is Windows, but we'll call it a segmentation fault anyway). The stack trace is below: #0 102AD580 tk85!Tk_MainWindow() (C:\Users\... 1.3\bin\Debug\lib\tk85.dll:??)...

What's the best way to offer javascript embed that won't slow a page down?

I have a chunk of javascript that users can copy and paste to put on their sites. I'm currently using the following code (ala WEDJE) that allows the rest of the page to load even if my script is slow or not responding. <script type="text/javascript"> var number = "987654321"; var key = "123abc"; (function(){ document.write('...

Embed Youtube video in asp.net

Hey everyone, I have a textbox where users can enter the link to a YouTube video. I'd like to have an <object> on my page which gets populated with the YouTube video. I tried accessing an <object> from the codebehind (with runat=server) set to true, but I couldn't. Thanks for any help ...

Embedding a YouTube Video Based on a PHP Variable

I have a website that I am creating for a class project. The website shows information about bands (which is stored in a mysql database). I am trying to spruce up the site a bit, and I would like to embed a YouTube video based on the band's name. Say, for instance, I have "Led Zeppelin" stored in my database. How can I take a PHP variabl...

Is there a legal way for me to embed the Calibri font into a website for non Windows Vista/7 visitors?

I would like to use Calibri for my website. I would like to use the Calibri font for my website even when the visitor does not have the font installed (ie. non Windows Vista/7 visitors). Does Microsoft allow embedding of the Calibri font into a Web Site? If so, what technology do they allow this? EOT? Thanks. ...

Flash CS4 compiler Error 1120 when embedding pngs into class instance variables.

I have a Flash CS4 (Flash 9 ActionScript 3.0) project that compiles and runs perfectly on my machine. However it is part of a big batch of fla's that I want to compile on another (faster) machine. When I copy the project (the fla and all actionscripts and assets files) to the faster machine, it's Flash CS4 compiler gives me compiler erro...

how to embed WMV files in my html file

Hi, i have made some demo movies in WMV format that i want to embed in my html page. I've found some code to do that, but one thing annoys me: it shows a black front in stead of a picture of the first frame. And i can ofcourse put some descriptive text around the frames/movies, but it isn;t such a nice sight: all black squares with a pl...

how to embed flash that is trying to access xml in it's original folder.

I've got various flash files stored on my server. For this exmaple - here is the directory structure: Files > Example > -> example.swf -> example.xml So then on a separate webpage stored in the root of my server.. i'm embeding the flash. ... <param name="movie" value="http://www.example.com/Files/Example/example.swf"&gt; ... N...

Is it possible to specify an image in a wxHtmlWindow that is contained within the executable?

I would like my executable to be self-contained. However, the wxHtmlWindow uses an image and it would be nice if the image could be stored inside the executable. Can this be done, and if so how? ...

Why does only youtube embeds work on iPad?

I am trying to find out as to why youtube embeds works just fine on iPad, and not the embeds of any other video site. Example of youtube embed: <object width="640" height="385"> <param name="movie" value="http://www.youtube.com/v/DlIU5TgwEFg&amp;color1=0xb1b1b1&amp;color2=0xcfcfcf&amp;hl=en_US&amp;feature=player_embedded&amp;fs...

How to Include an xml file from a silverlight class library into the xap file.

I have a certain config.xml file in one of my projects (Silverlight class library) in a folder in the solution. It's build action is set to content. In that same project I am trying to load the xml file by saying: XDocument xml = XDocument.Load("/config.xml"); This unfortunately is not working. Upon inspecting the xap file, I see that...

Embed form in another website - pitfalls

Scenario: We provide a hosted site that clients pay to use internally (a tool to support their business workflow). We have a requirement to provide a form that the clients can 'embed' in their outward facing site. This form will permit a member of the public to enter some details to register an interest - this data will be pushed to o...

Youtube player JavaScript API, player position problem

Hi, I am using Youtube's JavaScript API to embed Youtube player into my site. The problem is that it appears on the top of all elements. I have read couple previous answers about setting "wmode" to "transparent" or "opaque", but it doesn't seem to work or it's either me doing something wrong, anyways here is my code: var params = { all...

Best Youtube embed player sizes?

I use tumblr to share videos and, unfortunately, when re-posting a video to your tumblelog it uses the embed code at 400x336px. This is neither widescreen nor very large. So I'm trying to set the player to better size and I'm finding that the youtube player really comes in many sizes. For example, when copying the embed code for and HD ...

How do I configure Tinymce to allow embed tags when editing html?

I would like users to be able to copy and paste embed tags for videos (youtube, vimeo, etc) into the html editor of tinymce. I've tried every solution I can find on the internet - however tinymce always strips out any embed tags in the video embed code when I press update in the html editor. Here is my current tinymce init script: t...