DeployJava.js uses doc.write() - why?

I'm probably asking in the wrong place, but why does deployJava.js use doc.write() to create the applet tag?
I don't know what authority iof any w3schools.com may have for example, but it states that "the entire HTML page will be overwritten if document.write() is used inside a function, or after the page is loaded."
This means for example that a JSF page that conditionally displays a call to runApplet(), e.g. as the result of an Ajax transaction, will not work: the entire page content is indeed overwritten and my poor users are getting a blank page instead of a rather heavily populated page containing a new applet after pushing a certain button.
I'm reluctant to deploy my own version of deployJava.js but in the presence of this problem I may have to. Surely there is a better technique available? JQuery has innerHTMLI() for example, that must map to something in the Javascript space.

Comments so far:
1. I am embedding the applet in a page served via HTTPS. I therefore need to load java.com/js/dtjava.js via HTTPS to avoid mixed-content warnings. When I do that I get a browser intervention because the site's certificate isn't valid for java.com, only for *.java.com. Fixing the URL to https://www.java.com/js/dtjava.js avoids that. However the dtjava.js file has internal references to http://java.com which need the same treatment.
2. The variable 'platform' is mis-spelt in the link provided.
3. FireFox Error Console reports the following:
Warning: function aj does not always return a value
Source File: https://www.java.com/js/dtjava.js
Line: 1, Column: 11305
Warning: redeclaration of function ap
Source File: https://www.java.com/js/dtjava.js
Line: 1, Column: 18985
Warning: reference to undefined property at.url
Source File: https://www.java.com/js/dtjava.js
Line: 1
Warning: reference to undefined property at.url
Source File: https://www.java.com/js/dtjava.js
Line: 1
Warning: reference to undefined property top.execScript
Source File: https://www.java.com/js/dtjava.js
Line: 1
Warning: assignment to undeclared variable v
Source File: https://www.java.com/js/dtjava.js
Line: 1
Warning: assignment to undeclared variable v
Source File: https://www.java.com/js/dtjava.js
Line: 1
Warning: assignment to undeclared variable c
Source File: https://www.java.com/js/dtjava.js
Line: 1
Warning: reference to undefined property az[ay]
Source File: https://www.java.com/js/dtjava.js
Line: 1
Warning: assignment to undeclared variable p
Source File: https://www.java.com/js/dtjava.js
Line: 1
Warning: reference to undefined property az[ay]
Source File: https://www.java.com/js/dtjava.js
Line: 1
Warning: reference to undefined property az[ay]
Source File: https://www.java.com/js/dtjava.js
Line: 1
Warning: reference to undefined property az[ay]
Source File: https://www.java.com/js/dtjava.js
Line: 1
Warning: reference to undefined property az[ay]
Source File: https://www.java.com/js/dtjava.js
Line: 1
Warning: reference to undefined property az[ay]
Source File: https://www.java.com/js/dtjava.js
Line: 1
Warning: reference to undefined property az[ay]
Source File: https://www.java.com/js/dtjava.js
Line: 1
Warning: reference to undefined property az[ay]
Source File: https://www.java.com/js/dtjava.js
Line: 1
Warning: assignment to undeclared variable p
Source File: https://www.java.com/js/dtjava.js
Line: 14. Example 5.1 appears to be incorrect or incomplete, and no other specification of how to construct a dtjava.App object is provided. I get error messages like
Warning: Error in parsing value for 'width'.  Declaration dropped.
Source File: https://localhost:8443/vContent/test/applet/ssh.jsf?tag=dtjava
Line: 0
Warning: Error in parsing value for 'height'.  Declaration dropped.
Source File: https://localhost:8443/vContent/test/applet/ssh.jsf?tag=dtjava
Line: 0using width and height as per that example. I looked in the source code to establish that there are two parameters: a URL and a set of properties. A 'placeholder' property is mandatory when using embed(), although not specified.
5. The documentation for onGetSplash() fails to mention that the 'HTML snippet' must have width and height attributes.
If this is the reference material it is entirely inadequate. If it isn't the reference material, it MUST contain a link to the reference material, using MUST in the same way as in RFCs.
It really astonishes me that Sun/Oracle is still dithering about how best to deploy applets after fourteen years.
I attach my entire Javascript:
<div id="SSH_applet_container">
     <script type="text/javascript" src="#{request.scheme}://www.java.com/js/dtjava.js"></script>
     <script>
          function deployIt()
               var platform = new dtjava.Platform({ jvm: "1.5+" });
               var event = dtjava.validate(platform);
               if (event != null)
                    alert("Java Platform problem: "+event+". Your browser support="+!event.isUnsupportedBrowser());
               // Undocumented, but first param is URL, 2nd is a set of properties that must include width, height, and placeholder for embed().
               var app = new dtjava.App(
                    'ssh.jnlp',
                         id: 'SSH',
                         width: 100,
                         height: 25,
                         placeholder: 'SSH_applet_container',
                         params:
                              config: 'ssh_applet.conf',
               dtjava.embed
                    app,
                    platform,
          dtjava.addOnloadCallback(deployIt);
     </script>
</div>

Similar Messages

  • I'm using iA Writer on my new iPad. I've opted to store doc's from this app on iCloud. Now I'm unable to access iCloud and retrieve my doc's so I can continue writing. Needless to say this is very frustrating. Is there a solution for this issue?

    Please, need help. I'm using iA Writer. I opted to store doc's on iCloud and now I find I'm not able to access iCloud in order to retrieve said doc's. A solution to this dilemma would be greatly appreciated.
    Thank you,
    Satya

    iA Writer on iDevice: 
    Look at the Storage List, there should be an iCloud entry (along with iPad/iPod/iPhone, and Dropbox).  Choose iCloud to get a list of documents.
    To write a new file:  Be sure to have iCloud chosen in Storage.  Create new doc, write and click on the Storage list.  File is written to iCloud.
    iA Wrtier on Mac: 
    Write file and save locally, then choose: File>iCloud>Move to iCloud.
    To read a file:  File>iCloud>[choose file name]
    I should add that files read by iA Writer must be files created by iA Writer, either on same device/computer or another.
    -- OR --
    I may have misunderstood your post.  If my ipad is not connected to the internet, I can still open a file I had saved on iCloud (only this is the "local" copy of it).  When I'm done, it's saved locally but when I turn on wifi and access the file again and then press the Storage List icon, the file is saved to iCloud.  Are you saying that you can't open a local copy when not connected to wifi?

  • Why do shadows appear before the letters when using the write-on effect

    I am using the write-on effect.  I am casting shadows on a wall but the shadows of the letters are appearing whole prior to the letters being written.  How can I get the shadows to appear in sync?

    I apologize for not supplying enough information.  I am using AE CS6 and I am using 3D layers with lights. I have also used a single layer for each letter in the message that is slowly appearing.  The lights are creating the shadows but are rendering the shadow before the effect write-on, as the shadow letter appears first.  Then the letter is drawn second.  I thought it must be something in the render order, but I couldn't figure out how to make it happen correctly.
    After I posted my question, I found an Adobe video tutorial on render-order.  Although the video didn't address my problem, it did remind me that an effect that I could use - drop shadows.  I inserted the drop shadow effect above the write-on effect on each letter and the world is good.  The shadow appears at the same time as the letter.  And with a whole lot less effort.
    I appreciate you taking the time to think about the problem.  If there is a simple solution I would still be interested in knowing what it might be.
    Steve

  • Problem using the Write to SGL VI and Read from SGL VI

    Hello Sir, I have a problem using the Write to SGL VI. When I am trying to write the captured data using DAQ board to a SGL file, I am unable to store the data as desired. There might be some problem with the VI which I am using to write the data to SGL file. I am not able to figure out the minor problem I am facing. I am attaching a zip file which contains five files.
    1) Acquire_Current_Binary_Exp.vi -> This is the VI which I used to store my data using Write to SGL file.
    2) Retrive_BINARY_Data.vi -> This is the VI which I used to Read from SGL file and plot it
    3) Binary_Capture -> This is the captured data using (1) which can be plotted using (2) and what I observed is the plot is different and also the time scare is not as expected.
    4) Unexpected_Graph.png is the unexpected graph when I am using Write to SGL and Read from SGL to store and retrieve the data.
    5) Expected_Graph.png -> This is the expected data format I supposed to get. I have obtained this plot when I have used write to LVM and read from LVM file to store and retrieve the data.
    I tried a lot modifying the sub VI’s but it doesn’t work for me. What I think is I am doing some mistake while I am writing the data to SGL and Reading the data from SGL. Also, I don’t know the reason why my graph is not like (5) rather I am getting something like its in (4). Its totally different. You can also observe the difference between the time scale of (4) and (5).
    Have a Good Day
    Regards,
    Krishna
    Attachments:
    LABVIEW_Files.zip ‏552 KB

    As already discussed a while ago, your binary data does not contain timing information. You need to tell it the scan rate so it can reconstruct the time axis correcty.
    From the data, it seems the sample file was recorded at 0.5MHz. Take the inverse and set the time increment. Voila!
    Your sample file is two column data with one colum all zero. You need to set the number of columns to two, to only get the good data in channel 1.
    Your acquisition program contains unecessary FOR loops, you can remove the inner loops without change in result.
    It makes no sense to convert to SGL if you initialize the shift registers with an empty DBL array. You need to initialize with an empty SGL array.
    (The code could be simplified quite a bit more, but this should give you some directions).
    The attached zip shows some ideas (LabVIEW 7.1).
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    LabVIEW_FilesMOD.zip ‏195 KB

  • Help documents for APIs that are to be used to write our own apllication

    Hi,
    Iam using SUP 2.1 ESD#1 licensed version,
    There are no help documents for the APIu2019s that are to be used to write our own application, so can some one provide me with some docs.
    Thanks,
    B.Ushasri

    They are available online... what platform are you writing for? I'm assuming youre writing a Native app?
    Ian

  • What mechanism Oracle 10g use for write (Insert/ Update) and Read (Select)?

    Hi
    What mechanism Oracle 10g use for write (Insert/ Update) and Read (Select)?
    Thank you

    Aren't the answers given in PL/SQL forum sufficient enough?Well, as the first answer in that forum directed the OP to this forum you can hardly blame them for the repost.
    There is some high-level stuff in the Concepts Guide. If that is insufficient the OP will need to tell us what more details they need to know (and perhaps why).
    Cheers, APC

  • I changed RFC but Webdynpro java still using old RFC, why?

    Hi,
    I changed RFC but Webdynpro java still using old RFC, why?
    How can I solve this problem?(Wihtout resetting j2ee engine.)
    Thanks.

    Cemil,
    check whether cache invalidation tool is installed on your portal or not.
    go to system administration-system configuration-webdynpro console-invalidate ARFC cache
    or you can reimport model using another jco connection.
    check this link for more details
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10465350-b4f5-2910-61ba-a58282b3b6df
    Thanks
    Bala Duvvuri

  • Save As dialog window disappears when trying to save or use pdf writer

    When I try to create a pdf using a pdf writer/printer, or even when i try to save a pdf file, the dialog box showing where to save it appears then immediately disappears before i can choose a name or location to save the pdf.  i have tried reinstalling the reader, reooting, reinstalling the pdf writer, nothing seems to work.

    I have tried multiple pdf writers including cutepdf and a proprietary pdf writer so I am pretty sure the problem lies within adobe reader.  Especially since the problem occurs when I just try to save the pdf and not use the writer.

  • I can't install Windows 8.1 on my Imac with Mavericks using Bootcamp. Why?

    I can't install Windows 8.1 on my Imac 27" with Mavericks using Bootcamp. Why? I first did all the software updates needed, downloaded the driver software to a 32Gb flash drive formatted as FAT32, fired up Bootcamp Assistant, inserted the Windows 8.1 Full version 64 bit installation DVD as requested, and got as far as partitioning (tried this at 82 Gb for the Windows partition), then the MAC rebooted but halted before getting to the login page. Then a black screen came up with the error message: 'non-system disk - Press any key to reboot'. I did this and nothing happened. I was forced to shut down forcibly then restart with my finger held down on the option key. Then a screen came up with two icons: the macintosh HD icon and the Windows DVD icon. I double-clicked on the Windows DVD icon and the MAC came up with another black screen and error message: 'CDBoot: Couldn't find BOOTMGR'. Had to shut down forcibly again and restart as before, this time ejecting the Windows DVD first. Then I repartitioned my MAC back to all OSX. What the **** do I do now? Applecare couldn't help me beyond this point. They said to contact Microsoft. I notice a lot of other MAC owners have had similar problems.
    Please help? tagjsmith.

    bootcamp does not currently support windows 8.1

  • IOS 5 used to allow Airplay between iPad (WiFi) and Apple TV (Ethernet) as long as they were on the same network. In iOS 6, now both the iPad and the Apple TV have to be on the same network and both have to be connected using WiFi ? Why did they change ?

    iOS 5 used to allow Airplay between iPad (WiFi) and Apple TV (Ethernet) as long as they were on the same network, i.e. connected to the same wired/wireless router. In iOS 6, now both the iPad and the Apple TV have to be on the same network and both have to be connected using WiFi ? Why did they change this ? Means that the iPad and the Apple TV box both have to be in range of the wireless router when this wasn't a restriction before. Apple TV could be anywhere as long as it was connected to the same wireless router via ethernet cable. Seems like an unnecessary thing to restrict.

    I have found with AppleTV that it is the IPV6 on the computer you want to access is the problem.  The issue is that Homegroup on Win 7 or Win 8 requires IPV6 to work, but AppleTV won't work with IPV6.  (So maybe double check you have IPV6 turned off)
    So you have to make a choice - Homegroup or AppleTV.... but you can't have both, until Apple brings ATV up to date. (crazy that it does not recognise IPV6 - c'mon Apple!)
    You can set up sharing individually in Win 7 or 8 and have the ATV access files that way.
    Having said that, there is always the exception.. I have an old HP home server running Win8 and it services ATV - but is part of the Homegroup... have no idea why it works on both, but no other machine on the home network will talk to both ATV and Homegroup at the same time!

  • Missing some fields using TRANSFER write to file

    Hi, Friends:
    I have a structure which has been populated with data, saying its name is "h_fkkcolfile", and it has 30 fields.
    The following statement is used to write its contents to one line of the output file, the file is in application server.
    TRANSFER h_fkkcolfile TO i_file_name.
    After the statement, we check AL11 for the contents of the file, we found only 19 fields has been written to the file, missing other fields.
    Thanks in advance.
    Liang

    Hi,
    In AL11 you can see only 512 char length, but when it download to local pc we can see all the fileds
    try to download the file using transactio code
    CG3Y and see the data.
    Regards
    Krishna

  • Using SO Write to play a continuous waveform using PC sound card. (Circular Buffers?))

    How can I play a continuous, repeating waveform using SO VI's (that isn't choppy)? I gather that I need to buffer the waveform, and I see examples using AO VI's, but how do you buffer using SO Write? What are Circular Buffers and might I use this technique to solve my problem?
    Windows ME
    Dell Inspiron 5000e
    LabView 6i

    Hi MGS!
    MGS writes:
    > How can I play a continuous, repeating waveform using SO VI's (that
    > isn't choppy)? I gather that I need to buffer the waveform, and I see
    > examples using AO VI's, but how do you buffer using SO Write? What
    > are Circular Buffers and might I use this technique to solve my
    > problem?
    >
    I've tried to do the same, i.e. synthesize a wave for continuous,
    non-choppy output, and have some un-solved problems.
    A buffer is sent to SO Write, which is then transfered to the device
    driver and the sound output hardware. The problem is how to refill the
    buffer that is sent SO Write, before the internal buffers of SO Write
    and/or the device driver or hardware empties their buffer, which would
    result in silence. We need a warning that the buff
    er is almost empty,
    so that more samples can be constructed. I've found no way to do that
    using LabView 5.1.
    However, we now how fast samples are consumed, so they can be produced
    at the same rate, or perhaps a little faster. If they are produced
    much faster, the memory will fill up, but if the difference is small,
    the program can run for quite a while. It was a year ago, or so, that
    I did this, so I don't remember the details.
    A circular buffer can be used in a multi-thread producer-consumer
    program. I've done it in C and C++, from some tutorial I found on
    threads, or maybe it was from the OSS (open sound system) for
    Linux. It is a buffer with a write position and a read position. The
    addresses wraps around, so it works a bit like a conveyor belt. The
    writer must check that the buffer is non-full, and the reader that it
    is non-empty. I'm not sure how to implement it i LabView, or if it's needed.
    Helge Stenstrom
    [email protected]

  • I like to know when i use fire fox why it take so much resource of my computer ? it almost 1/4 of my 4gig of memeory , ihave 6,7 page of firefox window open

    i like to know when i use fire fox why it take so much resource of my computer ? it almost 1/4 of my 4 gig of memory , i have 6,-8 page of firefox window open at cpu level its is almost 25% been used up. i see its taking too much resource i wonder why ?? how not to take so much and it crashes often.. any help,ive 24.0 ,

    Firefox add-ons take some memory. This amount varies depending on the add-on.
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * On Windows you can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac you can open Firefox 4.0+ in Safe Mode by holding the '''option''' key while starting Firefox.
    * On Linux you can open Firefox 4.0+ in Safe Mode by quitting Firefox and then going to your Terminal and running: firefox -safe-mode (you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    [[Image:FirefoxSafeMode|width=520]]
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    Does this decrease the memory usage? Please report back soon.

  • How to find report values using report writer

    hi,
    Please help me.
    How to find report values using report writer
    Regards,
    RRK.
    Edited by: Alvaro Tejada Galindo on Feb 6, 2008 12:01 PM

    Thanks all for the reply.
    I am trying to solve a problem where report parameter value that is set at Management Console is wiped out after calling replaceConnection.
    databaseController.replaceConnection(oldConnectionInfo, newConnectionInfo,
    null,DBOptions._doNotVerifyDB);
    We have to support changing database connection from a java utility
    class. But once replaceConnection is called all existing static parameter values are lost. To fix this issue we thought of getting parameters and values before calling replaceConnection and setting it after replaceConnection.
    Version is CS2008 SP3 - version 12.3.0.601
    If there is any other option of fixing the original wipe out issue?
    ParameterValues.getValues() didn't return value. I will try ParameterValues.getCurrentCalues() but the document says ParameterValues.getValues() is  equivalent to the IParameterField.getCurrentValues() method  unless it is empty, in which case it is equivalent  to the IParameterField.getDefaultValues() method.
    So getCurrentValues() may not work.

  • Cannot Open File In Reader 9 After Using CutePDF Writer

    After using CutePDF Writer to output a file from the print screen of Adobe Reader 9.0, I am unable to open it.  I get the error "Adobe Reader could not open 'filename.pdf' because it is either not a supported file type or because the file has been damaged."
    The file shows a Reader icon, but when I view it under Properties, it shows the file size as 0 kb.  Something went wrong on export...
    The file was created using Acrobat Pro 9.0.

    metaphiz wrote:
    After using CutePDF Writer to output a file from the print screen of Adobe Reader 9.0,
    The file was created using Acrobat Pro 9.0.
    You either used Cute or you used Acrobat. Which one?
    If Cute was involved and the file shows 0kb, then it's a CutePDF issue. You'll want to talk to their people about it.

Maybe you are looking for

  • Pdf file download problems

    I use the Adobe Creative Cloud file storage system to store and also share pdf files with my customers. When I need to share a pdf file, I create a link for the folder containing the correct pdf files. Then I paste the link to that folder into the bo

  • JTable Column Disabling

    i have a JTable with 2 columns, what i want is to disable one column while allowing editing in the other column. Now how can i disbale my fisrt column ? Pls help...

  • Issues with Safari 4 and Snow Leopard

    I had just installed Snow leopard and tried to run safari. I got an error message that said you can not run safari 4 public beta with this version of Mac os X. I went to the apple website and downloaded the new version of Safari 4 4.0.3 for Leopard a

  • Why no "n" for Mini?

    Is there some reason the Mac Mini is the only computer that does not have the "n" wireless capability? "n" has been out for over a year now and the Mini still does not have the "n" technology. Why Apple? I know it can be done as people have used the

  • Serial not detected, and cannot register serial.. .need a manual

    Hi! I am new to the IPod World... now, I have a big problem: if I want to fetch a manual from the IPod webpage, I am asked for a serial number. Everytime I enter the one on the back of my computer: 2CD5240X0R, it does say that this number is not a va