Easiest way to pass GET parameters to applet - Javascript really required??

I want to transfer GET parameters to an appelt, i.e. in the call
http://***/test.html?param1=abc&param2=def
the param/values should be available in the applet.
After some searching I've got the impression that this requires Javascript
(http://stackoverflow.com/questions/12585022/how-to-pass-values-from-html-page-to-java-applet),
but I would like to avoid this...
Any help appreciated,
Dieter

found something:
http://docs.oracle.com/javase/tutorial/deployment/applet/invokingAppletMethodsFromJavaScript.html
http://stackoverflow.com/questions/14016972/call-java-applet-function-from-javascript
and this is doing the trick, the Applet has Setters for my params
<html>
<head>
<script language="Javascript">
function readGetParams(){
   x = window.location.search.replace("?","");
   y = x.split("&");
   v1 = y[0].split("=")[1];
   v2 = y[1].split("=")[1];
   //alert( p1 + " -- " + v1 + " -- " + p2 + " -- " + v2);
   document.getElementById("fscapp").setUserID(v1);
   document.getElementById("fscapp").setCourseID(v2);
</script>
<title>FS Control Panel</title>
</head>
<body onload="readGetParams()">
<h1>FS Control Panel</h1>
<applet code="fsc.class" archive="fsc.jar" id="fscapp" width=500 height=500>
</applet>
</body>
</html>

Similar Messages

  • Any Easy Way to pass initial parameters to a VI created with New VI?

    In LabVIEW 2010 I can use OpenG's New VI function to create and launch a VI that is built from a template.
    Is there any easy way to pass initial parameters from the VI that creates the New VI to the New VI that will be available as soon as the New VI starts?

    Check out the Control Value Set invoke node. I personally don't like this node, and tst has got a great suggestion to promote cleaner, less fragile syntax for launching VI's dynamically that require input parameters.
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

  • How to pass GET parameters from BPEL to webservice?

    Hi,
    How can I pass GET parameters to webservice from BPEL. For example if a webservice expects to get 2 parameters as GET parameters like the following URL:
    http://xxx.xxx.xxx.xxx/some-web-service?parama=abc&paramb=123
    How can I pass parama and paramb to the webservice call?
    Thanks,
    Ronen

    Hello Ronen,
    Im assuming that you're using SOA Suite 11g. The developer guide describes the following: http://docs.oracle.com/cd/E29505_01/dev.1111/e10224/sca_bindingcomps.htm#CHDEEGDC
    And the following blogpost explains in detail how to implement https://blogs.oracle.com/reynolds/entry/oracle_http_adapter
    Good luck!
    Melvin

  • I was syncing everything to itunes and I tried to do my contacts, not knowing quite how. I ended up erasing all of them from my phone without any of them syncing to my computer or itunes. Is there any way I can get them back? I really need them all.

    I was syncing everything to itunes and I tried to do my contacts, not knowing quite how. I ended up erasing all of them from my phone without any of them syncing to my computer or itunes. Is there any way I can get them back? I really need them all.

    There are lots of ideas floating on the web for this particular issue - all of which I tried. I had the same problem and it turned out to be my USB cable. I thought the cable was fine as it would charge my phone and play but the data transfer pin was bent. I replaced the cable and it fixed the problem. Worth a shot as it is an easy fix!

  • Easiest way to pass data to/from subpanel?

    I am new to subpanels and am kind of overwhelmed by the various responses I've read on the forums about this issue.  Some people use named references, others user events, others queues...and right now I guess I've yet to see an example that was really clear for me to understand.
    In my case I have lots of different controls and indicators within my subpanel.  Two main things I need to do:
    1. I need to pass the VI that gets loaded into the subpanel a single string and a single numeric
    2. When there is an event on the subpanel (either a value change event for any control, or a mouse up event), I need to pass out a reference to the control that caused the event.  The top-level VI will then process the top level event.
    So that's it....2 inputs (1 string, 1 numeric), 1 output (a ctrl ref).  Both inputs will be changing regularly as data from a telnet connection is read, and the output is driven entirely by user interaction with the subpanel (i.e. it's independent of the inputs).
    What's the easiest way to do this?
    thanks

    bmishoe wrote:
    I was thinking about it some more...the ctrl reference that I said I wanted to pass out - it could just as easily be a string.  The label of the control has indices as part of it's name that I use to index an array to extract a string.  There's no reason I couldn't do that within the subpanel and simply pass out the string itself.
    So to modify my question slightly - the VI loaded into the subpanel takes in a string and a numeric and outputs a string, and I want the top level VI to execute an event structure each time the output string changes.
    thanks...
    If that's how you want to handle it, you should have 3 inputs, String, Value and User event, and inside the VI you check if the string has changed, in which case you generate an event. The Main VI will subscribe to the event and execute it.
    The event has ofcourse string data so you'll send the data up to Main vi.
    Easier would ofcourse to simply have the string output from the subvi and update the main vi's indicator each time.
    Whether you show it in a subpanel or as a popup vi is just a visual thing, the VI should work the same.
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • Passing VM Parameters through Applet Tag

    Is there some way to pass Runtime JVM parameters through the Applet Tag?
    something like -D"java.security.policy="xxx"
    <Applet >
    <Param Name="JVM_PARAM" Value="-D"java.security.policy="xxx"">
    </Applet>

    Is there a way to set JVM parameters directly in the applet tag? i.e., not by passing generic parameters and then calling setProperty, and not by setting the JVM parameters in the Plug-in control panel.
    For some reason, setProperty will not work correctly in my applet. I can set the new property value, immediately do a getProperty and verify that the new value is returned, but the JVM still uses the old value throughout the life of the applet.
    And I don't want to set the parameter in the control panel, because I don't won't this parameter set for all applets that use the plug-in.
    Thanks,
    Ken

  • What is the better way to pass input parameters between components?

    Hi all,
    I had a dispute with a colleague about passing data between different WDP Development Components. The situation is like this:
    Colleague has a SearchWDP (parent) und I have a BrowseWDP (child). After searching for some objects and clicking a hit in the SearchWDP, the corresponding details should be shown in BrowseWDP, via passing a bunch of parameters such as selected item's id, etc.
    Now which of the following is the better practice:
    - Defining a node in BrowseWDP (child) with isInputParameter set to TRUE, creating a similar node from the same type (simply via ModelBinding, both WDPs are using the same model) in SearchWDP, and defining a mapping between them so that SearchWDP fills the input nodes. From BrowserWDPs perspective, I'd call this Pull method.
    or...
    - Defining a node in BrowseWDP (child) with isInputParameter set to FALSE, creating a setter method in BrowseWDP Interface Controller for the collection (to be passed as parameters) and calling a wdContext.nodeBlaBla().bind(pInputParameterFromModelType). From BrowserWDPs perspective, I'd call this Push method.
    The colleague's argumentation in favor of Push has not convinced me at all and I'd like to ask your opinions. Is there a best practice or recommendation for this scenario? TIA
    ps: Any answer will be rewarded.

    Hi Cuneyt,
    Refer the links below, they are very informative!
    http://help.sap.com/saphelp_nw04s/helpdata/en/22/15a441cd47a209e10000000a155106/content.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/67/cc744176cb127de10000000a155106/content.htm
    These links are a part of the WebDynpro ABAP documentation, but the concepts are same for WDA and WDJ.
    Considering your scenario, I would recommend the first alternative you have mentioned (if you refer the second link its called External Context Mapping), where component controller context node of component A (SearchWDP) is the source for Interface controller context (same name) of component B (BrowseWDP).
    Thanks.
    Chitrali

  • Easiest way to access CCP parameters

    Hello,
    Current situation:
    I have installed dozens of application all of the same structure:
    PC+Windows XP+Labview 8.2 runtime (soon Labview 2011). Connection to ECU via Kvaser USB or PCI products. Application built using Kvaser supplied Labview routines (basically read CAN Message ID, write CAN Message ID). Those application allows to access ECU CAN items in read/write. No problem.
    http://digital.ni.com/public.nsf/allkb/2649769104D8B6AD862573FA0020416C
    Present need:
    There is now a demand to upgrade all application so that they start to check 3 additional parameters: ECU hardware version, ECU software version, ECU dataset (calib version). I have been told that those parameters are accessible via CCP. The only experience I have with CCP is what I read on the Kvaser and NI website.
    Questions:
    1/ I would like to understand what I need to add to my applications to fullfil this need
    2/ If I want to keep my Kvaser hardware already installed what do I need to purchase (from NI?). Will the "NI ECU Measurement and Calibration Toolkit" help me or is it bould to NI (and Vector) hardware and hence will not recognize my Kvaser devices?
    3/ If I want to keep my Kvaser hardware already in place, am I able to program the necessary Labview code using Kvaser read CAN / write CAN low level routines? How do I do that? Is there example available where I could just change the very low level routines and replace by the ones from Kvaser?
    I am sorry to be so general in my questions, this is my first exposure to CCP and I still do not understand why those 3 parameters that I am looking for must be accessed differently than all others process parameters that I already have access to using simple CAN read item and CAN write item routines.
    Thanks a lot
    Christophe

    Hello Christophe,
    I've often used CCP protocole to read and write in ECU when I can't do it via KWP or UDS.
    Basicaly CCP is not so complicated. It's just a matter of send and receive frames on two distinct CAN IDs.
    You can find some documentation on the net about it.
    In your case, to read some parameters you can use the following commands:
    CONNECT
        GET_SEED ( needed if security access is enable )
        SEND_KEY (idem)
    SHORT_UPLOAD
    I have some code in Labwindow cvi if you are interessed.
    If you want I can send you the CCP protocol documentation in pdf format.
    Regards
    B. Williot

  • Passing URL parameters to WD application

    Hi!
    To pass URL parameters to WD application I currenly inbound plug 'defauld' (of type 'Startup') of main window. I use following code:
    types:
        begin of param_t,
          name type string,
          value type string,
        end of param_t.
      data: params type standard table of param_t.
      data: param like line of params.
      wdevent->get_data(
        exporting
          name = '_ALL_URL_PARAMETERS'
        importing
          value = params
    It works fine but this plug is called after init methods of the component controller an of the view. So if I want to do something with parameters, I must do in this plug.
    Is there way to pass URL parameters in a WD app. so that they were available from the very beginning of the application work i.e. in init method of the component controller etc.?
    Thanks!

    I had the same requirement too. There are a couple of threads on the subject as well, I've posted in one of them but had no answer:
    Re: Read URL Parameters programmatically
    The workaround i've used is this, it's definitely not as neat as I would like to since you end up having two initialization methods per controller, WDDOINIT and the one you create (for each controller you want to run code in using the received parameters). Nevertheless, it works:
    1) Create an event in your component controller, for example INIT_COMPLETED.
    2) Define a new method in your component controller, e.g. INIT_AFTER_WINDOW. This method receives an Importing parameter TYPE tihttpnvp. It uses this received HTTP parameters for the initialization logic and finally raises the INIT_COMPLETED event (This is the method that "replaces" WDDOINIT).
    3) In the Window's Inbound plug handler, you get the HTTP parameters (with wdevent->get_data) and afterwards call the method WD_COMP_CONTROLLER->INIT_AFTER_WINDOW (maybe you need to declare the usage previously in the Window to have the reference available).
    4) Finally, if you need some of the Views to be initialized afterwards the component controller's INIT_AFTER_WINDOW runs (for example to show some initialization messages), you'll have to replace the WDDOINIT method with an INIT_AFTER_COMPCTRL method and subscribe it to the component controller's INIT_COMPLETED event.
    I hope you got the idea, and more importantly, that we get some cleaner solution from SAP for achieving this in the future.
    Regards
    Edited by: Alejandro Bindi on Nov 6, 2008 10:08 PM
    INIT_AFTER_WINDOW is the method to be called on step 3

  • Passing function parameters in a non-sequential fashon

    Consider the function below:
    function personal(Name:String,age:int,city:String):void
       trace(Name+" is "+age+ " years old and lives in "+city+ ".")
    The parameters can only(???) be passed in the order they are declared in the function as shown below.
    personal("John",40,"London"0)
    If the order is changed as: personal("London",John", 40), there will obviously be a type related error (position 2 parameter is an integer).
    Is there a way of passing function parameters as: personal(city="London",Name=John",age= 40)?
    That way one does not have to worry about the 'order' in which the parameters are passed.

    Micheal, I love such ELEGENCE.
    One more question, before I 'attempt' to go to bed!
    Below is code extracted from my main class definition.
    Notice how I 'populate' the artist object  before I pass it on as a parameter to my saveRecord function.
    It is rather clamsy, I think. Is there a better way of doing it?
    import ARTISTS
    var artist:ARTISTS = new ARTISTS;
    artist.ARTISTID = 123678;
    artist.FIRSTNAME = "Gordon";
    artist.LASTNAME = "Brown";
    artist.ADDRESS= "13 Darwin Street";
    artist.CITY= "London"
    saveRecord(artist);
    saveRecord(params:ARTISTS){
         //Some code here

  • Easiest way to transfer photos from my iphone to my ipad?

    Im trying to figure out how to transfer the 3000+ pics on my iphone to my ipad.  What is the easiest way to do this?

    If you meet the requirements you can use AirDrop. See here: Use AirDrop to wirelessly share content - Apple Support
    Or you could use an App like Photo Transfer to move the photos:
    Photo Transfer App - Easily copy, share and backup pictures and videos over wifi between devices and computer by ERCLab, LLC
    https://appsto.re/us/SQ8Wv.i

  • Any other ways to get parameters of a URL in a window method ?

    Hi,
    In SDN, i find the below two ways to extract the URL parameters, when i pass them while opening a new window. But, unfortunately they dont work for me. so, would like to know, if any other ways are existing to extract the URL parameters.
    1)
    HANDLEDEFAULT method of the window:
    DATA: lt_url_parameters TYPE tihttpnvp.
    wdevent->get_data(
    EXPORTING
    name = if_wd_application=>all_url_parameters
    IMPORTING
    value = lt_url_parameters ).
    2) In HANDLEDEFAULT method, have the URL parameter names as importing parameters and use them normally.
    If there is no other ways, can some one help me in pointing the issue that i face ?
    Note: I have wdevent (CL_WD_CUSTOM_EVENT) importing parameter in place.
    Thanks in advance,
    Gaurav.

    Hi,
    How you are trying to pass your parameters ? I believe you are using some SAP provided template (like for XSS) and relying on passing of some standard parameters. These parameters may be absorbed by the standard component and may not be passed to your WebDynpro Component. You can try passing them as application parameters.
    Thanks
    Prashant

  • What is the easiest way to delete a song or album?  Also, how do I get rid of the tunes it cannot convert or find?

    What is the easiest way to delete a song or album directly off the iPod?  Also, how do I get rid of the tunes it cannot convert so it does'nt run through them every time I upload an album or song?

    Right click the song you want to get rid of and there should be a delete button.

  • HT1338 My Mac Book Pro is currently runnng OS X v10.5.8. When I check for updates by clicking the apple icon it tells me that my computer is up to date.  What is the easiest way to upgrade to OS X Lion?  Do I need to get OS X Snow Leopard first?

    My Mac Book Pro is currently runnng OS X v10.5.8. When I check for updates by clicking the apple icon it tells me that my computer is up to date.  What is the easiest way to upgrade to OS X Lion?  Do I need to get OS X Snow Leopard first?

    Yes, there's been no updates to 10.5.8 for quite awhile, next is paid Upgrades.
    Snow Leopard/10.6.x Requirements...
    General requirements
       * Mac computer with an Intel processor
        * 1GB of memory (I say 4GB at least)
        * 5GB of available disk space (I say 30GB at least)
        * DVD drive for installation
        * Some features require a compatible Internet service provider; fees may apply.
        * Some features require Apple’s MobileMe service; fees and terms apply.
    Which apps work with Mac OS X 10.6?...
    http://snowleopard.wikidot.com/
    It looks like they might still have it...
    http://store.apple.com/us/product/MC573Z/A?fnode=MTY1NDAzOA
    If it's a core Duo & not a Core2Duo, then it'll only run in 32 bit mode.
    Lion/101.7 System requirements
        •    x86-64 processor (Macs with an Intel Core 2 Duo, Intel Core i3, Intel Core i5, Intel Core i7, or Xeon processor.)
        •    At least 2GB of memory, I say 6 GB
        •    Latest version of Mac OS X Snow Leopard (10.6.8), with the Mac App Store installed
        •    At least 4GB of disk space for downloading, I say 50 GB.
    Like Snow Leopard, Lion does not support PowerPC-based Macs (e.g., Power Macs, PowerBooks, iBooks, iMacs (G3-G5), eMacs).
    Lion also does not support 32-bit Intel Core Duo or Core Solo based Macs. Rosetta is no longer available in Lion, which means Lion no longer supports PowerPC applications.
    http://en.wikipedia.org/wiki/Mac_OS_X_Lion#System_requirements
    http://www.apple.com/macosx/how-to-buy/
    What applications are not compatible with Mac OS X 10.7 "Lion"?
    http://ow.ly/5Iz09
    http://roaringapps.com/apps:table

  • Easiest way to get music from iPod to MacBook

    I am trying to switch everything from my PC to my MacBook and was wondering if there is an app or something I can use to transfer all my music from my iPod to my Mac so I don't have to make a half dozen DVDs to transfer them.

    Easiest way would be to use an external hard drive. Do you have another iPod besides the iPhone that can be used as an external hard drive? How big is your library?
    If you want to transfer from the iPod to the new computer the harder way...
    Copying from iPod to Computer threads...
    http://discussions.apple.com/thread.jspa?threadID=1300144
    http://discussions.apple.com/thread.jspa?messageID=797432&#797432
    http://discussions.apple.com/thread.jspa?threadID=809624&tstart=0
    Also these somewhat dated but still useful internet articles...
    http://www.ilounge.com/index.php/articles/comments/copying-music-from-ipod-to-co mputer/
    http://www.engadget.com/2004/11/02/how-to-get-music-off-your-ipod/
    http://playlistmag.com/help/2005/01/2waystreet/
    Good luck!
    Patrick

Maybe you are looking for

  • Cannot get Airplay to work after upgrading to OSX 10.8/iTunes 11.1.3

    I have recently upgraded my Mac Mini to OSX 10.8.5 from OSX 10.7.5 and am now unable to play music or internet radio on my stereo.  Under OSX 10.7.5 I was able to play iTunes (11.0.3) music and internet radio on my stereo wirelessly via of an AE (A10

  • HP Envy 4500 Scan to PDF; Windows 8.1 on HP Pavilion x360

    I need to scan into a pdf file rather than jpeg, png, tiff, etc.  I used to be able to do this with my old printer and computer, and I'm finding it hard to believe that I can't do it with my new one!  Probably I am missing something obvious, but I ha

  • How to use MSCOMM with teststand

    Hello All,        I want to communicate with serial port via MSCOMM component in teststand,And I have already regestered MSCOMM in PC.But I can't find it in "automation server" on the module tab.        Look forward to your reply.Thanks. BR

  • Warp on Linked Image

    I'm finding it very frustrating that I cant apply a simple warp to a linked image. Why can we apply Perspective Warp, and Puppet Warp as a smart filter but not a standard Warp. this does not make sense to me. am I missing something fundamental? I act

  • Creating Partitions in Existing tables with Data

    Hello everyone, I want to know what the best way of creating partitions, in tables having data, is .. ??? thanks Rossy Rocs