Determining browser type

In my application there is some functionality that I want to disable if the user is using firefox. So I've put the button inside an if statement that checks to make sure the browser is greater then or equal to ie 5.5. This works fine. Now in my action class there is some generic code that runs for all screens.. (in my baseAction class) some of it needs to not fire if the browser is not ie. So I've put a c:set inside the if statement so that in thoery the variable will only exist in the session if I'm using IE.
So I ran a test.. the button does not appear but the variable does exist is session? Can anyone explain this to me?
And yes I realize I left out the ! in the check for browser.. but when I had it in the preview wasn't showing it (I'm using firefox.)
<c:if test="${OmniMgrApplicationConfig.vbaConfig.enabled}">
<--[if gte IE 5.5]><BUTTON name="button" type="button" class="OmniHeaderButton" title="VBATLMMenu" onClick="window.location='<c:out value='${pageContext.request.contextPath}'/>/jsp/TLMMenu.jsp'"
     onMouseOver="CLImage.src='<c:out value='${pageContext.request.contextPath}'/>/images/omniManager/shadow/form_green.png';"
     onMouseOut="CLImage.src='<c:out value='${pageContext.request.contextPath}'/>/images/omniManager/plain/form_green.png';">
     <IMG ALIGN="MIDDLE" src="<c:out value='${pageContext.request.contextPath}'/>/images/omniManager/plain/form_green.png" name="CLImage">
</BUTTON><c:set var="ieBrowser" value="1" scope="session"/><![endif]-->     
</c:

Not 100% sure since it is not a part of the app I am writing.. but the user has the ability to write scripts that will prepopulate the form. (writen in basically VBA)
This is all done through a Browser Helper object which I don't believe will run on firefox?
We have some clients that have scripts that are hundreds and thousands of lines long... we can't just say, by the way you can't use these. Of course we are writing a normal web gui that will do the same thing.. but some clients aren't going to want to convert all thier VBA.. plus they have employees that all they do is upkeep the VBA.

