object-tag Questions

5

Inspired by this question, where the poster casually states as fact that <object> should be used instead of <img> to embed images in HTML documents. I'm developing a web app at the m...
Costotomy asked 2/5, 2012 at 3:12

2

So in my application, users have the option to upload a file to an <input type = "file" id = "my-file"> (HTML 5 File input). I can subsequently grab this file using the following Javascript: ...
Chromatid asked 15/7, 2015 at 21:27

2

Solved

I have a text file stored on the server and an object in HTML like this: <object id="data" type="text/plain" data="test.txt"></object> How can I read the contents of test.txt in Java...
Sirloin asked 16/4, 2016 at 1:28

2

Solved

I wanted to embed a PDF file in my website, it looked like this: <object data="data/PDFTest1.pdf" type="application/pdf" id="data"></object> But then I wa...
Columbarium asked 5/4, 2017 at 15:2

0

I am dynamically displaying a pdf with an object tag based on its name, so there is a chance that a name is added without the pdf getting added. I would like to handle that and at least display som...
Roadhouse asked 1/7, 2015 at 17:50

0

I am creating a website where my HTML will be embedded within a page that I have no control over. I would like my page to be rendered in IE9 standards mode. In order to do that, I have my first pag...
Comedo asked 27/11, 2013 at 20:0

1

I am trying to get the html inside an object respond to my postMessage, but I am unable to get the referencing correct. I've tried var object = $("#test_object").get(0).contentWindow; object.pos...
Snarl asked 12/12, 2012 at 0:34

1

I have a page which dynamically adds SVGs to the page via jQuery: grid.append($('<object>') .load(function () { // do stuff alert('loaded') }) .attr({ id: 'tile', type: 'image/svg+xml', ...
Hansom asked 26/8, 2012 at 19:24

5

Solved

I'm working on embedding a flash app in a webpage using the Satay method: <object type="application/x-shockwave-flash" data="embeddy.swf" id="embeddy" name="embeddy"> <param name="movie"...
Delois asked 8/11, 2010 at 20:57

3

Solved

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 missin...
Tarrel asked 11/11, 2008 at 15:39

1

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 fun...
Nomarchy asked 30/12, 2009 at 16:54
1

© 2022 - 2024 — McMap. All rights reserved.