473,804 Members | 3,037 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 2517
On 09/12/2005 16:43, Thomas 'PointedEars' Lahn wrote:

[To use APPLET]
So he needs to declare HTML 4.01 Transitional, not Strict.
That is an option, though not necessarily the only one. I never did
ascertain just how far my suggestion in my other post will go to satisfy
other browsers, and no-one in a.html seemed keen to contribute.
Still better than using "browser detection" to serve either the
`object' or the `applet' element in XHTML 1.0 (Transitional/Strict)
or even XHTML 1.1+.


Absolutely.

Mike

--
Michael Winter
Prefix subject with [News] before replying by e-mail.
Dec 9 '05 #11

"Thomas 'PointedEars' Lahn" <Po*********@we b.de> schreef
I am not a Java developer, though, so
RTFM (and note that it includes deprecated and even nonsensical examples
as well).


Hey Thomas, if you are going to continue this attitude in all your advice
you are going to give me, I'd rather not have it. Thank you!
Dec 11 '05 #12

"Thomas" :
Still better than using "browser detection" to serve either the
`object' or the `applet' element in XHTML 1.0 (Transitional/Strict)
or even XHTML 1.1+.

"Michael Winter" :
Absolutely.


Is this really thát bad? I know the code I tried to use is not what an
experienced javascript programmer would use. As an absolute or relative
excuse: I am writing code in it for a few weeks only, and only have written
non web stuff before (only windows applications, no html nor nothing).

But there is one other thing to say about my project. It is an intranet
application, so I can be reasonably certain the browser the client uses, is
one of two, IE or Mozilla. Since only these two browsers are installed in
the company's P.C. Also the program will be inevitable I think, client side
dependant, since I should write a program for loading images with a scanner.
This scanner must be present on the client side so...

Nevertheless, your suggestions are neater, and I will try them and read the
information provided, thank you.
Dec 11 '05 #13

"Thomas 'PointedEars' Lahn" <Po*********@we b.de> schreef
Please provide attribution of quoted material.
Well, google posting is a bugger really, I will in future write 'who wrote
what' in my replies.
Declare HTML 4.01 Transitional and use the `applet' element
One problem: Since I am working together with some other people in a larger
project, I cannot decide that my page would be of a certain standard.

URL:http://java.sun.com/j2se/1.4.2/docs/.../contents.html

This is a very usefull link thank you.

Marc
Dec 11 '05 #14
On 11/12/2005 08:39, Marc wrote:
Michael Winter wrote:
Thomas Lahn wrote:
Still better than using "browser detection" to serve either the
`object' or the `applet' element in XHTML 1.0
(Transitional/Strict) or even XHTML 1.1+.
Absolutely.


Is this really thát bad?


Yes, for two reasons.

The first and foremost is that browser detection is unreliable. The
conditional comments I used in that post to a.html are a proprietary
mechanism for IE and should remain reliable, but even they are
unnecessary. However, as it means that the PARAM elements only need to
be included once, I thought I may as well use them.

The second is that many browsers, including IE, do not support XHTML.
Unless serving XHTML 1.0 (/not/ 1.1) as malformed HTML somehow brings
overwhelming advantages (and it usually won't), just stick to HTML 4.01.

[snip]
But there is one other thing to say about my project. It is an
intranet application [...]


You really should mention things like that upfront. :)

This group assumes, as set out in the FAQ, that the context of a post
will be the Web in general (as this is the most common case) unless
stated otherwise.

[snip]

Mike

--
Michael Winter
Prefix subject with [News] before replying by e-mail.
Dec 11 '05 #15
Michael Winter wrote:
On 11/12/2005 08:39, Marc wrote:
But there is one other thing to say about my project. It is an
intranet application [...]


You really should mention things like that upfront. :)

This group assumes, as set out in the FAQ, that the context of a post
will be the Web in general (as this is the most common case) unless
stated otherwise.


However, that it is used in an Intranet application does not mean that it
is not important on how it is implemented. Using browser detection instead
of feature detection will increase maintenance costs in the mid-term. An
interoperable solution therefore is always the best approach.
PointedEars
Dec 11 '05 #16
Mike:
Yes. See
<http://groups.google.c o.uk/group/alt.html/browse_frm/thread/1a71a3fd6...>


Mike, what is this magic number
"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...

Dec 12 '05 #17
I wrote:

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

Seems my presumption are true:

http://java.sun.com/j2se/1.4.2/docs/...sing_tags.html

Attribute classid:

"It should always have the same value for dynamic version support, i.e.
clsid:8AD9C840-044E-11D1-B3E9-00805F499D93. For static version support
it will have a unique value for the version, e.g.,
clsid:CAFEEFAC-0014-0002-0000-ABCDEFFEDCBA."

Still think it's a bit strange, but nevertheless...

Dec 12 '05 #18
VK

marc wrote:
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?


Leaving out that Java applets (not applications!) is mainly dead
technologie:

<object> for Java is *very bad* because it implies a particular JVM to
use. In the mixed environment (IE / others) it often happens that IE
uses much more effective Microsoft JVM and "others" have to function
under Sun plugin. More over "others" may have Sun plugin of one version
and your <object> will imply another version. Sun did so many plugin
variants and patches that they have lost the count themselves. 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...
All together is the best way to make the whole system dizzy. Sometimes
you have to reinstall the entire Java segment on your computer after
viewing <object>-enforced Java applet. The above statement is a blood
written one, trust me.

To somehow fix this "Java-virus" Sun introduced classid
8AD9C840-044E-11D1-B3E9-00805F499D93 which internally supposes to mean
"the latest JVM you installed on this machine". Still it doesn't help
to prevent IE with Microsoft JVM installed from failure because
Microsoft JVM classid is 08B0E5C0-4FCB-11CF-AAA5-00401C608500

<applet> tag means "use any JVM you have - if you have any". Despite it
is deprecated but at least it's secure against of occasional system
damages.

If you still want to have applets on your page, use the old
Microsoft-proposed workaround:

<applet class="myClass. class"
cabbase="myAppl et.cab"
archive="myAppl et.jar"
....
After meeting "cabbase" MS JVM will ignore "archive".
Sun JVM will ignore "cabbase" and use archive.

It means that you'll have to have two archives (.jar and .cab)
Also Microsoft discontinued to support Java (but one can still find and
install the last version of MS JVM)

And indeed all this question is nothing to do with JavaScript or
JScript.

Dec 12 '05 #19
VK:

"And indeed all this question is nothing to do with JavaScript or
JScript."

Nevertheless it is an eye opener for me, so you got my gratitude!

Dec 12 '05 #20

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

Similar topics

4
2073
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
4233
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
10571
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10326
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10075
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...
1
7615
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
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...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4295
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

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.