object-tag

How can I dynamically add an <object> tag with JavaScript in IE?

I have to add either an embed tag for Firefox or an object tag for Internet Explorer with JavaScript to address the appropriate ActiveX / Plugin depending on the browser. The plugin could be missing and needs to get downloaded in this case. The dynamically added embed tag for Firefox works as expected. The dynamically added object tag fo...

PHP Input validation for a single input for a url.

I have this very simple script that allows the user to specify the url of any site. The the script replaces the url of the "data" attribute on an object tag to display the site of the users choice inside the object on the HTML page. How could I validate the input so the user can't load any page from my site inside the object because I h...

Embedding Foxit PDF Reader into a webpage

I need to embed Foxit Reader (PDF reading software) into a web page. Does anybody know the correct classid and parameters to use in the following code: <object id="pdfReaderObj" classid="CLSID:XXXX" width="500" height="700"> <param name="Filename" value="/1234-56789-abc-123-3.pdf"> <param name="SRC" value="/1234-56789-abc-123-3...

Firefox 3.0.7 is crashing when embedding a PDF using the object tag.

I'm attempting to embed a PDF file into a HTML page using the object tag. The following HTML crashes Firefox 3.0.7: <object id="pdfObject40" type="application/pdf" data="/file.ashx?id=40" width="432" height="600"> <param name="src" value="/file.ashx?id=40" /> </object> I don't have a problem in Internet Explorer. ...

tabbed html application

I am writing a complex tab based web application where each tab is unrelated to each other in the sense that there is no interaction. So for ease of development i want I want each tab to be a separate html page viewable on its own and at later stage I can assemble them via tabs or may be menus or trees so question or questions are: I a...

Does Internet Explorer remove the <object> element from DOM?

I have markup in my page that includes the tag: <body> <object codebase="blah" codetype="text/blah"> <param name="name" value="value"/> <div>Some Markup</div> </object> </body> The idea is for browsers to display the content of the <div> by default, but if a special JS library is present, it will find all the elements an...

.Net Client DLL Delivery Question

I have a .Net DLL that I created that implements a WCF client that talks to a WCF service, allowing the end-user to pipe data to the server where the service resides. I use this DLL in client programs I developed for work, but now I wish to use this .Net DLL in a web page so the client can be delivered to an end-user on the net. ASP.Ne...

jQuery: contents() in <object type="text/html"></object> ?

Hi and thanks for reading, I can access local contents loaded in an <iframe> with $("#frame").contents().find('div').css(...) When using a <object type="text/html"> instead (same local site), the contents function does not work. Is there another way or did i miss something ? Here follows the test code : HTML : <!DOCTYPE HTML PUB...

What does the JS function 'postMessage()' do when called on an html object tag?

I was recently searching for a way to call the print function on a PDF I was displaying in adobe air. I solved this problem with a little help from this fellow, and by calling postMessage on my PDF like so: //this is the HTML I use to view my PDF <object id="PDFObj" data="test.pdf" type="application/pdf"/> ... //this actionscript live...

How to display video on html page in firefox

I did looked at this question, but the asker didn't got any reply. Still, I'm giving it a try. I want to embed a video file on a html page. The code works fine on IE but doesn't work on firefox. The code: <object id="WMPlay" width="640" height="480" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" codebase="http://activex.microsof...

Is it possible to change the file path of the video using javascript?

I have an object tag in a HTML file: <object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95"> <param name="FileName" value="../ABC/WildLife.wmv" id="mediaPlayerFile"> <param name="AutoStart" value="false" /> </object> I want to change the filename using javascript. What I have so far is this: <script type="text/javas...

IE attachEvent on object tag causes memory corruption

I've an ActiveX Control within an embedded IE7/8 HTML page that has the following event [id(1)] HRESULT MessageReceived([in] BSTR id, [in] BSTR json). On Windows the event is registered with OCX.attachEvent("MessageReceived", onMessageReceivedFunc). Following code fires the event in the HTML page. HRESULT Fire_MessageReceived(BSTR id,...

detect and parse embedded video in html?

I am working on a project which requires me to detect and extract the embed code of videos on a web page. I know the tag is used to embed videos, however, the specification says that it can also be used for other things like images. So how do i deterministically know that an tag contains a video within? or is there some other way to...

dynamically create object tags in javascript

I am wondering why the following code does not create two of my activex object. When the object tag is directly in the HTML it works fine, but for the life of me I can't dynamically create the object item. Is this a security issue or something? I am finding a difficult time finding documentation on this problem. <%@ Page Language="C#"...

Why does youtube etc use <object> and not <iframe>?

Why does youtube etc use <object> and not <iframe>? What are the advantages of object over iframe for this case? ...

Control animation framerate in the object tag?

Hello, I have a compiled flash animation (swf) embeded into a HTML document using the object tag. Question: There's a posibility to change the original SWF framerate using some params in the object tag? I don't have the source code (FLA). I want to decrease the framerate. Thank you for any help, <object classid="clsid:D27CDB6E-AE6D...