Questions tagged [object-tag]

`object` is an HTML tag. It is used to embed an object, such as applet or Flash, into a document.

object is an HTML tag. It is used to embed an object, such as applet or Flash, into a document.

The object is becoming less common as more and more functionalities can be implemented directly in HTML5 and JavaScript

117 questions
42
votes
5 answers

Is it ok for an HTML element to have the same [name] as its [id]?

I'm working on embedding a flash app in a webpage using the Satay method: I want flash to provide the…
zzzzBov
  • 174,988
  • 54
  • 320
  • 367
17
votes
5 answers

Is it valid to include images with instead of ?
Inspired by this question, where the poster casually states as fact that should be used instead of to embed images in HTML documents. I'm developing a web app at the moment, and, being a perfectionist, I try to make it all shiny and…
josh3736
  • 139,160
  • 33
  • 216
  • 263
16
votes
2 answers

Providing the Object tag with data directly

I wanted to embed a PDF file in my website, it looked like this: But then I wanted to first Get the file with ajax (in a javascript file), edit it's source code in…
H. Saleh
  • 554
  • 1
  • 5
  • 19
15
votes
2 answers

How to embed a Base64 encoded PDF data URI into a HTML 5 `` data attribute?
So in my application, users have the option to upload a file to an (HTML 5 File input). I can subsequently grab this file using the following Javascript: var files = $("#my-file").files; var file =…
kibowki
  • 4,206
  • 16
  • 48
  • 74
9
votes
2 answers

Read data in HTML object tag

I have a text file stored on the server and an object in HTML like this: How can I read the contents of test.txt in Javascript? What I have so far is: var data =…
rhynodegreat
  • 185
  • 1
  • 2
  • 5
9
votes
1 answer

jQuery SVG-object tag load event

I have a page which dynamically adds SVGs to the page via jQuery: grid.append($('') .load(function () { // do stuff alert('loaded') }) .attr({ id: 'tile', type: 'image/svg+xml', width: Math.round(tile_w), height:…
Euro
  • 618
  • 2
  • 8
  • 12
6
votes
0 answers

Prevent HEAD Requests for embedded objects in Internet Explorer

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 page embed a second page using an embed tag in order to…
5
votes
0 answers

Error handling loading pdf in object tag

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 some text rather than leaving a blank space when a pdf…
DeadEli
  • 983
  • 2
  • 13
  • 28
5
votes
1 answer

contents() in ?

I can access local contents loaded in an