Mac/FireFox Java/JavaScript interaction bug
Hi,
I'm desperately trying to find a solution to a very platform-specific issue. Basically, I'm trying to get an applet to interact with the DOM of a web page. The basic procedure should be as follows:
1) Page loads
2) Applet loads
3) Applet reads in data file (as specified by parameter in object tag)
4) Applet sets title of document to contents of datafile
5) Applet sets flag to indicate that it's finished
6) Javascript checks flag regularly
7) When applet flag is set, JavaScript transfers the title to the body (using a div and changing the innerHTML property)
This works perfectly on most platforms (FF2/PC, FF3/PC, IE6/PC, IE7/PC, Safari/Mac) but for some reason FF/Mac isn't working. Or rather it is, but only about once per 50 attempts.
I had read that having an applet inside a <div> tag was a problem for FF/Mac, so I moved it outside, but it's still not working. Most of the time the applet is simply failing to set the title.
I'm using Eclipse for development, and the following libraries:
java.net.URL
org.w3c.dom.html.*
com.sun.java.browser.dom.*
The Java code in question is as follows:
DOMService serv = DOMService.getService (this);
dummy = (String) serv.invokeAndWait (new DOMAction () {public Object run (DOMAccessor accessor) {HTMLDocument website = (HTMLDocument)accessor.getDocument (FeedApplet.this); website.setTitle(docstring); return website.getTitle ();}});
Any help would be much appreciated - thanks!
Andrew
Thanks for your replies. Sorry for being a bit vague - it was an end-of-the-day-end-of-my-wits posting!
baftos, I've tried replacing the init() routine with a start() routine, but this hasn't changed anything. The problem appears to be with the Javascript timing, in that it's assuming the applet has finished before it has actually finished.
jschell, step 4 appears to be the one that's failing. The title isn't being changed, but usually the taskbar says that the applet has started (occasionally it comes up with a NullPointerException). The system just seems to wait for a long time and nothing happens.The Javascript checks every second to see if a $ symbol (which is effectively the trigger) has appeared in the title, and if so then it moves the contents of the page from the title to the holding div. The flag in the applet is reset on starting the applet, and accessed through a get-type method, so it shouldn't be cached.
It works in OmniWeb and Safari on a Mac, and IE/FF/Opera on a PC, so it's very specifically rooted in the FF/Mac problem zone.
Similar Messages
-
In Firefox 3.6.3 for Mac OSX JAVA-applets don't appear
In Firefox 3.6.3 for Mac OSX JAVA-applets don't appear, although JAVA is installed. How to solve this problem?
http://www.kleinhaneveld.nl/genealogie/index.html (under Dynamic Family Tree)
== This happened ==
Every time Firefox opened
== after upgrading to FF 3.6You need to use the command line switch -safe-mode in the Terminal to start Firefox 3.6 versions in Safe Mode.
*https://support.mozilla.org/kb/Safe+Mode
*http://kb.mozillazine.org/Safe_Mode
The last Firefox version that runs on Mac OS X 10.4 is Firefox 3.6.28.
For an unofficial Firefox 17.0.5 ESR compatible version (TenFourFox) that runs on PowerPC Macs with OS X 10.4.11 or OS X 10.5.8 you can look at:
*http://www.floodgap.com/software/tenfourfox/
*http://www.macupdate.com/app/mac/37761/tenfourfox
*http://code.google.com/p/tenfourfox//wiki/ReleaseNotes1705
*http://code.google.com/p/tenfourfox//wiki/PluginsNoLongerSupported
*http://code.google.com/p/tenfourfox//wiki/QuickTimeEnabler
*http://code.google.com/p/tenfourfox//wiki/AAATheFAQ -
I've been using the latest version of FireFox since it was last updated. The captcha/image verification thing that I have been unable to view is one located on FanFiction.Net's login page under the query 'Are you human?'. Its become quite a bother and has been hindering myself from completing my daily routine.
I have enabled my java/javascript in the tools>options as well as in the add-ons. I also have the latest version java/javascript, yet nothing happened. I have yet to find a solution in the online forums or blogs for my problem.
I use Windows XP with its latest service pack (3).
Even the version before the latest one has the same problem for me.I just came across a captcha on text.vzw.com that wouldn't work, even after trying all the various suggestions that I've come across.
What finally worked for me (I'm using FireFox 6.0.2 on top of Windows XP Professional), was allowing popups on that site and allowing session cookies. I think it's the session cookie that finally did it. If you keep your security tight, you can remove the session cookie after you finish what you're doing.
Barb -
Is the Java "Zero-Day" bug dangerous for MountainLion users?
Is the Java "Zero-Day" bug dangerous for MountainLion users?
It is not yet dangerous, to my knowledge, as it is currently being used only to distribute Windows malware. But users of Java 7 are certainly vulnerable, should a hacker start distributing Mac malware through this vulnerability.
For more info, see:
http://www.reedcorner.net/new-unpatched-java-vulnerability-discovered/ -
Hello,
I have an iMac osX snow leopard (newest version) and strangely since some months, strangely when i tryed to open firefox it started crashing, firefox 3 and firefox 4 beta, i open them and in 5 seconds they crash.
Strangely enough on another account on my mac firefox WORKS perfectly, and it seems it's only crashing on my account, i even used cleanmymac and appzaper to clean totaly firefox files and re install it.
Please help me i can't stand chrome going so slow with 10 tabsThanks Sig for getting back to me. I really do appreciate it! But I'm not sure how erasing my drive is going to help. And besides, my problem is that I can't even boot to my original Tiger install DVDs anymore. I'm unable to execute any kind of boot-level command -- including holding down "c" key to boot from the drive, holding "T" key to go into Target Disk Mode or holding down "option" in order to bring up my bootable partitions!
Holding down any of these keys after the boot chime simply causes the screen to go black and then hang. The DVD drive will show it's being read from but nothing ever comes up.
Since I can't boot to my install DVD, there is no way for me to access the Disk Utility to erase my hard drive. Do you see the problem?
I am able to boot to my Windows 7 DVD, since I was able to install that to my old Tiger Partition, but I don't see how using my Windows install DVD would help me to re-install OS X.
I need to figure out why none of my boot-level opterations are available. If I was able to boot to my original Tiger discs (or any OS X DVD) than my problem would be solved, but I can't do that!
Any other ideas? Thanks in advance! --e -
Passing struts-tag value to java / javascript variable in JSP
Hello all,
Im trying to pass the value got from the struts-tag to the java variable in the Jsp. However Im not able to get the o/p. Can u guys help me on this pls...
<logic:notEmpty name="TreeBean" property="list">
<logic:iterate id="Type" name="TreeBean" property="list" indexId="i">
<br/><bean:write name="Type" />
</logic:iterate>
</logic:notEmpty>Here the list can be populated in the jsp page. However i want the values into jsp list. Im not able to populate the same..
<% List jspList = null;
%> I want the values into the jspList variable for further processing. Can u guz pls help me on this....Which do you want it in?
A java variable for use in <% scriptlet code %> or a javascript variable for use on the client end?
scriptlet:
<jsp:useBean id="TreeBean" type="java.util.List" class="java.util.ArrayList" scope="?????" />
Having scriptlet code on the page is considered bad coding style.
What is it you are trying to accomplish by making the value accessible?
What are you trying to do in java / javascript that can't be done with JSP tags? -
firefox is just an empty icon from what i can tell... when i upgraded to 10.9.5 on my mac firefox no longer works. it turns into a grey screen and then just ends up disappearing to the finder window... the application remains on, and won't force quit. I must re-start in order for it to Not be running... I've used firefox and mac for over 8 years and never seen anything like this.... I'm sure it's on the mac side of things, but I'm hoping y'all can fix it... it truly sucks to loose my favorite browser and all my saved bookmarked tabs and all
Your bad charger probably damaged something inside as well. Your hard drive directory may be damaged too.
If you lack a backup, you should read this:
https://discussions.apple.com/docs/DOC-1689
Otherwise, bring it in for service. -
Bridge CS6 Mac XMP File Info Panel Bug: can't copy and paste metadata
The cmd-keys / shortcuts doesn't work in the xmp file info panel btw. in the xmp / iptc fields (e.g. cmd+c, cmd+v, ...) of Adobe Bridge CS6 (Mac OS 10.6.8 and 10.7.3). You are not able to cut and paste info from one box to another like previous versions.
This bug only appears in the xmp file info window (opened via alt+i) in Bridge CS6 - if you edit information or metadata in the file info panel in Photoshop CS6 copy and paste from one field to another works.
The shortcuts also work under Windows (tested under Vista).
I noticed this minor bug already one in the Photoshop CS6 Beta more than one months ago. I hoped that this was corrected in the official test version, but unfortunately it is not. Although it is a minor bug, it is IMHO a basic function and would be very helpful in my daily work - it is too bad, that such a small thing is making working with the application a little bit annoying.Thanks! If there is a workaround or simple solution, I would be very glad if you could inform me.
Christian
(signature removed by the Admin)
Am 14.05.2012 um 13:49 schrieb FrankBiederich:
Re: Bridge CS6 Mac XMP File Info Panel Bug: can't copy and paste metadata
created by FrankBiederich in XMP SDK - View the full discussion
Thanks for your report; we'll look into it.
Frank
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: Re: Bridge CS6 Mac XMP File Info Panel Bug: can't copy and paste metadata
To unsubscribe from this thread, please visit the message page at Re: Bridge CS6 Mac XMP File Info Panel Bug: can't copy and paste metadata. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in XMP SDK by email or at Adobe Forums
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.
Message was edited by: Arpit Kapoor -
Hi,
Im facing an issue with Mac Firefox, when Im trying to open pdf file in FF for Mac, its asking for download/save rather than opening up inside browser window like other browsers do.
Can you please help me out to solve this, its happening only with Mac Firefox.
Thanks.Please provide the following information:
Which version of Acrobat you are using?
Which verion of FireFox you are using?
Which version of Mac OS X you are using?
It will help those who want to help do so. -
Setting the Brushed Metal look and feel for macs using Java.
Hello,
I am relatively new to Java and I am new to Mac-specific java stuff. Anyways, when I try to set the look and feel of my classes to the "apple.awt.brushMetalLook" look and feel, I am unable to. It works if I have System.setProperty("apple.awt.brushMetalLook", "true"); written before I create any swing component. This would be fine, except that means that it is impossible to extend any swing component, such as JFrame or JApplet. Is there a way around this?
Thanks!This might answer your question:
http://lists.apple.com/archives/Java-dev/2003/Apr/msg00829.html -
Mac :: Firefox :: CSS border issue
Can someone with Firefox on a Mac check this page and see if
you can tell
why in the "products" boxes ( there are 3 ) .. the bottom
border is missing
on only 2 of them. I believe the 3rd box down renders the
border. If I
delete a paragraph from the 1st box, the border shows on the
1st box and not
the other two .. weird.
http://65.115.104.39/html%5Fnewsletters/stevens/urban/
The css is fairly complex for the entire page but the
relevant code for this
product box looks like this.....
#pContent .adblock {
border: 1px dashed #777;
margin: 1em 10px;
background: #fff;
}There is more going on there but the .adblock style is this
container with
the dashed border. Seems to work fine in Safari, and IE and
FF on PC.
Regards,
..Trent Pastrana
www.fourlevel.comoops, had an extra border in there.
#outerwrap #wrap #pContent hr {
position: relative;
height:0;
border-top:1px solid #777;
Regards,
..Trent Pastrana
www.fourlevel.com
"T.Pastrana - 4Level" <[email protected]> wrote in message
news:e99fee$7lu$[email protected]..
> No, it's actually not the hr causing the missing border.
It was doing
> that before the hr was there. The hr was causing the
redraw problem
> though. Firefox also doesn't render height on hrs very
well. The way
> around both of these problems was to set the height of
the hr to 0px and
> give it a top border.
>
>
> #outerwrap #wrap #pContent hr {
> position: relative;
> height:0;
> border:0;
> border-top:1px solid #777;
> }
>
>
> --
> Regards,
> ..Trent Pastrana
> www.fourlevel.com
>
>
>
>
>
> "Osgood" <[email protected]> wrote in
message
> news:e98c42$oog$[email protected]..
>> Osgood wrote:
>>
>>> T.Pastrana - 4Level wrote:
>>>
>>>> Really? ok thanks for checking...
>>>>
>>>>
>>> Yeah...but now I check in the latest version of
Firefox they don't
>>> appear. Have you got any empty clearing
<divs> in the code.
>>>
>>> If so put a in and see it that helps.
I seem to remember that the
>>> latest version of Firefox reacts differently to
empty <div></div> on
>>> Mac.
>>
>> This is what is causing those bottom dashed lines to
not appear in Mac
>> Firefox.
>>
>> <hr width="90%" size="1">
>>
>
> -
Since updating to Firefox 4 on my OSX 10.5.8 mac Firefox will not go to any website
Since updating to Firefox 4 on my OSX 10.5.8 mac Firefox will not go to any website. Firefox will launch but it won't load anything, the page is entirely blank - no home page loads - nothing. Also - It will not let me install any add ons. I've tried uninstalling and reinstalling to no avail. other apps such as Safari and Mail work as normal. I need Firefox - please help if you can. Thanks
You don't. Since you have an Intel Mac, buy a Mac OS X 10.6 DVD from the online Apple Store.
(71894) -
In my application, the Flex Javascript interaction works
correctly only when I have a "alert" pop-up!!! I do not want the
"alert" in my final application.
Here is my code snippet:
Javascript code:
<script language = "JavaScript" type="text/JavaScript"
charset="ISO_8859-1">
var jsReady = false;
function isReady()
return jsReady; //to set up communication with Flex
function pageInit()
// Record that JavaScript is ready to go.
jsReady = true;
var newTerm="Flex"; //This is the input variable, right now
its hard-coded
alert(newTerm);//this alert causes trhe problem, I get to see
the desired output with alert, but without alert, I get "Error on
Page"
getMyApp("test").myFlexFunction(newTerm);//call to Flex
function
function getMyApp(appName) //Function to find the type of our
browser
if (navigator.appName.indexOf ("Microsoft") !=-1)
return window[appName];
} else {
return document[appName];
</script>
pageInit() is called onLoad in body tag==> possible cause
of problemHey Tracy! Thanks for replying!
Here is the ExternalInterface code. I am working on Yahoo
API. So you will find some API calls there.
=========================
[Bindable]
public var question:Question;
public function myFunc(s:String):void
var keyword:String;
params.results = 50;
params.type = "resolved";
searchService.searchQuestionsByTerm(s, params);
private function setupCallbacks():void
ExternalInterface.addCallback("myFlexFunction",myFunc);
private function isContainerReady():Boolean
var result:Boolean = ExternalInterface.call("isReady");
return result;
public function startUp():void //initial call made hwn the
application starts
var isAvailable:Boolean = ExternalInterface.available;
trace(isAvailable.toString());
if (ExternalInterface.available)
var containerReady:Boolean = isContainerReady();
if (containerReady)
// If the container is ready, register the SWF's functions.
setupCallbacks();
else
trace("External interface is not available for this
container.");
// Define the Event Listeners for the Answer Service
searchService.addEventListener(AnswersResultEvent.QUESTIONS_SEARCH,
questionsResult, false, 0, true);
searchService.addEventListener(AnswersErrorEvent.ERROR_EVENT,
showError, false, 0, true);
======================= -
Is it possible to involke Tooltip in Excel through Java/JavaScript code?
Hi all.
NOTE: This is a cross-post from 'Java Programming'.
Is there any possibility to invoke 'Tooltip' in 'MS Excel- cells' using Java/JavaScript Coding?
If so, how can we implement the same?
Thanks in advance all.well which do you mean? java or javascript? don'tsay
'either' because they're not interchangeable. ifyou
mean javascript, be advises this isn't ajavascript
forum. not even a bitOK...Its in Java...I fucking hate this reply.
Can anyone plz do reply the stuff.
No. You can't do it directly in Java. -
How to use 'right click' command of windows in mac firefox
how do i use the windows 'right click commands in mac firefox
== This happened ==
Every time Firefox opened
== begininghttp://kb.mozillazine.org/Ui.click_hold_context_menus
type '''about:config''' in the URL bar and hit Enter
Pref Name = '''ui.click_hold_context_menus'''
Double-click to Toggle to '''True'''
Maybe you are looking for
-
Mid-2012 MBP with 27" Cinema Display SCREEN GOES BLACK WHEN USING USB PERIPHERALS IN DOCK
I haven't been able to find any straightforward answer as to why this is happening and it's becoming one of the most infuriating things in my life, impeding my workflow and costing me unmeasurable time in waiting, rebooting, screwing with cables, etc
-
How to enter a meeting as a host
Everytime I enter an Adobe Connect meeting, I enter as a participant, however, I am included in the admin group and I should be joining a meeting as a host. This also happens with a few others in my office. Why is this happening? When we check the se
-
JAVA Install problem with EP Sneak Preview
I am trying to install the Enteprise Portal Sneak Preview edition from the SDN website. According to the instructions it asks for me to download the JDK from sun website and use it. However when I run the SAPINST program, and try to install accordi
-
Rpmbuild missing from 2.6.18_92el5 download
I hope someone can shed some light on this issue for me. I was trying to get the source for the 2.6.18 installed in my unbreakable linux (64 bit intel) I was following the metalink titled Working with Kernel Source on Enterprise Linux aka NOTE:420383
-
Problem connecting to lotus notes server.
Hey Everyone I am using: Windows XP, service pack 2 PC suite 6.85.14.1 Bluetooth connection Phone Nokia E65 I am trying to connect my laptop to the office lotus notes server. But it seems PC sync can't locate my id file or the notes server. The field