473,804 Members | 4,181 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using the object tag in IE

>From the book I am using as a reference I understood that applet tag
was deprecated, but googling for information, and testing myself, it
seems IE does not work properly with this new object tag. So my effort
reading about the object tag was for nothing? Is there no way I can
make this work for IE and Mozilla?

<HTML>
<HEAD>
</HEAD>
<BODY BGCOLOR="FFFFFF ">
<CENTER>
<object classid="java:A wtCalcApplet.cl ass"
archive="AwtCal c.jar"
type="applicati on/x-java-applet"
codebase="."
width = "220"
height = "150" >
I do not have any object that is why I display this text
</object>
</CENTER>
</BODY>
</HTML>

Dec 9 '05
30 2518
On 12/12/2005 12:02, VK wrote:

[snip]
Leaving out that Java applets (not applications!) is mainly dead
technologie:
'Dead' isn't the right word. Like other third-party technologies,
including Flash, not everyone will have it, so expecting it to work
reduces the size of your audience.
<object> for Java is *very bad* because it implies a particular JVM to
use.
For IE, perhaps.
In the mixed environment (IE / others) it often happens that IE
uses much more effective Microsoft JVM
The Microsoft JVM? Now that /is/ dead. Recent versions of Windows won't
have it installed, anyway. Microsoft no longer continue to develop it,
and advise everyone that has it to migrate to something else. It is also
quite possible that the MSJVM will be too old to support a more recently
written applet (I'm not going to write one to check).
and "others" have to function under Sun plugin.
And that something else is likely to be the Sun Microsystems JRE.
More over "others" may have Sun plugin of one version and your
<object> will imply another version.
For browsers other than IE, there is no implied version. Certainly not
with the code I suggested. Moreover, IE will be instructed to use the
latest version, whatever that might be.

[snip]
It caused in the past several major virus-like epidemies across
Java-users: you have plugin 1.3.0, applet object codebase implies
1.3.1, it downloads 1.3.1, breaks your 1.3.0 plus make it default VM
for Microsoft which already had MS JVM...etc...


That seems to be scaremongering, though not something I'm in a position
to test.

Yes, the codebase attribute can be used automatically update the JRE if
it indicates that a newer version is necessary to use the applet, but
that it will break anything is a dubious notion, otherwise Microsoft
wouldn't allow it to happen.

[snip]

Mike

--
Michael Winter
Prefix subject with [News] before replying by e-mail.
Dec 12 '05 #21
On 12/12/2005 10:01, marc wrote:

[snip]
Mike, what is this magic number
"8AD9C840-044E-11D1-B3E9-00805F499D93"?


Simply put, it identifies the Java Run-time Environment in the Windows
Registry. IE will try to find it using that value, run it, and pass the
applet to it.

Other plug-ins, like Flash, also have these identifiers.

[snip]

Mike

--
Michael Winter
Prefix subject with [News] before replying by e-mail.
Dec 12 '05 #22
VK

Michael Winter wrote:
*very respectfully* <snip>
pls see the thread for details


The problem resides in the very nature of <object>: it implies *a
particular instance of a particular application". If you manage to
force <object> to work like "gimme something of such kind" it will be
already a misuse of the <object> tag. Plus such misuse will not be
guaranteed (and why should it?) across all platforms and applications.

Microsoft JVM is indeed not supported anymore by Microsoft but stull
there are hundreds of places to download the last official update, plus
it is still manageable through the IE settings (up to IE 6.x) The
reason why many Windows-people choose MS JVM (even not supported
anymore) over Sun JVM is the speed (turtle vs. light).

To OP: if my IE vs. People story was interesting to you then you indeed
want to support MS JVM? If so, then you have to forget the Swing sick
sh**. I guess it's clear to you?

Dec 12 '05 #23
VK wrote:
Michael Winter wrote:
*very respectfully* <snip>
pls see the thread for details
The problem resides in the very nature of <object>: it implies *a
particular instance of a particular application".


It does not.
If you manage to force <object> to work like "gimme something of
such kind" it will be already a misuse of the <object> tag. [...]


No, it is not. Sun itself states that the special Class ID
8AD9C840-044E-11D1-B3E9-00805F499D93 will always refer to the latest
installed version of the JRE, no matter what version that might be --
they call that "dynamic versioning". It is also stated that the JRE
Plugin supports the `object' element since it was officially introduced
in browsers (NN6 [1998]; IE3 [1996-08], IE4 [1997-10] for scripts).

Could we please return to discussing on-topic -- J(ava)Script/ECMAScript?
PointedEars
Dec 12 '05 #24
VK:
To OP: if my IE vs. People story was interesting to you then you indeed
want to support MS JVM?


Well since it is an intranet application and I can be fairly sure about
the present and future browsers used, I just made this. Although some
would shudder form my code I guess, it works for me.

<form action="scan" method="post">
<br/>
<br/>
<!--[if IE]>
<applet code='JTwainApp let.class' archive='/JTwain.jar' codebase='/' >
</applet>
<![endif]-->
<![if !IE]>
<object classid='java:J TwainApplet.cla ss' archive='/JTwain.jar'
type='applicati on/x-java-applet' codebase='/'> </object>
<![endif]>
</form>

Dec 13 '05 #25
On 2005-12-12, marc <ma*********@ho tmail.com> wrote:
"8AD9C840-044E-11D1-B3E9-00805F499D93"?

If I search around it seems that it is used very often, and it seems it
is not a UID that is dependent of the applet, but a sort of alternative
'active x class number', that indicates that it is not an active x
object but a java applet. Hence the number is the same for all applets,
and which specific applet to start is identified in the parameters?

But that's just so weird, I cannot believe it's programmed this way.

First I thought I should somehow get a specific class id number for
each applet, somehow. Or I should register a number in the registry?

I am confused by this...


Why can't the java engine be the activex object?

Bye.
Jasen
Dec 13 '05 #26
Jasen:
Why can't the java engine be the activex object?


Ok..., Jasen, you probably mean the engine can be the activex object?
But could you please explain more, and not just make a remark, which
they would call I think in German Klug Scheisserei or something. What
the English term for this is I do not know. Or to say it in Dutch, stop
the 'betweterij' and explain what you bedoelt.

So you can register any engine, JRE or also for example Flash in the
same whey as an active x object, and IE would call it by the same means
as an active x object, right?? That's essentially what happens?

And I excuse myself to Pointer Ears, who probably shudders at this
moment for all this off topic content, sorry, sorry.

Dec 13 '05 #27
marc wrote:
Jasen:
Why can't the java engine be the activex object?


Ok..., Jasen, you probably mean the engine can be the activex object?
But could you please explain more, and not just make a remark, which
they would call I think in German Klug Scheisserei or something. [...]
And I excuse myself to Pointer Ears, who probably shudders at this
moment for all this off topic content, sorry, sorry.


PLONK
Dec 13 '05 #28
Man you are a sick joke really! Typical German Klug Scheisser!

Dec 13 '05 #29
Me:
But could you please explain more, and not just make a remark, which
they would call I think in German Klug Scheisserei or something. [...]
....
> And I excuse myself to Pointer Ears, who probably shudders at this
moment for all this off topic content, sorry, sorry.

Thomas:
PLONK


Ooops....well sorry....

Euh, well actually, that probably...soun ds a bit anti German, but
that's not what I meant. I am not anti German. It's just the perfect
word, in German, for something like what people sometimes do. Make one
clever remark, and then don't explain what they really mean. I am very,
very anti Klug Scheisserei though, that is true.

Nevertheless I will study some more on this subject in general. That's
probably the best to do then :-)

Better then bothering you so much, hey ;-)

Dec 13 '05 #30

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2074
by: Michael Sparks | last post by:
Anyway... At Europython Guido discussed with everyone the outstanding issue with decorators and there was a clear majority in favour of having them, which was good. From where I was sitting it looked like about 20:20 split on the following syntaxes: 1 def func(arg1, arg2, arg3) : function... 2 def func(arg1, arg2, arg3): function...
0
6707
by: Nashat Wanly | last post by:
HOW TO: Call a Parameterized Stored Procedure by Using ADO.NET and Visual C# .NET View products that this article applies to. This article was previously published under Q310070 For a Microsoft Visual Basic .NET version of this article, see 308049. For a Microsoft Visual C++ .NET version of this article, see 310071. For a Microsoft Visual J# .NET version of this article, see 320627. This article refers to the following Microsoft .NET...
28
20348
by: Daniel | last post by:
Hello =) I have an object which contains a method that should execute every x ms. I can use setInterval inside the object construct like this - self.setInterval('ObjectName.methodName()', this.pinginterval); - but is there no way to do this without using the literal ObjectName? If I write 'this.methodName()' I get "Line 1 Char 1: Object doesn't support this property or method." in IE, and nothing happens in Firebird.
11
2206
by: Doug | last post by:
Is there any harm in passing an object into a method with the 'ref' keyword if the object is already a reference variable? If not, is there any benefit?
17
4234
by: Danny J. Lesandrini | last post by:
The following code works with a standard MDB to navigate to a particluar record (with a DAO recordset, of course) but it's giving me problems in an ADP I'm working on. Dim rs As ADODB.Recordset Set rs = Me.RecordsetClone rs.Find "=" & lngContractID If Not rs.EOF Then Me.Bookmark = rs.Bookmark I must site the Heisenberb Uncertainty Principal here, as it
9
10910
by: Ben Dewey | last post by:
Project: ---------------------------- I am creating a HTTPS File Transfer App using ASP.NET and C#. I am utilizing ActiveDirectory and windows security to manage the permissions. Why reinvent the wheel, right? Everything so far is working well with the Active Directory. The problem I am having is with adding File Permissions to a directory. I am currently using some code courtesy of "Willy Denoyette "
4
3405
by: Chris | last post by:
Hi, everything works apart from the last line :-(( rng.Value2.ToString() An exception is thrown : "Old format or invalid type library" It gets compiled though (so he recognizes the property 'Value2'). So I suppose I'm using a incompatible type lib. I'm using Excel 2002 : Excel 10.0 Object Library
0
6442
by: Michelle Keys | last post by:
I am trying to call a print function to print a string from a database using javascript. Which is RC_DATA of Varchar2(2500). This is a javascript is not being used. I have a thing that needs to be modified: if(e.CommandName =="Print") { string parsedreceipt = null; parsedreceipt = DecodeReceipt (e.Item.Cells.Text); Session = parsedreceipt;
14
3169
by: MuZZy | last post by:
Hi, Lately i've been (and still am) fixing some memory leaks problems in the project i just took over when i got this new job. Among the other issues i've noticed that for localy created objects it makes difference to explicitly put them to null after working with them is done - it somehow makes the GC collect them sooner, like here: void SomeFunc() { MyClass c = new MyClass();
2
3502
by: Ryan | last post by:
Hi, I receive an access denied error (see below) when attempting to send an email with BodyFormat=MailFormat.Html from an asp.net page. Exactly the same code works fine in a console application, and also succeeds from the asp.net page with BodyFormat=MailFormat.Text. I've recently upgraded from W2K SP4 to WinXP SP2 and am using .Net Framework v1.1 SP1. The code worked fine under W2K SP4.
0
9706
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9579
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10076
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9144
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6851
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5520
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4297
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3816
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2990
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.