Call JavaApplet from HTML/Javascript/Php on the button click

Hello guys!
I have a JAR file, to establish telnet sessions. Everything is working with this simple piece of HTML code:
<html>
<body>
<applet CODEBASE="."
ARCHIVE="Telnet.jar"
CODE="Telnet.Applet"
WIDTH=500 HEIGHT=300>
</applet>
</body>
</html>
But there is something more. :)
I wan't to make a network topology with MS Visio , click on the Router, Switch or on the Firewall icon , and just then run that Java applet.
I can't find any good example how to achieve this. Maybe this is possible by running Java Applet from Javascript ? Etc. "onClickButton" ?
Thank you for your time and your answers.
Any help is highly appreciated!

Dear programmers,
could you take a look there, this is a real world example.
login there with username: test12345 and password: test12345
http://e-learning.nil.com/
Then go there, and press "start lab"
http://e-learning.nil.com/C1257448003E0C9B/ep?readform&pid=lab&code=PA8VVMC3MNT
Click on the router icon, telnet application will show up.
If not , go to profile-> devices access, choose " use java applet".
How this is done without JNLP? Without downloading JNLP file? Java applet shows up like an application, and not in the new browser window?
Thank you very much for your time!

Similar Messages

  • I can no longer sync Callander from outlook to my iPad the button has disappeared from iTunes what do I do

    Why can I no longer sync my Calendar from outlook to my iPad the button has gone from iTunes why.

    Calendar data is now synced through icloud not local itunes.
    Make sure it is setup under Settings>Icloud & Settings>Mail, Contacts, Calendars

  • How to return java objects on the button click

    hello all,
    i wonder if any body let me know ,how to return java objects on button click,
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    class base
         base()
              JFrame frame = new JFrame("Base class Message Dialog Box");
              JPanel panel = new JPanel();
              JButton buttonchildone = new JButton("Child class one");
              buttonchildone.addActionListener(new ActionListener(){
                   public actionPerformed(ActionEvent e)
                        childone ch1=new childone();
                   return ch1;
              JButton buttonchildtwo = new JButton("Child class two");
              buttonchildtwo.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent e)
                        childtwo ch2=new childtwo();
                        return ch2;
              panel.add(buttonchildone);
              panel.add(buttonchildtwo);
              frame.add(panel);
              frame.setSize(300, 300);
              frame.setVisible(true);
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         void show()
              System.out.println("Base class show() method");
    public class mainmethod
         public static void main(String[] args)
              base baseobj=new base();
    here my aim is to achieve dynamic polymorphism by button click's ,where based on the button click i can send back an object of childone or childtwo classes
    thanks and regard
    Mac
    Message was edited by:
    LoveOpensource

    You probably need to rethink your design. Where are these child classes going? What is using or consuming them? I agree with the message above about a button instantiating a parent field variable to one child or the other depending on which button is pressed.
    Message was edited by:
    petes1234

  • How to get the value from a JavaScript and send the same to Java file?

    Hi.
    How to get the value from a JavaScript (this JS is called when an action invoked) and send the value from the JS to a Java file?
    Thanks and regards,
    Leslie V

    Yes, I am trying with web application.
    In the below code, a variable 'message' carries the needed info. I would like to send this 'message' variable with the 'request'.
    How to send this 'message' with and to the 'request'?
    Thanks for the help :-)
    The actual JS code is:
    function productdeselection()
    var i=0;
    var j=0;
    var deselectedproduct = new Array(5);
    var message = "Are you sure to delete Product ";
    mvi=document.forms[0].MVI;
    mei=document.forms[0].MEI;
    lpi=document.forms[0].LPI;
    if(null != mvi)
    ++i;
    if(null != mei )
    ++i;
    if(null != lpi)
    ++i;
    if(null != mvi && mvi.checked)
    deselectedproduct[++j]="MVI?";
    if(null != mei && mei.checked)
    deselectedproduct[++j]="GAP?";
    if(null != lpi && lpi.checked)
    deselectedproduct[++j]="LPI?";
    if( 0!=j)
    if(i!=j)
    for (x=0; x<deselectedproduct.length; x++)
    if(null != deselectedproduct[x])
    message =message+ "-" +deselectedproduct[x];
    alert(message);
    else
    //alert(" You cannot remove all products!");
    return false;
    return true;
    }

  • Calling function from html tag in dynamic textfield

    Hi!
    Tried several approaches for making this happen, but can't seem to do it. I could really use an example of how to do this in my particular case, since I'm not exactly a code - guru.....
    I have a sprite menu which populates a dynamic textfield  with textlabels as users click individual items in the menu in addition to ordinary actions(gotoAndStop).
    As these labels appear in the textfield, I want to be able to link them to the frames assosciated with the menu - item frames. As you can understand from this, I am working with the timeline.
    By enabling  html rendering of text in the textfield, I have been able to link these output labels via a  a href - tag, but I am not able to call a function from this html. The function I am trying to call uses a switch statement to take the appropriate actions according to which label is being clicked, but the only effect I get is the html opening a browser window...... Unfortunately I do not know how to explain this any better, but here is my code for the following:
    Main Timeline, frame 1, actions layer:
    [AS]import flash.display.*;
    import flash.events.*;
    import flash.display.Stage;
    var buttonTrace:TextField;
    var sectionNames:Array = new Array("Frontpage","Introduction",
    "Designparadigm", "Tooling", "Maya & c++ API", "Geometric Vectors","Lindenmayer systems","Artificial Life",
    "Projects","Litterature","Disclaimer","Site credits","Newsletter & Rss",
    "Blogging","Plugins","LINKS");
    var sectionCount: int = sectionNames.length;
    var menu:Sprite = new Sprite();
    menu.x = 452;
    menu.y = 172;
    this.addChild(menu);
    buildMenu();
    function buildMenu():void {
    for(var i:int=0; i < sectionCount ; i++){
    var item:MovieClip = new MenuItem();
    item.labelName = sectionNames[i];
    item.targetClip = this;
    if(i<4){
    item.y = i*125
    menu.addChild(item)}
    else if (i>3 && i<8){
    item.y = (i-4)*125
    item.x = 125
    menu.addChild(item)}
    else if (i>7 && i<12){
    item.y = (i-8)*125
    item.x = 250;
    menu.addChild(item)}
    else if (i>11 && i<16){
    item.y = (i-12)*125
    item.x = 375
    menu.addChild(item)}
    }[\A]
    Then, for the movieclip called MenuItem, I have button placed on the first frame of the timeline, and this code in the actions layer:
    [AS]import flash.display.MovieClip;
    import flash.events.MouseEvent;
    import flash.display.Stage;
    import flash.text.TextField;
    import flash.events.Event;
    import flash.events.TextEvent;
    var buttonTrace:TextField;
    var labelName:String;
    var targetClip:MovieClip;
    clickButton.addEventListener(MouseEvent.CLICK, onClick);
    function onClick(evt:MouseEvent):void {
    trace(labelName);
    targetClip.gotoAndStop(labelName);
    MovieClip(root).buttonTrace.appendText("\n" + labelName);
    MovieClip(root).buttonTrace.addEventListener(TextEvent.LINK,linkHandler);
      function linkHandler(linkEvent:TextEvent):void {
      switch (linkEvent.text) {
      case"Introduction":
      var text= "Introduction";
      text.addEventListener(TextEvent.LINK,"Introduction");
      trace("Listening");
       Intro();
       break;
      case "Designparadigm":
       DP();
       break;
      case"Tooling":
       Tooling();
       break;
      case "Maya & c++ API":
       MayaAPI();
       break;
      case "Geometric Vectors":
       GeometricVectors();
       break;
      case "Lindenmayer systems":
       Lsystems();
       break;
      case "Artificial Life":
          AL();
       break;
      case "Projects":
          Projects();
       break;
      case "Litterature":
          Litterature();
       break;
      case "Disclaimer":
          Disclaimer();
       break;
      case "Site credits":
          Sitecredits();
       break;
      case "Newsletter & Rss":
          Rss();
       break;
      case "Blogging":
          Blogging();
       break;
       case "Plugins":
          Plugins();
       break;
      case "LINKS":
          LINKS();
    function Intro():void {
    targetClip.gotoAndStop(2);
    function DP():void {
    targetClip.gotoAndStop(3);
    function Tooling():void {
    targetClip.gotoAndStop(4);
    function MayaAPI():void {
    targetClip.gotoAndStop(5);
    function GeometricVectors():void {
    targetClip.gotoAndStop(6);
    function Lsystems():void {
    targetClip.gotoAndStop(7);
        function AL():void {
    targetClip.gotoAndStop(8);
    function Projects():void {
    targetClip.gotoAndStop(9);
    function Litterature():void {
    targetClip.gotoAndStop(10);
    function Disclaimer():void {
    targetClip.gotoAndStop(11);
    function Sitecredits():void {
    targetClip.gotoAndStop(12);
    function Rss():void {
    targetClip.gotoAndStop(13);
    function Blogging():void {
    targetClip.gotoAndStop(14);
    function Plugins():void {
    targetClip.gotoAndStop(15);
    function LINKS():void {
    targetClip.gotoAndStop(16);
    MovieClip(root).buttonTrace.htmlText="<a href=\'function:linkHandler,?????'>History</a>";
    [\A]

    as3 textfields have a TextEvent.LINK you can use.

  • IOS7 Bug: Why is that i can only making an call works from notification area without unlocking the Phone using the passcode

    Hi,
    After upgrading to iOS7, I was asked by the system to set an passcode.
    When i try to swipe from the notification area, it navigates me to the passcode lock screen which is expected but the same behaviour is not shown for a call - when i swipe from my notification area for the missed call it allows me to make calls.
    Is this a bug or expected behaviour? Why there is a different behaviour for different functionalities? Its just to confuse the users?

    It sounds as if you only had one line with an upgrade available. So you can only upgrade one line. For you to upgrade as well, you will have to wait until your upgrade is available. You can check that at MyVerizon. That's just how it works. All carriers and phone brands are the same. I have to wait until February to upgrade. The only thing you can do to get the new iPhone, is add a new line. But then you're paying for a line you don't need.

  • Calling VA01 from Report,how to get the Sales Order  No when Back.

    Hi all,
    I have a requirement of calling va01 from the report and have done that using
    did recording ...&
    call transaction va01 using bdcdata.
    but my problem is when back from that trasaction i have to get the sales order that is created . Is it possible to retrieve that value from va01 .i am unable to get . anyone pls share

    Use the addition MESSAGES INTO itab with call transaction va01 using bdcdata.
    Effect of MESSAGES INTO itab:
    Using this addition, all the messages sent during batch input processing are stored in an internal table itab of the type BDCMSGCOLL from the ABAP Dictionary.
    If the call transaction is successful then retrieve the last message from itab and then in any field among MSGV1,MSGV2,MSGV3,MSGV4 of itab u will get the document no.
    And when doing the call transaction pl. choose update mode as 'S' or 'L'.
    Regards,
    Joy.

  • Calling JSP from HTMl

    Hi,
    I want to call a JSP file from HTML. Is it possibel? How can it be done.
    Thanks.

    download a standalone server like tomcat or jswdk. tomcat is recommended.
    if you know how to write html then make a form with your action forwarding to your jsp page and use a post or get method. actually just look here.
    http://www.coreservlets.com/Apache-Tomcat-Tutorial/

  • Error in calling servelt from html file

    Hi All,
    In my application
    Servlet class looks like this:
    import java.io.IOException;
    import java.io.PrintWriter;
    import java.util.Iterator;
    import java.util.List;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class SelectBeer extends HttpServlet {
         public void doPost(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException {
         response.setContentType("text/html");
         PrintWriter out =response.getWriter();
         out.println("Beer Selection Advice<br>");
         String c= request.getParameter("color");
         out.println("<br>Got beer color"+ c);
         BeerExpert be = new BeerExpert();
         List list=be.getBrands("amber");
         Iterator it = list.iterator();
         while(it.hasNext()){
              out.print("<br>try:"+it.next());
    }The XML file as follow:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <web-app version="2.5"
         xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
         http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
      <servlet>
        <description>This is the description of my J2EE component</description>
        <display-name>This is the display name of my J2EE component</display-name>
        <servlet-name>HelloWorld</servlet-name>
        <servlet-class>HelloWorld</servlet-class>
      </servlet>
      <servlet>
        <description>This is the description of my J2EE component</description>
        <display-name>This is the display name of my J2EE component</display-name>
        <servlet-name>SelectBeer</servlet-name>
        <servlet-class>Test/SelectBeer</servlet-class>
      </servlet>
      <servlet-mapping>
        <servlet-name>HelloWorld</servlet-name>
        <url-pattern>/servlet/HelloWorld</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>SelectBeer</servlet-name>
        <url-pattern>SelectBeer</url-pattern>
      </servlet-mapping>
      <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
      </welcome-file-list>
    </web-app>The html file as follow:
    <html><body>
    <h1 align="center">Beer Selection Page</h1>
    <form method="POST"action="Test/SelectBeer">
         Select beer characteristics<p>
         Color:
         <select name="color" size="1">
              <option>light
              <option>amber
              <option>brown
              <option>dark
         <select>
         <br><br>
         <center>
              <input type="SUBMIT">
         <center>
         </form></body></html>but after running the form.html i am geeting Selelctbeer is unavailable?
    Could you please explaing if i am missing anything?
    Regards,
    Divya

    hi,
    make sure that the class is in the package TEST.
    manik;

  • How can I stop iTunes from launching when I hit the button on my head phones

    On my MBP I have some head phones that have an inline mic with call answer button. The button on the head phones is fairly sensitive and I tend to bump it on accident often. When I hit the button iTunes is launched or if I have it open it starts music.
    Is there anyway to stop this from happening? This is driving me crazy!

    This problem has been an issue for a number of months and has led to frustration and public humiliation on countless occasions.
    When disconnecting from my Bose Soundlink at home (playing nothing) in order to taking my laptop on the run I open my laptop to find that the entire contents of my iTunes playlist is being belted in public. The subway, the library, my classroom is not the time or place for my laptop to make the decision to begin playing my music without permission. When at home and my Soundlink goes on standby I have nearly had a heart attack when my laptop spontaneously begins blaring my music when I wasn't even touching the thing.
    I love my Soundlink and I love my Mac but together the devices are causing no end of aggravation with no fix in sight. With each OS update I hope the problem is addressed but to no avail, it is getting tiresome that such a flaw isn't being fixed in a timely manner.

  • Call the button click event programmically

    I have customised the billing.aspx page.  I now need to programmically call the click event of the continue image button to continue to the next page.  I can't fire the click event.  Does any one know the click event name of the continue button?
    I've tried using this line to call the event
    this.btnNext_Click(this, new EventArgs());
    or
    this.btnNext_Clicked(this, new EventArgs());

    Thomas,
    You could also just click the button client-side with javascript:
    function clickTheButton(theButton){
        fireAnEvent(theButton,'click','MouseEvents');
    function fireAnEvent(theControl, evtName, theModule){
        if(document.createEvent){
            var evObj = document.createEvent(theModule);
            evObj.initEvent(evtName,true,true);
            theControl.dispatchEvent(evObj);
        else if(document.createEventObject) {
            theControl.fireEvent('on' + evtName);
    Cheers,
    Corbin

  • Switching tabbed panels on the button click

    I have a form where I am using spry tabbed panels. What I am
    trying to do is to switch to the panel 2 after I click on the next
    button of the panel 1

    The redirection works fine when I define the button as
    type=button" but what if I need the submit type. What I trying to
    od is to select value from the drop dowen and set the session
    variable and then redirect to a different tab so I can use that
    session variable

  • Confirm message to be displayed on the button click of the page

    Hi all
    I have a page with a button and some conditions on the button , now I want to display a pop-up message like a "Confirm message " , "Would you like to perform this action ?" , before that conditions are satisfied .. I am new to javascript and not sure of how to go about this .... can anyone has any ideas please !
    Would appreciate your response.
    thanks
    r

    Hi,
    In Apex 4 there is documented JavaScript function apex.confirm.
    http://download.oracle.com/docs/cd/E23903_01/doc/doc.41/e21676/javascript_api.htm#CHDGHCBE
    Change your button action to be "Redirect to URL" and enter to URL Target
    javascript:apex.confirm('Submit data ?', 'SUBMIT');Change text and request according your needs
    Regards,
    Jari

  • Calling LabView from ASP or PHP ?

    Hi;
    I was wondering if someone could help me.
    I need to control a spectrum analyzer remotely.. The VI's are ready, and I would Like to call/Run them from ASP/PHP in order to enable the remote client to interact with the VI's via a normal Web Browser.
    Tips:
    client should be able to send the VI's some data(variables).
    Get the results back and display it on the web page.
    Kind Regards
    K.S.
    Student

    In that case, you might want to check http://www.jeffreytravis.com/. He has a book called "Internet Applications in LabVIEW". The book was written before 6.0 introduced remote panels. There's also an application there available for download called LabVNC that might work for you. I haven't tried it but it sounds like it would do the trick.

  • Converting from HTML to php

    Generally Dreamweaver provides good support for changes to
    templates, and
    automatically updates all the files using a particular
    template when you change
    that template. However this breaks down if you change a
    template, or a file, to
    .php. Dreamweaver regards this as creating a new file, and
    does not offer to
    update links.
    My master template was basicpage.dwt. I created a new dynamic
    page, copied the
    guts of basicpage.dwt into it, and then saved it as basic
    page.dwt.php.
    I didn't really expect Dreamweaver to recognise that this was
    replacing
    basicpage.dwt, but when I opened the template directory I was
    surprised to find
    that it did not show the extensions, just two files
    basicpage. So I renamed
    basicpage.dwt.php to basicphpage.dwt.php so I could tell them
    apart. Then I
    opened index.htm, attached it to basicphpage.dwt.php,
    inserted some php to
    verify that it worked and resaved it as index.php. I uploaded
    to my file server
    and verified that the php worked. I also found that my host
    system loaded
    index.php by default.
    Next I opened one of the existing subsidiary templates,
    attached it to
    basicphpage.dwt.php, and resaved it. Dreamweaver saved it
    with the correct
    extension, but again did not recognise that I had changed the
    template.
    Next I opened one of the dependent files, attached it to the
    new template, and
    resaved it. Again Dreamweaver regarded this as creating a new
    file, and did not
    offer to update links. So when I convert each template I will
    then have to open
    every existing page using it, manually attach the new version
    of the template to
    it, and manually update all the links in it, or referring to
    it. Drat!
    It looks as if I should only convert those pages which I want
    to be dynamic, and
    only do so when I am ready to add the new functionality.
    Clancy

    Yeah. Clancy only wants to hear his truth....
    No offense, Clancy, but my dogma beats your dogma.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "(_seb_)" <[email protected]> wrote in message
    news:[email protected]...
    > sorry for the dogma. I'll stop
    >
    > (_seb_) wrote:
    >> I sure do get your point. learning all that stuff is
    rather boring in
    >> itself. That's what I've told myself for years,
    until I dived into PHP
    >> (with a book at first, but now I just go to
    >>
    http://us3.php.net/manual/en/)
    whenever I need to learn something new.
    >>
    >> Once I did, and once I managed to setup a local
    testing server on my
    >> machine, I was surprised at how easy it was to learn
    the basic stuff that
    >> allows content architecture management. It took me
    about two weeks to
    >> learn the most useful techniques (how to generate
    html code with php, how
    >> to include remote files, how to use arrays, how to
    use conditionals).
    >>
    >> Now that I know that, I enjoy building websites much
    more, and I can do
    >> it much faster. For one thing, you say you have 'a
    total of 300 to 400
    >> pages'. That's a problem with static sites. Pages
    number has become an
    >> irrelevant concept since I use PHP. My sites rarely
    have more than 10
    >> 'pages', even if the visitor can navigate through
    vast ammounts of
    >> content. Because PHP templates allow me to generate
    pages on the fly,
    >> depending on what content needs to be displayed, so
    I can add content
    >> without having to build new pages... That's a lot of
    fun to build sites
    >> that way. I also can offer much more to my clients
    in terms of
    >> flexibility and content management, which allows me
    to charge them
    >> more... Website maintenance is a breeze. If I had
    known what
    >> possibilities it would open and how it would
    optimize my workflow, I
    >> wouldn't have waited so long to dive into it.
    >>
    >> But of course there is a time for everything. I just
    couldn't recommend
    >> anything more than learning a server-side language,
    to anybody who wants
    >> to make a living of webdesign (and have fun doing
    it).
    >>
    >> Clancy wrote:
    >>
    >>> "(_seb_)" <[email protected]> wrote:
    >>>
    >>>
    >>>> if you use PHP I don't see why you would use
    Dreamweaver templates.
    >>>> You can do with PHP more, better, and fatser
    in terms of content
    >>>> architecture (i.e. really functional
    templates) than what DM templates
    >>>> can do. AND, your dynamic PHP templates
    won't be dependent on
    >>>> Dreamweaver's UI.
    >>>
    >>>
    >>>
    >>> I have been working on my several web sites for
    about four years now,
    >>> and
    >>> probably have a total of 300 to 400 pages. These
    work, I think they
    >>> look
    >>> attractive, and user feedback has been
    favorable. If I had nothing
    >>> better to do, I could probably spend a year or
    so working out
    >>> how to do the same job without using templates.
    The resulting new
    >>> design MIGHT
    >>> be significantly easier to modify, and perhaps
    even to maintain, but the
    >>> new
    >>> pages would probably look much the same (I like
    the way they look now!),
    >>> and I
    >>> very much doubt if the visitor would notice the
    difference.
    >>> I can see that there are a number of minor
    improvements I will be able
    >>> to make
    >>> to my sites, once I have mastered php and mysql,
    but the one major
    >>> incentive I
    >>> have for learning them is that I have a number
    of photo albums, and it
    >>> will be
    >>> much easier to add new photos once I have set up
    a database. I have
    >>> already passed my biblical 'use by' date, and I
    don't feel that I have a
    >>> year to throw away just to make my web sites
    comply with someone else's
    >>> dogma.
    >>> I have a lot more material I would like to add
    to my various web sites,
    >>> and I
    >>> feel that this would be a much more profitable
    use of my remaining time,
    >>> to say
    >>> nothing of it being much more fun.
    >>>
    >>>
    >>> Clancy
    >>
    >>
    >>
    >
    >
    > --
    > seb ( [email protected])
    >
    http://webtrans1.com | high-end web
    design
    > Downloads: Slide Show, Directory Browser, Mailing List

Maybe you are looking for

  • SAP FC: Upload master data

    Hi, I need to upload the master data of my dimensions. I know I can copy the row from an excel file and paste them into my dimension. However I need to upload directly an entire .csv file as we do with the data of a package, or for example using an E

  • How to write XSLT codeing in file to file using XSLT mapping?

    Hi , Experts, I am new to XSLT coding as iam doing File to File XSLT Mapping for i have created IR and ID part and i have wriiten XSLT codeing which is not working. source structure:                     Target structure Fname                         

  • ALTER SESSION  COMITT NOWAIT

    I have a client / server service which receives messages and inserts log records into a table. There are only inserts and this is not a bulk load operation. Is there a way to alter the session of the connection with odp.net to commit no wait? From sq

  • I need help is takeing a solaris 9 soc drive to work in solaris 10

    I need to get a Sparc Storage Array to run under solaris 10. The soc driver that is needed is not supportted under solairs 10. I took the packages needed off of solaris 9 cds and installed them but no luck. I tried to to do a modload and modinfo but

  • Call objective c Method using javascript

    how can i call objective c mehod using javascript..........