T
Thomas Weidenfeller
Roedy said:With 1.2 Swing was not part of the distribution, but you could add
your own jar if you wanted to experiment.
1.2 already included Swing. The separate download was for 1.1.x.
/Thomas
Roedy said:With 1.2 Swing was not part of the distribution, but you could add
your own jar if you wanted to experiment.
With 1.2 Swing was not part of the distribution,
..but you could add
your own jar if you wanted to experiment.
1.2 already included Swing. The separate download was for 1.1.x.
Very few Java developers would dare risk running Swing
using Java 1.2*, but would probably specify 1.4 as the
minimum Java required. * Though the Swing classes were
incorporated in the 1.2 core classes, a lot of them had
quirky bugs, as I understand.
..Is it naive from my part to let Tomcat handle JSP files ?
If you want to 'blame' anybody for this mess, put the
blame where it belongs, Mozilla. It is the Mozilla
family of browsers that introduced the <EMBED> element.
Despite the common acceptance of the <OBJECT> element
(including by the W3C, the HTML recommendation group
that decides what will, and will not, be considered
valid HTML), Mozilla is still pushing this idiotic
structure some.. 6, 7(?) years after it should have
been considered a lost battle.
The Mozilla family of browsers are generally good
user agents, but that aspect of them, irk's me no end.
...I discovered a couple of years ago that Mozilla and
Firefox have, at least for those past couple of years, supported the
<object> element, at least for embedding Flash in a page. I haven't
tried it with applets, so I don't know if it works.
Andrew said:Nope. Check the single call to 'object' - last list item.
<http://www.physci.org/test/appletcall/>
(yes, I stole your applet for testing...
hope you don't mind):
Andrew said:LOL! You are welcome. Please get back to us once you have
got it as good as you feel it can be*, it might be worth
adding to the list of test cases.
* %100 working, or not.
..This relies on IE having buggy CSS support (specifically not supporting
the > selector).
Do I have your permission to include it in the
'appletcall' page?
<snipped/>BLAH! I did it! It's a painful hack which I am not proud of, BUT:
1. The applet displays in Firefox 1.0.6 and IE 6.
2. There are no broken object icons in either browser.
3. It's valid HTML 4.01 Transitional.
This relies on IE having buggy CSS support (specifically not supporting
the > selector).
BLAH! I did it! It's a painful hack which I am not proud of,
...BUT:
1. The applet displays in Firefox 1.0.6 and IE 6.
2. There are no broken object icons in either browser.
3. It's valid HTML 4.01 Transitional.
This relies on IE having buggy CSS support (specifically not supporting
the > selector).
Feel free to put this code on your test page.
Obviously, in production code, it may be desired
to move the stylesheet rules into an external file.
With the modifications below, I am able to script my applet in the
different browsers too (Opera 8.0, Netscape 7.2, FF 1.0.6 and IE 6)...
Andrew Thompson said:Took me a while to get what you meant, but yes.. that is a
nice refinement. I will probably add it as '# 8' if that is
OK with you Dag?
Of course you can add it...![]()
Sorry for the confusion... I made my own JApplet with a public method
explicitly to test cross-browser scripting of the applet.
I've been struggling with the object/embed combination for years now,
and can finally get rid of it. If this can save anybody else from the
hassle, I'm glad...
Do you have a "better" solution for me than using the
"window.XMLHttpRequest" to check which id to use in the script?
Andrew Thompson said:On Thu, 25 Aug 2005 11:16:35 GMT, Dag Sunde wrote:
..
Cool. Thanks.
I had not looked closely at the actual code, it just
took me a few moments to understand why you were bothering,
then it clicked.. the duplicate ID'd would mess up scripting.
I think this generally is a good solution.
It crashes NN 4.8. We might need to redirect old NN
to a pure <APPLET>* page if supporting it is necessary.
* An applet needs to be 1.1 compatible to work in NN
anyway (it runs Symantec's Java 1.1.5). So you might
as well use the <APPLET> element in (valid) HTML 3.2
for it and be done with it.
The attempt to use scripting in IE to correct the ID's
might fail if scripting in IE is disabled. But then..
- If that fails, so would 'scripting' an applet -
so there is no 'loss' of funtionality.
- 'the guy' who uses..
- IE with
- Java enabled, but
- JS disabled,
..is hardly your average end user.
Do you have a "better" solution for me than using the
"window.XMLHttpRequest" to check which id to use in the script?
TIA...
Chris Head said:-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Dag Sunde wrote:
[snip]Do you have a "better" solution for me than using the
"window.XMLHttpRequest" to check which id to use in the script?
TIA...
What if you were to use DOM to find some element of the "notieapplet"
class and then access its properties to determine whether its CSS
display property was set to "none" or "inline" (basically instead of
exploiting a SECOND IE bug which might be fixed at a different time,
you're now just exploiting the side-effects of the bug which is already
being exploited).
I don't like exploiting bugs, so it seems like it's always good if you
can use just one bug to control lots of things that need controlling thus.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.