Can I control an Applet via JavaScript?????????????

Please Guys! Can I control an applet via JavaScript?
How????????????
Thanks
Renato

Great to see you back, bbritta! Problems with the
reauthentication stuff?The reauthentication was just another annoyance. I was getting fed up with answering posts for a variety of reasons (mostly because I don't have the patience you seem to have).
I got assigned to modify some old ColdFusion code. I thought it would be a nice change of pace having never done it before. Yick... Gak... I should have started over with JSP's, but the user insisted they wanted the old code modified. I have never seen so much cut and paste coding in my life. They actually got hold of the old developer and he was so proud of his code that I didn't have the heart to tell him what I thought of his efforts.
Anyway, a couple of weeks ago, I ran into a problem with an applet I wrote about a year ago and wanted to search the bug database. I reauthenticated fairly easily, but found out nothing had changed.
A couple of days ago, there was a post in advanced topics asking if the forums were any use. I saw Dana respond and I thought it might be a chance to discuss some of the problems I saw with the forum. I came back to see if there was any response, but it looks like there will never be any meaningful discussion between Sun & the members about the forums.
I have tried for a couple of years to just post a link to a search page if the answer could be easily found by searching. It seemed like a better thing to do than just saying 'Do a search!' I'm not sure anybody gets it though.

Similar Messages

  • How can I add a watermark via JavaScript that includes the current datestamp?

    Part of my daily work process here is to scan in a huge stack of inbound mail. I then OCR the scans, delete the blank pages, and add a watermark. I've got a batch process set up for the first two steps, but I can't make a watermark for the datestamp itself and need to do so via JavaScript, but I have a luddite-level understanding of it.
    As of right now, these are my settings I'm using to add the datestamp:
    What I want to do is run a script to do the same thing and insert the current date where I have mm-dd-yy currently, but I don't have the first clue of where to start. Any help you could offer would be hugely appreciated

    You can use the doc.addWatermarkFromText() method as a JavaScript step in an Action.
    for example
    var dt = new Date();
    var stoday = (dt.getMonth() + 1) + '-' + dt.getDate() + '-' + dt.getFullYear();
    this.addWatermarkFromText({
    cText: "Deposit\r" + stoday,
    nTextAlign: app.constants.align.right,
    nHorizAlign: app.constants.align.right,
    nVertAlign: app.constants.align.top,
    nHorizValue: -72, nVertValue: -72
    See the SDK Help files for information on what all the parameters do.

  • Can you control layer visibility via AS 3.0 ?

    I am new at flash.. but I can't seem to find this answer. I
    am building an app with 2 panels. A control/preferences panel and
    the main panel for the app. How can I control the visibility of
    each panel via AS 3.0 ? So if a user
    hits a button, up comes the preference layer. user closes
    this window. then back to the main layer.
    thanks a ton!
    mike

    Layers mean nothing to Actionscript -- they are merely a tool
    to help organize authortime created content. At publish they are
    use by the compiler to assign things to depths and then they go
    away. In a publish file there are no layers.
    The dominant paradigm in Flash (with respect to Actionscript)
    was the MovieClip. Now it is more the DisplayObjectContainer and
    the various classes that decend from there -- Sprite and MovieClip
    being most likely. I'm not as up on my AS3 as my AS2, so I might
    overlook a bit, but that is the general idea.
    So if you have a "panel" (we can't tell you what that is, you
    have to ell us!) and it is something distinct that needs
    controlling you should probably make it a MovieClip (if it has a
    timeline) and a Sprite if it is AS generated. Also each distinct
    type of those would maybe need its own external class to give it
    the methods and properties you would need to control and interact
    with it.

  • Controlling Browser Elements via JavaScript or ActionScript

    From within one Flash movie, I'd like to open another browser
    window containing a different Flash movie. The movie opens just
    fine, but I'd like to deactivate the menu bar, address bar, and
    toolbar.
    Questions:
    • Can I control/set these elements?
    • Should this be done with AS? With JavaScript?
    • I've heard that using JS to perform such a task is
    problematic in some browsers?
    Any help shedding light on these questions is greatly
    appreciated.
    Octothorpe

    I would suggest getting yourself a javascript primer if
    you're going to do any sort of web programming. I've found some
    free tutorials hosted by
    http://www.w3schools.com/
    really helps. Second, it looks like Dave's script is using a
    javascript function that's he's added to the page, it's not part of
    the standard javascript library. The real javascript command is
    window.open(params). There are many many examples on the web of how
    to do this given the right search. Just be aware that it's real
    easy to get confused on the quotes and parentheses required for any
    getURL command that calls javascript.

  • Can you control Apple TV via LAN from 3rd party control such as AMX or Crestron?

    I would like to know if you can control an Apple TV via LAN with a 3rd party control AMX or Crestron - is there an API available for this? Two way communication would be ideal!

    Become an Apple Developer and figure out how to do it. There may be an API on IOS to do it, but I'm going with Rudegar on this point. Almost certain that it's not possible.

  • Can I control Internet Explorer via LabVIEW?

    I want programmatic access to web pages via LabVIEW.  I have tried using "URL Get HTTP Document.vi" but am rejected at some sites.  I have controlled IE via VisualBASIC before.  Just wondered if it was possible via LabVIEW.
    Thanks in advance for any help.

    Hi,
    Well it depends on what exactly you want to do but with ActiveX you can control IE (or FireFox) from LabVIEW.
    See that thread for more info
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

  • How can I take a Snapshot via JavaScript?

    I need to set up a button that takes a Snapshot.
    Right now I have a button that arranges the view and then displays instructions for opening the Snapshot tool and single clicking the page.
    However, if the user changes the view before taking the picture, key information is lost.
    What JavaScript code would produce the same result as opening the 'Take a Snapshot' tool and single clicking the page?
    That would be the ideal solution, but if there is another way, I'm open to suggestions.

    Each form has a large amount of logic determining what options are available depending on what size, control, attachments, ect that have been selected further up the form.
    The option categories and number of option categories are all different for different product groups. Different settings need to be specified by the customer if they have selected particular combinations of options. It would be hugly complicated to combine them all together. And it wouldn't be pretty or easy to navigate through hundreds of settings to see what applies to your product...
    Maybe one day, when I have mastered creating PDFs. But even so, the file size would be larger and I would expect it to be slower + more random crashing. Trouble shooting or making any fundamental changes would be difficult.

  • Can I run an action via javascript?

    I would like to know if it is possible to configure acrobat to launch a custom action created from the action wizard on startup. I'd like to automate the process so that a user would not have to manually start the action, but simply start the program. Thanks.

    Thank you for your replies. I am new to Acrobat so I appreciate your help and patience.  In this case every user does have a license. We have used Acrobat for other purposes in the past. We were hoping to be able to use acrobat for this as well. However it sounds like running an action from javascript or some other source would be difficult. Does anyone know if it can be done and if so how to do it? If not I guess I'll just have to look into other options. Once again thank you all for your input.

  • Controll HTMLB:Checkbox via JavaScript

    Hi all,
    I`ve created a BSP application containing HTMLB:Checkbox components.
    In this example the checkboxes are organized as a three of 2 levels.
    When clicking/checking the parent checkbox, I want the rest of the checkboxes (children) to change status depending on their parent's status. e.g checked=true/false and disabled=true/false. The checkboxes become disabled/enabled, but you cannot see any change in their checked/unchecked status.
    Though this works fine with design="classic", it doesn't when using design="design2003"...
    I have to use design2003 in my application, and want to use HTMLB:Checkbox instead of regular HTML Checkbox- which also works.
    The javascript syntax follows:
    (it's from a loop containing all the children checkboxes)
    nodeEl = elements<i>;
    nodeEl.checked = true/false;
    nodeEl.disabled = false/false;
    I would have appreciated any kind of help.
    Ogert

    This is my intire code, Raja T. The Javascript works fine with regular HTML Checkbox, or HTMLB:Checkbox combined with classic design.
    **HTML CODE
    <%@page language="abap"%>
    <%@extension name="htmlb" prefix="htmlb"%>
    <%<htmlb:content design="classic">%>
    <htmlb:content design="design2003">
      <htmlb:document>
      <htmlb:documentHead>
      <script language='javascript' src='control_checkbox.js'></script>
      </htmlb:documentHead>
        <htmlb:form>
    <table width="309" border="1">
      <tr>
        <td width="299" bgcolor="#999999">
        <htmlb:checkbox id        = "E1"
                        text      = "Parent"
                        checked   = "true"
                        onClientClick = "check_chkbox('E1');"/>
        </td>
      </tr>
      <tr>
        <td><htmlb:checkbox id        = "00111820|Chk0102|E1"
                        text      = "Child 1.1.1.2"/>
        </td>
      </tr>
      <tr>
        <td><htmlb:checkbox id        = "00111820|Chk0103|E1"
                        text      = "Child 1.1.1.3"/>
        </td>
      </tr>
        </htmlb:form>
      </htmlb:document>
    </htmlb:content>
    **Javascript Code:
    var forms;
    var elements;
    function check_chkbox(id) {
      var el;
      var nodeEl;
      var splitname;
      var ind = 2;
      var name = id;
      var tempname = split_name(id,'',ind);
      if(tempname != '') {
        ind = 1;
        name = tempname;
      getCheckBoxes();
      el = document.getElementById(id);
      if(!eval(el.checked)) {
        for(i = 0; i < elements.length; i++) {
          splitname = split_name(elements<i>.id,name,ind);
          if(splitname != '') {
            if(elements<i>.id != id && name == splitname) {
              nodeEl = elements<i>;
              nodeEl.checked = false;
              nodeEl.disabled = true;
      else {
        for(i = 0; i < elements.length; i++) {
          splitname = split_name(elements<i>.id,name,ind);
          if(splitname != '') {
            if(elements<i>.id != id && name == splitname) {
              nodeEl = elements<i>;
              nodeEl.checked = true;
              nodeEl.disabled = false;
    function split_name(name,splitname,ind) {
      var split_array = name.split("|");
      var size = split_array.length;
      var string;
      if(size == 3) {
        if(splitname != '') {
          string = split_array[ind];
          array = string.split(splitname);
          if(array[0] == '') {
            return splitname;
        string = split_array[1];
        return string;
      return '';
    function getCheckBoxes() {
      var tempArray = new Array();
      if(elements == null) {
        tempArray = document.all;
    <%--    case Firefox, Netscape --%>
        if(tempArray == null) {
          forms = document.forms;
          tempArray = forms[0];
        elements = new Array();
        for(i = 0; i < tempArray.length; i++) {
          if(tempArray<i>.getAttribute("type") == "checkbox") {
            elements[elements.length] = tempArray<i>;

  • Can you control an itouch via an app on iphone?

    Hello,
    I have an itouch docked in an ihome standalone speaker/charger dock, any chance there is an app for an iphone for controlling volume, mute and track changes? Dock is across the room iphone usually in hand? I have searched and have not found any other references or solutions?
    Thanks for any input

    There is no apps to control a separate device from another device. But if you want just to play music with it, consider making a lot of nice playlists, and start to play them!
    Hope this helped!

  • Controling the flv via javascript

    I am looking for some tutorials on how to change the flv
    being played in a flash video component using javascript.
    Anyone have an idea of some good reading?

    I am looking for some tutorials on how to change the flv
    being played in a flash video component using javascript.
    Anyone have an idea of some good reading?

  • CRM 2011: Can you control which form is used based not security roles, but on a field value?

    I see that you can control which form is used based on security roles, but can you control it based on other field values?  I'd like a new record to use a different form until a given status is updated.  I have a status of draft and active. So
    it would be nice if I could use form1 for those in draft, form2 for those that are active.  But I only see where you can control that via the security roles.
    I can code all of this via JavaScript, but having the ability to use two separate forms would be nice.  Is that even possible.
    Best regards,
    Jon Gregory Rothlander

    Hello,
    Recheck following article - http://gonzaloruizcrm.blogspot.com/2014/11/avoiding-form-reload-when-switching-crm.html
    Dynamics CRM MVP/ Technical Evangelist at SlickData LLC
    My blog

  • Calling1.4.1 signed applet from Javascript causes keyboard/focus problems

    Pretty sure there's a JRE bug here, but I'm posting to forums before I open one in case I'm missing something obvious :-)
    This issue may be specific to IE, I haven't tested elsewhere yet. Our web application is centered around a signed applet that is initialized with XML data via Javascript. We first noticed the problem when our users started upgrading from the 1.3.x plug-in to the 1.4.x plug-in. The major symptom was that shortcut keys stopped working. I debugged the problem off and on for about a month before I boiled it down to a very simple program that demonstrates the issue (included below). Basically, the program has a function that adds a JButton to a JPanel and registers a keyboard listener (using the new DefaultKeyboardFocusManager class) that prints a message to the console. This function is called by the applet's init() method, as well as by a public method that can be called from Javascript (called callMeFromJavascript()). I also included a very simple HTML file that provides a button that calls the callMeFromJavascript() method. You can test this out yourself: To recreate, compile the class below, JAR it up, sign the JAR, and put in the same dir with the HTML file. Load the HTML file in IE 5.0 or greater, and bring the console up in a window right next to it. Now click the button that says init--you should see the small box appear inside the button that indicates it has the focus. Now press some keys on your keyboard. You should see "KEY PRESSED!!!" appearing in the console. This is proper behavior. Now click the Init Applet from Javascript button. It has removed the button called init, and added one called "javascript". Press this button. Notice there is no focus occurring. Now press your keyboard. No keyboard events are registered.
    Where is gets interesting is that if you go back and make this an unsigned applet, and try it again, everything works fine. This bug only occurs if the applet is signed.
    Furthermore, if you try it in 1.3, signed or unsigned, it also works. So this is almost certainly a 1.4 bug.
    Anyone disagree? Better yet, anyone have a workaround? I've tried everything I could think of, including launching a thread from the init() method that sets up the components, and then just waits for the data to be set by Javascript. But it seems that ANY communication between the method called by Javascript and the code originating in init() corrupts something and we don't get keyboard events. This bug is killing my users who are very reliant on their shortcut keys for productivity, and we have a somewhat unique user interface that relies on Javascript for initialization. Any help or suggestions are appreciated.
    ================================================================
    Java Applet (Put it in a signed JAR called mainapplet.jar)
    ================================================================
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class MainApplet extends JApplet implements KeyEventDispatcher
        JPanel test;
        public void init()
            System.out.println("init called");
            setUp("init");
        public void callMeFromJavascript()
            System.out.println("callMeFromJavascript called");
            setUp("javascript");
        private void setUp(String label)
            getContentPane().removeAll();
            test = new JPanel();
            getContentPane().add( test );
            JButton button = new JButton(label);
            test.add( button );
            test.updateUI();
            DefaultKeyboardFocusManager.getCurrentKeyboardFocusManager().addKeyEventDispatcher(this);
        public boolean dispatchKeyEvent(KeyEvent e)
            System.out.println("== KEY PRESSED!!! ==");
            return false;
    }================================================================
    HTML
    ================================================================
    <form>
    <APPLET code="MainApplet" archive="mainapplet.jar" align="baseline" id="blah"
         width="200" height="400">
         No Java 2 SDK, Standard Edition v 1.4.1 support for APPLET!!
    </APPLET>
    <p>
    <input type="button" onClick="document.blah.callMeFromJavascript();" value="Init Applet via Javascript">
    </form>

    I tried adding the requestFocus() line you suggested... Same behavior.
    A good thought, but as I mention in my description, the applet has no trouble gaining the focus initially (when init() is called). From what I have seen, it is only when the call stack has been touched by Javascript that I see problems. This is strange though: Your post gave me the idea of popping the whole panel into a JFrame... I tried it, and the keyboard/focus problem went away! It seems to happen only when the component hierarchy is descended from the JApplet's content pane. So that adds yet another variable: JRE 1.4 + Signed + Javascript + components descended from JApplet content pane.
    And yes, signed or unsigned DOES seem to make a difference. Don't ask me to explain why, but I have run this little applet through quite a few single variable tests (change one variable and see what happens). The same JAR that can't receive keyboard events when signed, works just fine unsigned. Trust me, I'm just as baffled as you are.

  • Can we make a Applet -- Javascript to Managed Bean call Multiple times and vice a versa using a loop?

    Hi,
         I have a requirement wherein im uploading multiple files using an Applet to ADF. With the file sizes relatively lower this works fine but now we have a request to upload bigger files, so the only option i could find is to send the uploaded file data in smaller chunks from the applet to ADF serverside code. But if i want to keep my previous design wherein i was passing the filedata in an encoded string format from the applet to ADF via javascript, i observed that Applets are not able to call a managed bean more than one time and thus only the data sent in the first chunk is received at the client side.
    Could you please provide me with a direction here?

    Can you help understand why you want to use Applet?  Anyhow, check out,  JUpload project on Sourceforge - JUpload - File Upload Applet - General presentation
    for some lead. Not sure if this would help, but no harm checking.

  • Can't control iphone via car dashboard anymore

    I have a 2014 Hyundai Accent that has an iPod USB connector.  Until about a few days ago I was able to play things using the dashboard of the car.  All of a sudden now, when I plug in the iPhone nothing will play.  I have to manually press Play on the iPhone itself to get it to play or switch songs (as you might imagine this is very bad as I can't do this while driving).  If I press the "Seek" button on the dashboard, it will skip through the music but it won't actually play it, and when I select a Podcast or a song, it will display in the dashboard console but won't actually play unless I start it from the iPhone itself.  I can control the volume and change tracks but it seems like it's not recognizing it.
    This doesn't seem to be a thing with the car, since it was working fine up until a few days ago, but I'm not sure if I accidentally hit something or turned some feature on/off on the phone that's stopping this. 
    Anyone have any ideas?

    Hi, The Ruby Warlock.  
    Thank you for visiting Apple Support Communities.  
    I understand that you are unable to control your iPod via your car controls.  I have experienced this issue myself and forcing all open applications, restarting your phone may resolve this issue.  Make sure to try additional cables as well.  If this issue persists, try the remaining troubleshooting steps in the second article below.  
    Force an app to close in iOS
    http://support.apple.com/kb/ht5137
    Get help using your iPhone, iPad, or iPod touch with your car stereo
    http://support.apple.com/en-us/HT203412
    Cheers,
    Jason H.

Maybe you are looking for

  • Passing a login and password while using JNDI  for RT jobs

    Why can we not pass a user name and password when using JNDI for Real Time jobs?  Can it be passed in the URL line or somewhere else that I'm missing?  This is frustrating as we actually have to connect using Anonymous with no password which opens up

  • [SOLVED] RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911 won't compile

    Everytime I attempt to compile this driver that I downloaded from RealTek's website I run into a problem. Here's my make install output: http://pastebin.com/rQWGKYxK Anybody know of a solution? Last edited by eattheapple (2014-07-22 18:33:34)

  • Alter number of CPU's used by Solaris

    Regarding a performance test being done on some databases running on Solaris 10, I'd like to alter the number of CPUs being used by the system. Currently there is 4 CPUs available and all are used, but I'd like that only 2 of them are to be used. (Ph

  • Btns & mcs

    I just upgraded from CS2. I am creating drop nav menu for html site because spry is too generic looking, and no one in DW forum answered my question regarding customization. My problem is that in CS3, flash is telling me that I cannot add an action t

  • How do I make sidebar div move with the content div in Firefox 14?

    Hello, The sidebar div blocks the content div in Firefox 14 when the browser window is resized smaller. In other browsers, this is not a problem. The website url is: www.gaddislaw.com Thanks for your help!