How to get the status of Javascript inside a java class

Hi,
Can anybody let me know the way by which I can get the status of Javascript (enabled/disabled) in browser inside a Java Class.
I do have a trick -
<input type="hidden" name="jstatus" value="disabled">
<input type="submit" name="submit" onClick="doChecking()">
<script language= javascript>
function doChecking()
document.form.jstatus.value = "enabled";
submit();
Now inside our java class we can check the value of "jstatus" if it is disabled then it is disabled else it is enabled.
Ha ha wat a stupid trick...... ;-)
Plz let me know a real approach to determine the Javascript status.
Cheers !!!
Irshad

Actually, I don't think that trick is stupid at all. Javascript and Java are normally in no way related (javascript is just plain text content to your servlets / jsp's). So a good way of getting such information to your server is submitting it, like you do.
Another possibility would be to do it with Ajax in the background, but that all depends on what you do with the information.

Similar Messages

  • How to get the status of service in rac

    Dear all,
    how to get the status of service in rac.
    SQL> show parameters service;
    NAME                                 TYPE        VALUE
    service_names                        string      DEVDB, DEVDB1, devdb
    [oracle@rac1 ~]$ srvctl status service -d devdb -s devdb
    PRKO-2120 : The internal database service devdb cannot be managed with srvctl.

    user7244870 wrote:
    Dear all,
    how to get the status of service in rac.
    SQL> show parameters service;
    NAME                                 TYPE        VALUE
    service_names                        string      DEVDB, DEVDB1, devdb
    [oracle@rac1 ~]$ srvctl status service -d devdb -s devdb
    PRKO-2120 : The internal database service devdb cannot be managed with srvctl.
    Internal services cannot be managed with srvctl utility. Check if you have any user defined service in dba_services
    SQL> desc dba_services
    Name                                      Null?    Type
    SERVICE_ID                                         NUMBER
    NAME                                               VARCHAR2(64)
    NAME_HASH                                          NUMBER
    NETWORK_NAME                                       VARCHAR2(512)
    CREATION_DATE                                      DATE
    CREATION_DATE_HASH                                 NUMBER
    FAILOVER_METHOD                                    VARCHAR2(64)
    FAILOVER_TYPE                                      VARCHAR2(64)
    FAILOVER_RETRIES                                   NUMBER(10)
    FAILOVER_DELAY                                     NUMBER(10)
    MIN_CARDINALITY                                    NUMBER
    MAX_CARDINALITY                                    NUMBER
    GOAL                                               VARCHAR2(12)
    DTP                                                VARCHAR2(1)
    ENABLED                                            VARCHAR2(3)
    AQ_HA_NOTIFICATIONS                                VARCHAR2(3)
    CLB_GOAL                                           VARCHAR2(5)http://docs.oracle.com/cd/B19306_01/rac.102/b14197/srvctladmin.htm

  • How to get the store procedure name inside this store procedure?

    how to get the store procedure name inside this store procedure?

    Why cant you get the procedure name as hard code as the proc name is going to change.
    Are you looking for getting the parent proc name from child proc name which is getting executed within parent proc?
    Try the below:
    --Parent Proc
    Alter Proc sp_test
    as
    Begin
    Declare @s varbinary(MAX) = Cast('sp_test' as Varbinary(MAX));
    SET CONTEXT_INFO @s;
    exec sp_test2
    End
    --Child proc
    Alter proc sp_test2
    as
    SELECT Cast(CONTEXT_INFO() as varchar(100));
    --Test execution
    Exec sp_test
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped.
     [Blog]

  • How to get the parent window in sub-child controller class in javafx?

    how to get the parent window in sub-child controller class in javafx?

    You can get the window in which a node is contained with
    Window window = node.getScene().getWindow();Depending when this is invoked, you might want to check the Scene is not null before calling getWindow().
    If the window is a stage that is owned by another window, you can get the "parent" or "owner" window with
    Window owner = null ;
    if (window instanceof Stage) {
      Stage stage = (Stage) window ;
      owner = stage.getOwner();
    }

  • How to get the today's julian date in java?

    how to get the today's julian date in java?
    hi can any one tell me how to get the todays julian date using Calender class or GregorianCalender class....
    Julian date for 2006.November.01 AD 05:54 PM : 2454041.0
    i have tryied with
    calJ.setGregorianChange(new Date(Long.MAX_VALUE));
    System.out.println(sdf2.format(calJ.getGregorianChange()));
    thanks
    Tushar
    Message was edited by:
    lad_tushar

    thanks a lot....for intrest....
    I have found some details about the Julian calendar as follows:
    The Julian date for 2006: JAN: 01:12:01:59 is 2453737.00138
    245 represent the year digits for year 2006
    3737 represent the date fir 1 Jan
    .00138 represents the time for 12:01:59
    Julian date change as per every day 12 noon it increase one digit in it.
    As per ref from
    http://www.aavso.org/observing/aids/jdcalendar.shtml
    Also chk this calendar where Julian date is 20. October 2006 for 02 November 2006
    As per ref from
    http://www.calendar.sk/julian_calendar-en.php
    I have tried the pure �GregorianCalendar� class from jdk1.4 API and its setGregorianChange method but not getting as per the expected Julian date format. Using the �setGregorianChange()� i have setting the cutover date to Long.MAX_VALUE it means GregorianCalendar now have to act as per the Julian calendar ...so after setting the cutover date it return me changed date using �getGregorianChange()� but that was not the Julian date of the current date...as expected or as per above both scenario. Even though the last two digits are nowhere equal to the actual Julian date.
    Program
    GregorianCalendar cal = new GregorianCalendar();
    cal.setGregorianChange(new Date(Long.MAX_VALUE)); // setting the calendar to act as a pure Julian calendar.
    // cal.set(Calendar.DATE, new Date().getDate()); // seting the current date
    // Date todayJD = cal.getGregorianChange(); // getting the changed date after the setGregorianChange
    Date todayJD = cal.getTime(); // getting the calculated time of today�s Julian date
    SimpleDateFormat sdfJulianDate = new SimpleDateFormat("yyDDD");
    SimpleDateFormat sdfJuliandayOfYear = new SimpleDateFormat("DDD");
    System.out.println("today Date = " + new Date());
    System.out.println("Today as julian date = " + sdfJulianDate.format(todayJD));
    System.out.println("Today as day of year = " + sdfJuliandayOfYear.format(todayJD));
    OUTPUT:
    USING : Date todayJD = cal.getGregorianChange();
    Today Date = Thu Nov 02 15:17:05 IST 2006
    Today as julian date = 94229
    Today as day of year = 229
    USING : cal.set(Calendar.DATE, new Date().getDate());
    Today Date = Thu Nov 02 15:19:22 IST 2006
    Today as julian date = 06319
    Today as day of year = 319
    USING : Date todayJD = cal.getTime();
    Today Date = Thu Nov 02 15:17:59 IST 2006
    Today as julian date = 06306
    Today as day of year = 306
    There is one another concept i found to get the Julian day of the year as per the Julian day chart mention on nasa site (http://angler.larc.nasa.gov/armsgp/JulianDayChart.html) and i m getting the moth of the year that is 306 for nov 02 2006 using getTime() method in above code then the out put is right for Julian day. But it was not as per the expected Julian date format. So in conclusion we can only able to retrieve the day of year for the Julian calendar. hope their will be a solution for this problem in java api ....else we allways have to depend upon the third party api that was not accepteble some times.....
    Kindly chk chart on the site
    http://angler.larc.nasa.gov/armsgp/JulianDayChart.html
    http://weather.uwaterloo.ca/julian.html
    http://www.fs.fed.us/raws/book/julian.shtml
    Thanks,
    Tushar Lad

  • How to get the status of the method

    Hi,
    I have created a services and method to start the processes.
    Method:
    #!/sbin/sh
    . /lib/svc/share/smf_include.sh
    case "$1" in
    'start')
    /usr/local/proce start
    sleep 10
    'stop')
    /usr/local/proce stop
    echo "Usage: $0 { start | stop }"
    exit 1
    esac
    exit $SMF_EXIT_OK
    Here am exit with SMF_EXIT_OK.
    How can I get the status of start and stop whether it is successful or failure.
    In the place of SMF_EXIT_OK I need to return the status of start and stop.
    Please help me in solving this.
    When i check in smf-include.sh , i got the following exit level
    SMF_EXIT_OK=0
    SMF_EXIT_ERR_FATAL=95
    SMF_EXIT_ERR_CONFIG=96
    SMF_EXIT_MON_DEGRADE=97
    SMF_EXIT_MON_OFFLINE=98
    SMF_EXIT_ERR_NOSMF=99
    SMF_EXIT_ERR_PERM=100
    Regards,
    Kalai

    ss

  • How to get the status idoc from recieveing system

    Hi All,
    In our requirement we will be sending an idoc to the recieveing system. we are planning to get the staus of the idoc.
    How can you  recieve the status of the idoc that idoc has been is saftly reached to target server.
    Can any one share the solution if you have confirgured  the same before.
    We are planning to use : Middleware.

    Hi Anil,
    If get the status 03 means your idoc successfully send to receiving system port. But in the receiving system if there any issue in processing you can't get these updated status automatically from receiving system. You know Idoc works in asynchronous mode. To get the status you need send one idoc with status (error , success ot warning) from receiving system to sending system.
    Thanks
    Subhankar.

  • How to get the status of the backgroud job?

    Hi all,
    I have a job, there are two steps. I have checked in the table TBTCP, the status is always 'P', which means:job step scheduled, even the step is finished. How can we get the status of every step? Many thanks in advance!

    try FM  BP_JOB_STATUS_GET
    but Table TBTCO(field-status) gives the status of the job i.e whether scheduled,released,active,finished,ready or terminated job.
    check  following tables
    <b>TBTCJSTEP - Background Job Step Overview
    TBTCO - Job Status Overview Table
    TBTCP - Background Job Step Overview</b>
    Message was edited by:
            Vasu G

  • How to get the status of the button?

    i want to know how to get the clicked status of the button? whether it is in clicked state or in unclicked state?
    For ex: i have the following code...
    <components:IconButton id="bold_btn" width="22" icon="@Embed('/assets/bold.png')" click="onBoldClick()" enabled="{this.loadCompleted}" toggle="true"/>
    how to find whether the bold button is clicked or not?
    this.bold_btn.????

    Hi Isa,
    You can make use of a Boolean variable to acheive this functionlaity...check out the below simple example...
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
            layout="vertical"
            verticalAlign="middle"
            backgroundColor="white" width="100%">
        <mx:Script>
            <![CDATA[
             import mx.controls.Alert;
             private var isBtnToggle:Boolean = false;
             private function onButtonClick():void
        isBtnToggle = !isBtnToggle;
        if(isBtnToggle)
         btnToggle.label = "I am Toggled ON";
         Alert.show("Button is Toggled ON");
        else
         btnToggle.label = "I am Toggled OFF";
         Alert.show("Button is Toggled OFF");
            ]]>
        </mx:Script>
        <mx:Button id="btnToggle" label="I am Toggled OFF" toggle="true" click="onButtonClick()" />
    </mx:Application>
    If this post answers your question or helps, please kindly mark it as such.
    Thanks,
    Bhasker Chari

  • How to get the status of ASM intance in 11gr2

    hello all
    srvctl status asm -n <node name> gives the status of asm instance. with out using srvctl command how can we get the status of asm instance. ps can be help ful ? if so which is the process need to be checked for ?
    any other ways to do it?
    thanks in advance...

    You can query V$ASM_DISKGROUP,V$ASM_DISK or V$ASM_CLIENT.
    You can also check status of ASM background processes.
    http://download.oracle.com/docs/cd/B28359_01/server.111/b31107/asminst.htm#CHDCFCBJ

  • How to get the status of a window?

    Is there a way to get the status of a display window? I'm looking specifically for whether or not it is open and what image is being displayed in it.
    If there is no easy way to do this, can it be added to the list of suggestions for the next version?

    Right now there is no way to determine these attributes from software. When I went to enter a suggestion to R&D, I found that a very similar one was submitted recently. I added your suggestions to the current one. I'm sorry there isn't an easy solution.
    Kyle V.

  • How to get the status of workflow

    Hi all,
    Please help me with a query to get the status of a worflow. For Eg: The close order line wf has fired for a particular order line in Oracle Apps (item type = OEOL). I just want to find the status of this using a query. Any hints will be very helpful.
    thank you.

    Look in the ORABPEL database schema. There you will see a lot of tables related to workflow.
    Marc

  • How to get the status of MessageBridge STATUS consistently?

    Hi
    I am using Mbean to get the status of messaging Bridge.
    try {
    Iterator iterator = localHome.getMBeansByType("MessagingBridgeRuntime").iterator();
    while (iterator.hasNext()) {
    MessagingBridgeRuntimeMBean bridgeInfo = (MessagingBridgeRuntimeMBean)iterator.next();
    if (bridgeInfo != null && bridgeInfo.getName().indexOf(bridgeName) > 0 )
    return bridgeInfo.getState();
    } catch (Throwable e) {
    e.printStackTrace();
    System.out.println("Exception Occured " + e.getMessage() );
    If MessageBridge is active, i am not consistently getting the same status. I am getting active. when i ask second time it is returning ""(blank). But when i refreshed using admin console, i will again get the correct status.
    Please help me to resolve this issue.

    Hi
    I am using Mbean to get the status of messaging Bridge.
    try {
    Iterator iterator = localHome.getMBeansByType("MessagingBridgeRuntime").iterator();
    while (iterator.hasNext()) {
    MessagingBridgeRuntimeMBean bridgeInfo = (MessagingBridgeRuntimeMBean)iterator.next();
    if (bridgeInfo != null && bridgeInfo.getName().indexOf(bridgeName) > 0 )
    return bridgeInfo.getState();
    } catch (Throwable e) {
    e.printStackTrace();
    System.out.println("Exception Occured " + e.getMessage() );
    If MessageBridge is active, i am not consistently getting the same status. I am getting active. when i ask second time it is returning ""(blank). But when i refreshed using admin console, i will again get the correct status.
    Please help me to resolve this issue.

  • Getting The SAP KM data in a java class

    Hi Everyone
                    I want to get  the SAP KM data to a simple java class......I am able to get this with servlet but i want not a servlet but a simple java class that can get the Documents stored in SAP KM repository..................
    I am thinking of using any java Driver in some code like
    Class.forName ("com.sap.dbtech.jdbc.DriverSapDB");
                        String url = "http://host name :port";
                        Connection con = DriverManager.getConnection (url, "", "");
                        Statement stmt = con.createStatement ();
                   IUser serviceUser = WPUMFactory.getServiceUserFactory().getServiceUser("cmadmin_service");
                   ResourceContext c = new ResourceContext(serviceUser);
                   IResource r = ResourceFactory.getInstance().getResource(RID.getRID("/documents/Public Documents/"), c);
                   System.out.println("Current user   "+r.getContext().getUser().getDisplayName());
                   System.out.println("Current user  : "+r.getContext().getUser().getDisplayName());
                   System.out.println("Access RID  : "r.getAccessRID().toString()"<br>");
    But the above code is giving an exception---java.sql.SQLException: No suitable driver
    Can anyone tell me the suotable Lava driver to access SAP KM repository..Or any simple java code that can connect to SAP KM...
    Waiting for Ur reply
    Thanks & Regards
    Rupesh

    Is there a way to find the list of imports that a
    java class file has added.Yes. It's very easy. The answer is [url http://en.wikipedia.org/wiki/Mu_%28negative%29]Mu.

  • How to get the Status of an Idoc of successfully received in remote system

    Hi,
    I have created a report which post an idoc from system1 to remote SAP system2.
    But i want to get the final staus of posted idoc in system1 that the idoc posted was reached successfully to SAP system2  with status 53 only.
    Actually i need to show the final staus of the posted idoc in system 1.
    Is there any kind of acknowlegement can be received for an idoc posted that idoc has been reached to reamote system(SAP system in my case) sucessfully?
    If yes then how we can do that.
    Kindly reply.

    HI,
    you need IDoc Type ALEAUD.
    1. BD64 and maintain ALEAUD Messagetype to your distribution model
    2. WE20 - assign ALEAUD messagetype to your partner profile (in sending and receiving system)
    3. call report RBDstate to send ALEAUD message IDoc.
    note: the receiving system from the source IDoc sends the ALEAUD to the sending system.
    Another way:
    BDM2 - you can see IDoc number and status from sending and receiving system
    Regards,
    Gordon
    Edited by: Gordon Breuer on Oct 8, 2008 2:35 PM

Maybe you are looking for

  • Using the same external drive with Time Machine on new mac?

    I recently got a new mac because my old one broke. Thankfully, I had a fresh backup on Time Machine ready to restore onto my new computer. But when I try to use Time Machine with my new computer, it keeps wanting to do a whole new backup. It won't re

  • Error while creating tables in dictionary DC

    Hello frnds, i have loged in to DTR in DC prospective. imported the developement configuration file of my track. created a dictionary DC and also selected a namespace prifix. The DC created sucessfully. however when i am going to create a table in th

  • How do you transfer all data from iphone 3gs to new iphone 4?

    Am i right in thinking its simply backup old phone and unplug then plug in new phone and restore ? will this transfer all contacts and settings with apps etc? and also enable me to use the facetime with all the new software ? thanks guys

  • Download Smartforms in 4.6C

    Hi !!! Anybody know how to download the smartforms definition to a file to be imported in other SAP in 4.6C ??? Regards PabloX.

  • Find location of substrings the hard way

    In order to find the location of a substring in a string I tend to use this method: set ptrFind to (offset of "get in "target" as string) this results in ptrFind = 3 However, I'm at a loss when it gets more complex like when I want to find the locati