Similar Messages

  • Determine the type of browser

    Hello all,
    I am not sure if I am posting this question in the right forum,
    anyway I am working on a JSF project. I have some tags in my jsp pages
    for e.g.
                   <h:inputText size="20" value="#{authentication.userName}" />
                   <h:inputSecret size="20" value="#{authentication.password}" />
    the problem is - the two JSF components above are displayed differently in deifferent browsers. In firefox and IE7, they are displayed without any problem,
    however in IE6 the inputSecret looks smaller in size than inputText.
    So how do I need some way to identify the kind of browser and its version details and based on which i will make the appropriate changes in my css file.
    is there some simple method to find the browser type in jsp?

    is there some simple method to find the browser type in jsp?The only thing you can do is to parse/guess the User-Agent header field sent by the browser (use request.getHeader("User-Agent") to access this value).

  • How to determine IE type(32 bit or 64 bit) in a task sequence while updating Java

    How to determine IE type(32 bit or 64 bit) in a task sequence
    Hi,
    Currently i have to update new version of Java after removing all the previous existing version of Java by using TS in SCCM 2007.
    we have both 32 bit and 64 bit browser in the environment. I am stucked in determining whether the browser is of 32 bit or 64 bit.
    How to determine IE type(32 bit or 64 bit) in a task sequence so that respective java can be installed for that IE browser.
    will highly appreciate quick response.
    Thanks in advance.
    Daya

    But you also need to install JRE x86 on x64 systems, since most people actually use the 32bit browsers on x64 systems.
    The detection logic is actually pretty simple -- just check the right registry hive to find the installation location of the BIN\JAVA.DLL. Both pathnames are stored in HKLM\Software\JavaSoft\Java Runtime Environment\1.7 in the registry value "JavaHome",
    but the x86 path is stored in the 32-bit hive and the x64 path is stored in the 64-bit hive.
    Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
    SolarWinds Head Geek
    Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
    My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
    http://www.solarwinds.com/gotmicrosoft
    The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds.

  • How can I determine the type of video out connector I need?

    Howdy,
    I have a white macbook purchased Jun/2008. I want to connect to a TV but don't know what adapter I need. How can I determine the type of video out jack my macbook has?
    System Profiler says the model identifier is "MacBook 4,1". Under Graphics/Displays the only thing it says about the "Display Connector" is that no display is connected. Too bad it doesn't tell me what type of connector it is. If I knew the name of the connector I'd probably be home free. But it seems like every macbook model has a different video connector (since the state of the art has advanced over the years) and I haven't been able to keep up with the names.
    Now, I have a 6" long adapter that will convert this connector to VGA. And searching the Apple store for VGA adapters, the existence of mine says my connector is might be one of "Mini DisplayPort", "Apple Mini DVI", "Apple DVI", or "Apple Micro-DVI". But then there is also the connector at
    http://store.apple.com/us/product/M8639G/A?mco=MTY3ODQ5OTY
    and that looks like the one I have. But unlike the other adapters, this one is just called a "VGA Display Adapter". Does the connector have a name? How can I find adapters that have that same connector?
    I know I could use the adapter I have, plus a VGA to VGA cable, to hook up to a TV. But the quality of the VGA signal is poor in the digital world. My goal is to hook up to the TV via HDMI. Is this even possible? By which I mean, will my macbook generate the signals necessary to be able to be converted to HDMI?
    Thanks for any help,
    Zebulon T

    Thanks, Ded,
    You're right, the cable that I have won't work. I't from my previous, 2004 iBook. This is pretty embarrassing... I looked at the cable but didn't bother to try plugging it in.
    Looking at the close-up picture of the Mini-DVI to VGA adapter, that does look like the right connector. So I have Mini-DVI, and the other apter you pointed to can convert this to DVI. I'll take a look to see what makes the most sense, connector wise, downstream from that.
    Thanks very much.
    Zeb T

  • How to track browser type in the access log

    I have looked through the documentation on logging features on how to log the browser
    type for visitors. Is there a straightforward way to do add this information
    to the access.log?
    We are using Weblogic Portal 7.0 sp4
    Thank you.

    Hi,
    What do you mean by current and old version? Any changes in history log under general settings-->service tab?
    Thanks & Regards,
    Nagarajan

  • Determine the type of the caught exception

    Hi!
    Here is my problem :
    I'm using a web service and the method I call throws different types of Exception (RemoteException, ServiceException, etc...)
    And, the reaction to the caught exception depends on its type, that's why I need to determine what type of exception i've caught. I know that with C# I use the boolean function is :
    if (exception is TypeOfException1)
        // associated reaction
    else if(exception is TypeOfException2)
       // associated reaction
    }Is there any method or any other way in Java to do that?
    Thanks a lot,
    Gan�che.

    >
    Here is my problem :
    I'm using a web service and the method I call throws different types of Exception (RemoteException, ServiceException, etc...)
    And, the reaction to the caught exception depends on its type, that's why I need to determine what type of exception i've caught. >
    try {
      // stuff that may cause exceptions..
    } catch(RemoteException re) {
      // deal with this re
    } catch(ServiceException se) {
      // deal with this se
    } catch (Throwable didNotExpectThis) {
      // exceptional!
      didNotExpectThis.printStackTrace();
    }

  • Determine data type

    Hi all,
    I've got procedure for inserting data into value1 column of table1.
    My need is to determine data type entered by user.
    If data type is not number then user should receive error.
    How do I perform it?

    The easiest and most reliable way would be to declare the formal parameter as a number like:
    SQL> create procedure p (p_num in number) as
      2  begin
      3     null;
      4  end;
      5  /
    Procedure created.
    SQL> exec p('a');
    BEGIN p('a'); END;
    ERROR at line 1:
    ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    ORA-06512: at line 1If you cannot do that, or want to be more "user friendly", then the only alternative is to test it and raise an error like:
    SQL> create procedure p (p_str in varchar2) is
      2     l_num number;
      3  begin
      4     l_num := to_number(p_str);
      5  exception
      6     when value_error then
      7        raise_application_error(-20001, 'I know I said it was a string, but I really want a number');
      8  end;
      9  /
    Procedure created.
    SQL> exec p('a');
    BEGIN p('a'); END;
    ERROR at line 1:
    ORA-20001: I know I said it was a string, but I really want a number
    ORA-06512: at "OPS$ORACLE.P", line 7
    ORA-06512: at line 1John

  • How to determine employee type (management vs nonmanagement) in WebDynpro

    Hi,
    I am running SP14.
    In my WebDynpro application, I need to hide/show a link based on if the employee is management or nonmanagement.
    What is the easiest way to determine the type of employee in a WebDynpro?  Is the management/non-management attribute already exposed and available to the WebDynpro?  Or do I need to invoke a BAPI/RFC to retrieve that information from SAP (eg Employee Group or Personnel Area)?
    Thanks for any help you can provide.
    Kevin

    You only need to call this RFC once and share the results with other views via context binding!
    In my applications I follow the Floorplan manager architecture and have one web dynpro component for all the frontend logic e.g. FcAddress
    In the component controller of FcAddress I setup model nodes for the RFC e.g.
    Address_Input (mapped to input RFC model class with all the import parameters of the RFC)
    Address_Output (mapped to either the output RFC model class with all the export parameters of the RFC or it includes another model node for Address_Records which is mapped to the export table parameter.)
    Address_Messages (mapped to the return parameter of the RFC (BAPIRET2).
    All other views with their component controllers are mapped to those model nodes to allow access to the RFC data.
    You can pass the userid to the RFC and then the RFC will get the related employee number via IT105/ST10. You just need to have the userid defined as an import parameter in the RFC.

  • "Browser Type" greyed out in OpenScript.

    Hi,
    The "Browser Type" dialog is greyed out in OpenScript. No browser starts when I click record button.
    Any ideas?
    Regards,
    Alex

    Hi,
    I'm sorry, my message got cut off.
    I tried the following reg-keys:
    HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings
    And added the permisson Users ([machine_name]\Users). But that did not seem to help. I do not have exactly the ones you suggested. Is it these that you are talking about?
    This have been working before on the same machine. So it's rather strange.
    I am logging in as domain-admin btw.

  • "File Browse" type item: at what point the fields mime_type, file_name, last_update_date get their values?

    Hi there,
    I have an issue with "File Browse" type item, my question is: at what point the fields mime_type, file_name, last_update_date get their values? I want to add them to the collection but if I try to do it in Process "On Submit - After Computations and Validations" the values in those fields are still null (that's for the insert, and for the update they have old values). Also I don't seem to be able to add blob to the collection ("File Browse" type item (which has the source as blob database column) can't be assigned as parameter p_blob001 of APEX_COLLECTION.ADD_MEMBER, error is: PLS-00306: wrong number or types of arguments in call to 'ADD_MEMBER').
    What I am trying to do is this: I have parent table (TABLE1), and child table (TABLE2).  In TABLE2 I store documents. I have a main page that is form on TABLE1, and on it I have button "Add documents" that opens popup window with form on TABLE2. On submit of popup page I want to avoid inserting document into TABLE2, instead I want to send data to the main page (using collection) and insert in only once the main page is submitted.
    I would appreciate any advice on this...
    Thanks,
    Tanya

    Hello Tanya,
    Can you post your PL/SQL code which you are trying?
    Regards,
    Hari

  • How do I determine what type of Solaris installation I have ?

    I'm runnig "SunOS PSP 5.8 Generic_108528-13 sun4u sparc SUNW,Sun-Fire-480R" but I would like to determine the type of Solaris installation I have....do I have a a "development" installation ? Do I have all the SUNW developer packages ? Also what are the "types of installations" that are possible ?
    I'm thinkig about download the mysql binary (from Sunfreeware.com) and I went to the dpendencies site (http://wwws.sun.com/software/solaris/freeware/s8u7dependencies.html) to check what dependencies exist and I saw the following line (among other non "related" info.):
    mysql-3.23.43 gcmn-1.0 ncurses-5.2
    What exactly does this mean ?

    Hi
    You can check the type of solaris install from the below file
    /var/sadm/system/admin/CLUSTER
    Regards

  • How to determine itab type at run time

    I need to write a subroutine that organizes data in internal tables for presentation by a smartform. There are a few similarly structured internal tables all with the same field name ("recipe_type") by which the data is sorted. My problem is that how I can determine the type of the itab inside my subroutine at run time? Is it ever possible in ABAP?
    The subroutine code is attached below. Thanks for any help.
    FORM beautify_itab    TABLES itab_in TYPE table
                                     USING v_type TYPE any
                                     CHANGING itab_out TYPE table.
    Data declaration
      DATA: v_data_row LIKE LINE OF itab_in,                " THIS WON'T COMPILE!
                 v_blank_row LIKE LINE OF itab_in.              " blank row
    Organize the display of the table data
      LOOP AT itab_in INTO v_data_row.
        IF v_type <> itab_in-recipe_type.                     " 'recipe_type' is the sort key for the incoming itabs
          v_type = itab_in-recipe_type.
          IF sy-tabix > 1.
            APPEND v_blank_row TO itab_out.
          ENDIF.
          APPEND v_data_row TO itab_out.
        ELSE.
          CLEAR v_data_row-recipe_type.
          APPEND v_data_row TO itab_out.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    "beautify_itab

    The following code does what I want, but only if the input itab structure is declared first in the program. It won't work if the itab is declared as itab_in TYPE TABLE OF sflight. This is because the function 'GET_COMPONENTS_LIST'  only can load the structure of a field declared explicitly in the program.  Does anybody know of any method to load the structure of an itab based off a dtab? 
    Thanks you guys for answers. Points have been rewarded.
    *& Report  Z_GET_ITAB_TYPE_AT_RUN_TIME
    REPORT  z_get_itab_type_at_run_time.
    DATA: BEGIN OF itab_in OCCURS 0,
             seatsocc_b LIKE sflight-seatsocc,
             fldate LIKE sflight-fldate,
          END OF itab_in,
          itab_out TYPE TABLE OF string,
          wa_itab_out TYPE string.
    SELECT seatsocc_b fldate
    INTO TABLE itab_in
    FROM sflight
    WHERE carrid = 'AA' AND
          connid = '0017'
    ORDER BY seatsocc_b.
    PERFORM beautify_itab
                TABLES
                   itab_in
                USING
                   sy-repid
                   'itab_in'
                   'SEATSOCC_B'
                CHANGING
                   itab_out.
    LOOP AT itab_out INTO wa_itab_out.
      WRITE: / wa_itab_out.
    ENDLOOP.
    *&      Form  beautify_itab
          text
         -->ITAB_IN    text
         -->V_KET_FIELD   text
         -->ITAB_OUT   text
    FORM beautify_itab TABLES itab_in TYPE table
                       USING  v_prog_name LIKE sy-repid
                              v_itab_in_name TYPE any
                              v_key_field_name TYPE rstrucinfo-compname
                       CHANGING  itab_out TYPE table.
      DATA: itab_fields TYPE TABLE OF rstrucinfo,
            v_field_name LIKE rstrucinfo-compname,
            v_old_key TYPE string,
            v_field_value TYPE string,
            v_data_line TYPE string,
            v_tabix LIKE sy-tabix,
            c_blank_row TYPE string VALUE ''.
      FIELD-SYMBOLS: <fs_field>,
                     <fs_data_line>,
                     <fs_field_list> TYPE  rstrucinfo.
    gets all of the components of a structure
      CALL FUNCTION 'GET_COMPONENT_LIST'
        EXPORTING
          program    = v_prog_name
          fieldname  = v_itab_in_name
        TABLES
          components = itab_fields.
      LOOP AT itab_in ASSIGNING <fs_data_line>.
        v_tabix = sy-tabix.
        LOOP AT itab_fields ASSIGNING <fs_field_list>.
          v_field_name =  <fs_field_list>-compname.
          ASSIGN COMPONENT v_field_name OF STRUCTURE
                        <fs_data_line> TO <fs_field>.
          v_field_value = <fs_field>.
          IF v_key_field_name = v_field_name.
            IF v_old_key <> v_field_value.
              v_old_key = v_field_value.
              IF v_tabix > 1.
                APPEND c_blank_row TO itab_out.
              ENDIF.
            ELSE.
              CLEAR v_field_value.
            ENDIF.
          ENDIF.
          CONCATENATE v_data_line v_field_value INTO v_data_line
                      SEPARATED BY space.
        ENDLOOP.
        APPEND v_data_line TO itab_out.
        CLEAR v_data_line.
      ENDLOOP.
    ENDFORM.                    "beautify_itab

  • How to determine the type of an existing iView

    Hi,
    While creating an iView using wizard there is a big list of type of iViews. But after creation of iView, how do I determine the type of iView. Which attribute or property of iView holds this information?
    -Lave Kulshreshtha

    You can copy and paste the existing Iview changing the name and ID if u want to replicate the same.
    Also, when you create a new iView from a template, you get a list of them e.g SAP BSP iView etc.
    Now what you see in the code link is much similar to what you see as a list of templates when u create iViews. So its pretty simple.
    I hope this helped you.

  • Installing Solaris 7 - System hangs while determining bus Types

    Hi,
    I am trying to install Solaris 7 on my Compaq Presario. My system hangs immediately after the first screen. It hangs on the screen where it says "Bus Enumeration Determining Bus Type and gathering hardware configuration data. Not sure why it is doing that. Any help would be appreciated
    Regards,
    Ashish.

    My system is not branded It is custom bulit.
    What more information you want write me.
    Thanks for all help
    Amit

  • How to add new browser type in visual studio 2010 performance test?

    Hi All,
           Currently we have various list of browsers in browser type drop down,Suppose if i want to add browsers like Internet Explorer 9 (or) 10,Firefox 33 (or) later version.How to add?

    Thanks for Adrian's help.
    Hi Balaji,
    Based on your issue, I agree with Adrian's suggestion. Therefore, I suggest you can try Adrian's suggestion to refer the link of Cybermaxs' reply check your issue.
    In addition, I suggest you can use fiddler to check the header definition.
    For more information, I suggest you can refer the Shiv_P's reply in the following link.
    Reference:
    https://social.msdn.microsoft.com/Forums/en-US/9bb37eec-3467-4fcb-8537-648d04e91e2f/how-to-add-latest-chrome-browser-plugin-in-visual-studio-2010-ultimate-for-performance-testing?forum=vstest
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Can not view update rules on production BW server

    This can be quite a time-consuming problem as I can't always tell if the latest update rules are successfully transported to production.  Most every where else in production I can choose to DISPLAY however this is not the case with update rules only.

  • Best FW800 card for G4 Mirror Door?

    I've got a Dual 1.25, 1.5G Ram mirror door G4, and I've got a Cinwave card installed on it as well (don't know if that matters or not.) Anybody got any advice on which fw800 is going to be best for me? I'm planning on buying a G-Tech G-Raid for addit

  • How to change color inside single item? [SOLVED]

    I'd like to change background color inside item (on blue for ex.: see http://www.marussig.si/weblib/screen.jpg ) . The problem is that the block is multiline block but I have to change the color just on one line in one column. Is this possible? If I

  • Location of  img source files.......in weblogic 8.1

    I am trying to deploy an application in Weblogic 8.1 windows environment. The application was developed in Unix platform . Framework is Servlets. JSPs are servlets with java classes. The image sources are hard coded as '/rtim-web/gfx' in the source.

  • GeForce GTX 285

    Any scoop on what the new GeForce GTX 285 card will cost in the UK? Will it cost more that the ATI Radeon HD 4870? What's the advise for gamers using windows in boot camp. Should we patiently wait for the GeForce GTX 285 if the price is right? From t