Javascript via showDocument no longer working

A number of applets I have made execute javascript using the showDocument method as in the code snippet below. Now these applets were all working fine last week and now this week they have stopped working. I created a test applet just with a button on which executes the code below when clicked and this too does nothing, it doesn't even throw an exception.
Any ideas why I can no longer get this to work? I realise I can achieve Java to JavaScript communication via JSObject, but I'm trying to avoid that - and this solution seemed to work fine before. I'm running these applets in Internet Explorer 6.
Any help greatly appreciated.
    try {
      this.getAppletContext().showDocument(
          new URL("javascript:void(document.all['myField'].value='hello world')"), "_self");
    } catch (Exception exp) {
      System.out.println(exp.toString());
      exp.printStackTrace();
    }

Did you recently install any Windows updates? Cuz if so, it seems a recent IE security hotfix has broken this behaviour. It's not clear if this was intentionally done or if it's a side affect from something else. If it's intentional, my contention is this is a mistake. A javascript URL shouldn't be considered a violation of the standard security sandbox. The scripting engine already has it's own security to deal with bad Javascript.
Suffice it to say, you need to use JSObject.

Similar Messages

  • Safari Javascript on iPad2 no longer works 8.2 and 8.3

    Since updating myiPad2 to 8.2 and later 8.3, javascript elements in websites viewed with Safari and Chrome no longer work. I can successfully view/use these same websites on another iPad with an older IOS.
    Here's what  have tried so far:
    -soft reset (home+power)
    -clear safari cache/website data
    -forget network
    -toggle javascript on and off
    -every combination of the above
    -upgrade to 8.3 and repeat all of the above
    Does anyone have anything to add that I could try?
    Thank you.

    @sean0826 -- this is why you don't use Java menus. Even javascript menus are a bad idea; you need to have a secondary menu system ANYTIME you have a menu system that requires a plugin or scripting to be active. NOT EVERYONE browses with that stuff on.
    The only thing you can do for now is FTP to your site and add in static menus (like we did in the "old days" at the bottom of the page; or rip out the Java Menus and install static or CSS versions.
    BTW where are you rmenus supposed to be. I have opera, safari, ff, and a few others. they all look the same. So if that's true, it's the plugin that's the problem, not safari.
    In Opera Pogo.com works. java loads, the game is there. It does have some drawing issues but not surprised.
    In Safair Pogo works fine. Just played a game of chess.

  • X11 session tunnelling via SSH: no longer working!

    Hi!
    Graphical access to a Solaris 9 or 10 server via X11 tunneled thru an SSH session used to work fine until recently. In other worlds, you would connect with a
    ssh -X [email protected] your workstation running an appropriate X11 server, the remote SSHD would set up the DISPLAY variable pointing back to itself and everything would work as expected. Run a graphical app, and it would happily pop up in your display.
    However, recently this has stopped working on two different servers I use, one with Solaris 9 and the other with the latest Solaris 10. The ssh session works normally, but the DISPLAY variable does not get set and the following error pops up in the console:
    Aug 26 13:58:46 sunserver sshd[2251]: [ID 800047 auth.error] error: Failed to allocate internet-domain X11 display socket.Both servers were patched with the latest security and recommended patches. Tried by connecting from a MacOS X 10.5 portable (using the included X11 server), a Knoppix 5.3.1 host and an OpenSolaris host, all with the same failed results. However, on an older Solaris 9 server that has not been recently patched, the tunnelling works as usual, so it seems to be a server-side problem. And, like I mentioned, this all used to work on the failing servers, before the patching orgy this summer.
    Since the tunnelling no longer works, the only way to run graphical apps is by manually doing the insecure xhost +client / DISPLAY=server:0.0; export DISPLAY routine. 
    Has anyone run across this problem and know which patch messed things up? Is there a solution or, at least, a workaround?
    TIA for your help.
    J. Courcoul

    There was a posted six hour service window for this web site yesterday. Your initial posting should have happened just
    before the service windows opened and after the service windows expired half of the world was still asleep and then you
    complain the next morning about the dearth of responses. Talk about underwhelming.Guess my anxiety due to user pressure was showing... :D HOWEVER, I did get a perfectly good response on comp.sys.sun.admin about four hours after posting, even though slashdot and others have been crowing about the death of Usenet.
    Usually X forwarding breaks when there is nothing to connect back to but your messages seems to suggest that a patch
    has caused the problems. For the life of me I can't figure out why adding an IPv6 loopback address would fix this but
    an actually Sun employee would know better than I.Precisely why I don't want to mark the question as answered yet. Heck, when I read the trick, it made me think that I had completely misunderstood how the tunnelling mechanism works.
    You might try going through the list of patches that were applied and see if any of them contain files related somehow
    to SSH and then file a bug report against that patch to Sun so it can be fixed, again.Yes, cause there was an ssh/sshd patch that came out in the June/July timeframe which may have a bearing. However, I recall there was at least one or maybe two patches for tcp that may also have been a cause. Time to put on the Sherlock Holmes cap...

  • USB ethernet connection via switch no longer works after installing Mountain Lion

    Since installing Mountain Lion, I have no longer been able to use my USB ethernet connection via an ethernet switch. I have deleted and re-added the connection in preferences. The connection reads "Connected" but it is not working as connected (unless I bypass the switch and plug directly). I have tried doing this with two different switches to no avail. Does anyone have a solution? Thanks.

    I Read this sollution elsewhere on these forums and found that this worked for me.
    However, the "load" time in Safari is not as fast as it used to be. Might be due to some router setting.
    Solution:
    For all the Dutch users that have a KPN Experiabox router:
    1) go to http://192.168.2.254
    2) Username: KPN Password: leave empty (You might have changed this yourself)
    3) Go to Network (at the top)
    4) Go to WLAN (at the left)
    5) Set as follows:
    Enable WLAN: Enable
    Mode: IEEE 802.11g Only
    Channel: 7
    Transmitting power: 100%
    Enable WMM QoS: Disable
    This fixed my wifi problems. Good luck

  • Digital audio via USB no longer works since IOS8

    Hi,
    I use the "Lightning to USB Camera Adapter" (ref MD821ZM) to connect my iPhone or the iPad to my Bowers and Wilkins speakers MM-1 USB cable.
    This allowed to use the B&W internal DAC.
    It has worked fine in IOS 7 and it was a fantastic feature and easy to use.
    IOS no longer streams the music digitally to the DAC. it just keeps playing the music from the iPhone/ipad internal speakers.
    I truly hope this is only a bug and not a feature Apple has voluntarely decided to remove, which would be a shame because it doesn't harm anyone to keep it.
    or anyone has a suggestion (app or something)
    thanks,
    BigMat

    b,
    We are in business. I charged the iPod via the cigarette lighter (didn't take long). When I plugged it into the computer after charging it I got the familiar ding-dong sound and the iPod updater immediately prompted me to update the software on the iPod (which I did).
    After updating, the computer no longer seemed to recognize it. I stopped all the USB devices that were running, one at a time until I finally saw Apple iPod in the list and I stopped that as well and disconnected.
    To make a long story short, after rebooting my computer and reconnecting the iPod, iTunes came up as normal and it looks like I'm over this hurdle.
    I have no idea why the computer wouldn't recognize the iPod when the battery was dead but suddenly recognizes it after charging it.
    My wife says that the iPod had been left plugged into the computer for a long period of time but I'm not sure what that would have done.
    At any rate, we're working now and hopefully someone will get some benefit from this thread.
    Thanks again,
    Greg.

  • Sending mail via forms no longer working

    Recently, on one of our servers (XServe G4 - 10.3.9) was running both web and mail. Mail was moved off of the server 2 days ago onto a newer server (10.4.7)
    The web server has: php4.3.11 and is ONLY running AFP/OD/Web
    Since the transfer of the mail server to the new machine, all web sites can no longer send mail via their scripts (either by sendmail, php's mail(), or by connecting to SMTP server via php).
    The web logs do not show errors when it attempts to send the mail...
    A look at mail.log shows
    "relay=cyrus, delay=2558, status=deferred (temporary failure. Command output: couldn't connect to lmtpd: Connection refused_ 421 4.3.0 deliver: couldn't connect to lmtpd_)
    As far as I'm aware, the web server/sendmail shouldn't be attempting to use cyrus at all. For the record, Cyrus master is not running.
    All users can access the mail server without any difficulty. DNS entries have been checked and double checked.
    Does anyone know why sendmail and php mail functions stopped working? I really need to get these web forms functioning again. Is the problem with apache, php, sendmail or something else?

    Hi Camelot,
    Thanks for the quick reply and useful suggestion. I did as you mentioned and fired up the mail server.
    The mail "delivered" however, I notice a couple issues in the logs (mail.log)
    issue #1: I have to start cyrus master manually via > sudo /usr/bin/cyrus/bin/master SA and command line start/stop of mail does not start master. Also, when starting master from command line as mentioned, terminal hangs.
    issue #2 (from mail.log) - still getting the same lmtpd error (but messages do finally get delivered):
    Jan 14 03:58:24 www postfix/pipe[2914]: 3503858502D: to=<[email protected]>, relay=cyrus, delay=5327, status=deferred (temporary failure. Command output: couldn't connect to lmtpd: Connection refused_ 421 4.3.0 deliver: couldn't connect to lmptd_ )
    Jan 14 03:59:39 www postfix/cleanup[2906]: B60AE58572B: to=<[email protected]>, relay 123.123.123.123[123.123.123.123], delay=0, status=sent (250 Ok: queued as 9FBF41BCBCA)
    Do you think these are "issues" to contend with or are they "normal" occurances?

  • Scan via Preview no longer working after Lion Upgrade

    After upgrading to Lion, I can no longer use Preview to scan a document from my Kodak ESP9.  I have a range of issues, but the most common is that after telling preview to look for networked scanners, and then selecting the Kodak, it open a box that should automatically start a preview scan.  Instead, the box shows the SCAN and OVERVIEW button but nothing else, the screen is jsut blank.
    I have updated Kodak's sofware and firmware to Lion versions.
    Anyone have an idea how to get this working again?  It was flawless before the Lion upgrade.
    Thanks.

    Please follow these instructions:
    Lion: Connecting to legacy (pre-Lion) AFP services - and Mac OS X (server):
    https://discussions.apple.com/thread/3258472

  • AppletContext.showDocument() no longer working correctly

    I am using appletContext.showDocument(), and it is not working now, I have IE 5.5 sp1, windows 2000 sp2. It still seems to work for others. Here is the code:
    String location =
    "http://mysite/controlcgi.dll?cmd=Restart";
    URL url = new URL(location);
    getAppletContext().showDocument(url);
    When the url gets to the webserver, it appears the params are encoded - "cmd+ADO-Restart". I tried using the URLEncoder to encode the params first, but that did not work. Anyone with an idea?
    Thanks
    Kelley

    I found the problem, I did not have the content-type defined in the web page where the applet was located. I added <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
    and it started working fine. My best guess is that before IE 5.5 sp1 IE would default to this content type. Thanks for the help.

  • Javascript in IE no longer working

    Hello-
    I have a Windows server 2012 R2 with what I believe has a problem with Javascript and Internet Explorer.  If I go to certain web sites, they appear blank & I’ll see in the lower right and corner of the Internet Explorer window “javascript;”. 
    Other symptoms include pressing F12 and getting a blank page for developer tools, going various websites and the buttons are either missing or don’t “click” when I press them.  Outside of Internet Explorer, if I go into gpedit or the services mmc, the
    Extended tab on these utilities do not display anything other than a partially filled window with solid color or it’s blank.  If I click on the Standard tab of these apps, all is good.
     I’ve searched for possible solutions & did the following:
    With the exception of the latest MS April patch, I’m up-to-date.
    Re-registered the following .dlls:  mmcndmgr.dll, vscript.dll, jscript.dll & jscript9.dll
    Turned off IE Enhanced Security  for both Administrators & Users
    Made sure Javascript was enabled in IE security settings
    Turned off Windows firewall- didn’t buy me anything so I turned it back on
    I’m not sure when this started happening.  For what it’s worth, I installed Firefox and had no problem with the website that gave me grief in IE.  Anti-virus has been removed; in fact my suspicions lie with the trial version of McAfee SaaS that
    was on this server.  I followed instructions to remove the produce properly, including using their un-install app in  “run as Administrator” mode.
    Many articles that I read state to uninstall IE & re-install it to resolve this issue; unfortunately 2012 R2 comes with IE11 already installed, so I’m at a loss.
    Looking forward to some excellent advice!
    Dan

    Robert -
    I have problems using the Microsoft Forums on this server as well.  For example, the “Quick access” dropdown on the left is there, my mouse
    pointer turns to a finger when I hover over it, but when I click on it nothing happens.
    The F12 function doesn't work on this site either.  Furthermore I can go to Google's site (which seems to work) but pressing the F12 key
    gives me the same broken results:  a blank frame on the bottom portion of the browser that only has the question mark, the greater than sign, the “frame to Window” button or x to close the frame in the upper right corner of the frame.
    For what it’s worth, I don’t have these problems on another Windows 2012 R2 Server at the same location.
    Any ideas or other items to clarify?  Thank you for your interest, Robert.
    - Dan

  • Developer question. Upgraded to 6.0 - javascript:window.close() no longer works. Works OK in other browsers. Banners on popup windows also seem confusing.

    Popup windows no longer close using javascript:window.close(). Have to click the "X" to close the popup.

    I was able to fix the issue here. Steps Taken:  From the comand line I ran
    dscl /Search read /Users/jdoe HomeDirectory
    It returned # No such key: HomeDirectory
    This was the big clue.... it should have returned
    HomeDirectory: <home_dir><url>afp://files.hihllc.lan/Users/jdoe</url><path>/</path></home_dir>
    I unbound the Mac from AD and ran the following command in terminal.
    dscacheutil -flushcache
    I then went into OS X sharing preferences and renamed the computer slightly, so it would create a new computer record in AD. I rebound the machine to AD making sure in Directory Utility Advanced, under User Experience that Force local home directory on start up disk was unchecked and Network protocol to be used was AFP.
    I then ran
    dscl /Search read /Users/jdoe HomeDirectory
    and it returned
    HomeDirectory: <home_dir><url>afp://files.hihllc.lan/Users/jdoe</url><path>/</path></home_dir>
    I had the user reboot... which was necessary. When he logged in HomeSync fired up. He had quite a few conflicts, so I told him to select use files on this computer for all conflicts.
    I checked the FileSyncAgent.logs and it was good.
    Let me know if this fixes your issue.
    Thanks,
    Ray

  • Since updating to 10.7.1 internet sharing between macbook pros via airport no longer works.

    Updated macbook pros to 10.7.1 and since then have trouble in sharing an ethernet internet connection to other devices by airport/wi-fi (ipod touch, iphone and other macbook). Any suggestions?

    Thanks mj - I'm up and running.
    I could get the dmg into the sidebar of disk utility but not mount it.
    Here's what I did. I booted in safe mode. That enabled me to mount the disk image for the combo update, but didn't fix the other problems.
    Installing the combo update fixed the problems I referred to - ie I can mount dmgs, use safari and the widgets work, even have my vpn back.
    It however reintroduced another problem - namely that I could not use any of the software for my canon eos 20d software - esp. the eos utility to download photos. This problem was previously fixed by loading iousbfamily-xxx as described in the discussions - I think this is basically an earlier version of the usb driver than the driver loaded with 10.4.7. Fearing that this may have caused the problem, it was with some trepidation that I tried it again.
    So far so good.
    Thanks very much for the time you've put in helping me - I'm very grateful. Not being a techo I swapped from PCs to MACs to get away from all the update/compatibility problems and I get very frustrated when things don't work.
    Peter

  • Import via firewire no longer working

    Hi,
    I'm using iMovie 10.0.2, and trying to import from a Sony DCR-TRV320E camcorder over firewire into my late 2010 13" Macbook Pro under Mavericks.  Everything is up to date software wise as of today.
    This setup worked fine under Lion (I skipped mountain lion), and with the previous version of iMovie.  I'd plug it in, go into import, and set it pulling in the contents of the tape - with no issues.  It was really slick.
    Trying it with my current setup, everything looks like it's working fine, i.e. I connect everything together, start the import, the camcorder starts up, video and audio show on my Macbook fine.  When the import finishes though, theres no video file to be found anywhere.  I've searched on the hard drive, and withing iMovie.  I tried creating another user account on my Macbook and doing it from iMovie in there, and again, import starts, video and audio play, but when import finishes there's no movie file anywhere.
    Help!  Any ideas, pointers or troubleshooting steps would be gratefully revceived!  It's frustrating the pants off me.

    Yes, I'm having the same problem.  Very frustrating!
    https://discussions.apple.com/message/24650020#24650020
    I started with iMovie 10, so I don't have an old iMovie 9 folder to go back to.  I guess I'm just stuck waiting for 10.0.3...

  • Pop-Ups No Longer Work?

    I have a portfolio page that I put together with Flash MX.
    The interface is bsically a chart that has a bunch of buttons on
    it. These buttons each have a code similar to this;
    on (release) {
    getURL("javascript:openNewWindow
    ('file.html','thewin','height=600,width=800,toolbar=no,scrollbar=no,resizable=no,menubar= no')");
    This used to work - but not now.
    Even when I check my browser for pop-up/javascript enabling,
    it no longer works.
    Does anyone know why? Or what the given workaround (with all
    those linked pages) would be?

    welc
    me

  • Javascript:resizeTo(1024,768); no longer works

    After upgrading from version 3.6 to 14.0.1 I find that this javascript bookmark no longer works to resize the window.
    javascript:resizeTo(1024,768);
    Is this by design?
    Is there a work around?

    You can also do this with code in Error Console or via an extension or toolbar button that allows to run code with chrome privileges.
    *https://developer.mozilla.org/en/Error_Console
    <pre><nowiki>var Cc=Components.classes, Ci=Components.interfaces;
    var ps = Cc["@mozilla.org/embedcomp/prompt-service;1"].getService(Ci.nsIPromptService);
    var wm = Cc["@mozilla.org/appshell/window-mediator;1"].getService(Ci.nsIWindowMediator);
    var nb = wm.getMostRecentWindow("navigator:browser");
    var txt = 'width x height';
    var obj = new Object; obj.value = nb.window.outerWidth + 'x' + nb.window.outerHeight;
    if(ps.prompt(null, 'Resize Window', txt, obj, null, {}) && obj.value){
    var vA = obj.value.split("x");
    if(vA[0]) nb.window.outerWidth = vA[0];
    if(vA[1]) nb.window.outerHeight = vA[1];
    }</nowiki></pre>

  • I have recently updated the new apps via creative cloud now photoshop and bridge no longer work, they open then say they have encountered a problem and close, I also tried opening the old version of photo shop but getting the same result

    I have recently updated the new apps via creative cloud now photoshop and bridge no longer work, they open then say they have encountered a problem and close, I also tried opening the old version of photo shop but getting the same result

    What OS version? What's the exact error? Exactly when does the error occur? What previous versions? What is on the screen when the error displays? Does Photoshop get fully open?
    Try opening Photoshop holding down Shift key immediately to turn off plug-ins. Lots of good suggestions here: Photoshop: Basic Troubleshooting steps to fix most issues

Maybe you are looking for

  • How to print envelopes in pages, How to print envelopes in pages

    How to print envelopes in pages, How to print envelopes in pages

  • Default Page Size Not Retained

    I have just installed Adobe X Pro after having been using 9 Pro. I am on Windows 7. When I set Page Layout to Single Page and Fit Page it goes back to automatic after I close the document. I have tried checking, in Documents, Restore Last View Settin

  • How do I create a group of channels for input to a AI multi point

    Hi,     How do I create a group of channels for input to a AI multi point, so that I can output it to 3 different graphs.I figured out the graphs but I am not able to figure out how to create the group of channels for the input.I saw many examples wh

  • Server is up/down???

    Dear All,      I am trying to get authentication from my server, by using the below function...Here is a doubt...Once if my server is in "DOWN" state, i am getting the errors fired in my command prompt...how can i avoid this???.....i mean, i want to

  • Show CRYSTAL REPORT in JSP

    Hi, I have to investigate using Crystal Reports out of our J2EE application. So I try to find out about versions of Crystal Reports, how we can use them in our environement.... And I'm absolutely stucked with it. Environment should be BEA WebLogic an