How to hide Frames through Java script in FireFox.

Hi,
I am working on CRM ISA B2B application and hiding some frame in B2B through javascript. It is working fine in IE but it is not working at all in Firefox.
Below is the example of hiding frame which I am using. it is working fine in IE but not working at all in FireFox. There are total 3 files (1) main.html (2)blank1.html (3)blank.html.
1) main.html ( this is the main HTML)
===========
<html>
<head>
<title> Testing </title>
</head>
<frameset id="TopFrame" rows="80,*">
     <frame src="blank.html" name="top">
     <frameset id="middle" cols="160,*">
          <frame src="blank1.html" name="side">
          <frame src="blank.html" name="main">
     </frameset>
</frameset>
</html>
===============
2) blank1.html
===============
<html><head>
<script language="javascript">
function hideframe()
parent.document.all("TopFrame").all("middle").cols="100%,*";
function showframe()
     parent.document.all("TopFrame").all("middle").cols="50%,50%";
</script>
<title>Blank Title</title>
</head>
<body>
<h1>Blank1</h1>
<input type="button" value="test" onClick="hideframe();">
<input type="button" value="Show" onClick="showframe();">
</body>
</html>
=============
3) blank.html
============
<html><head>
<script language="javascript">
function hideframe()
     parent.document.all("TopFrame").all("middle").cols="100%,*";
function showframe()
     parent.document.all("TopFrame").all("middle").cols="50%,50%";
</script>
<title>Blank Title</title>
</head>
<body>
<h1>Blank 0</h1>
<input type="button" value="test" onClick="hideframe();">
</body>
</html>
==============
Above code is working fine in IE but not working at all in FireFox.
Any help would be highly appreciated.
Pl. help me out.
Thanks.
Ashish Patel.

Hello,
Press F11 to go into full screen mode (Mac: Command+Shift+F).
If you're on Windows, right-click an empty area of the tab bar and choose Customize. Click the Title Bar button in the lower left corner to toggle it. Click the Exit Customize button when done.
If you're on Linux, your window manager may allow you to hide the title bar and window frame. For example, KDE has a "No titlebar and frame" setting.
* http://userbase.kde.org/KWin_Rules_Window_Attributes

Similar Messages

  • How to hide fields using java script

    Hi,
    I have some fields in my form that I want to hide on click of one checkbox.
    I have added the javascript into click event(change event also) of check box when previewing in the Adobe LiveCycle Designer, the fields are hidden successfully when I select the checkbox. But when I deployed the same PDF, the fields are not hiding on click of check box.
    I have install ACF and set it as dynamic form.
    My Adobe Life Cycle Designer Version - 7.1
    I have put some alert statement to access the presence property of the object. The property is invisible in alert statement but could not understand why it is not hiding the fields.
    Another important observation if I am writing the same code in initialise event then it is hiding field.
    Please help me in this.
    Regards
    Satya

    Hi Satya,
    I am facing the same issue. Were you able to fix it ?
    Before deploying the xdb, the script works fine. After deployment it does not work.
    I used the code :
    xfa.resolveNode("Page11.Sub_PayTransGenDataCorpAdd").presence = "hidden";
    xfa.resolveNode("Page11.Sub_BranchAddress").presence = "hidden";
    Please advise..
    Regards,
    Vibha

  • How do I check the java script is up to date?

    When I am on facebook or any site like that it takes for ever to load the pages.

    "How do I check the Java script is up to date?"
    You can visit these two sites and check updates for your plug-ins:
    1. http://www.mozilla.com/en-US/plugincheck/
    2. http://www.java.com/en/download/installed.jsp

  • How do I use a Java script in place of a standard link?

    Hi! I'm very new to html and totally unfamiliar with Java. Basically my html has a link like this: Mr Nobody and I didn't like how easy it was for spammers to harvest that email address from my website. I looked at this site http://www.bronze-age.com/nospam/ which allowed me to download a javascript .js file and some instructions on how to recode my email link so that it's hidden.
    I've loaded the java procedure in the head of the html just like the website says. He says that every link must be converted to a script call; so what previously was Mr Nobody changes to <script>mail2("nobody","fake.address9z",0,"","Mr Nobody")</script>. What does this mean? I replaced the stuff from the inside of the quotes in the href and weird stuff happens. What do I actually replace or how do I call up this script?
    I basically have created an image mapped link that I want to call this javascript when clicked.
    thanks for any help!! :)

    cotton.m wrote:
    BigDaddyLoveHandles wrote:
    cotton.m wrote:
    BigDaddyLoveHandles wrote:
    cotton.m wrote:
    BigDaddyLoveHandles wrote:
    nclow wrote:
    BigDaddyLoveHandles wrote:
    nclow wrote:
    Beats me. Read the documentation. Or ask on a javascript forum, but they'll probably tell you the same thing.Yeah, they're all a bunch of ASCII porn lovers.Really, who isn't?!Even the sounds of an impact printer pounding out a solid page of characters gives me a thickie.Well actually... unless you're in the habit of using mustard during foreplay, and really who can tell, then I think that's actually one of them cd-rom hotdogs that you dropped in your lap.Is it too late to mention what a cultured and sophisticated person I am?If by cultured you are referring to bacterial growth between your toes then yes I think we covered this.It's just that I'm still holding out for that sponge bath from Fiest.Well if she ever gets off Bravo I'll send her your way.
    But not on the train. Yikes!Sigh... It's just that I've got that big guy's weakness for bony women...

  • How to send sms through java program?

    hi,
    i am trying to send sms through java program.i am usining ubuntu 6.04.i am using modem MC35i.i use the jSMSEnjine.jar and rxtxcomm.jar.
    these are the following program.
    import org.jsmsengine.*;
    import java.util.*;
    class SendMessage
         public static void main(String[] args)
              int status;
              // Create jSMSEngine service.
         CService srv = new CService("Com2",9600);
              //CService srv = new CService("COM2",9600);
              System.out.println();
              System.out.println("SendMessage(): sample application.");
              System.out.println(" Using " + srv._name + " " + srv._version);
              System.out.println();
              try
                   //     Initialize service.     
                   srv.initialize();
                   Thread thread =Thread.currentThread();
                   thread.sleep(1000);
                   System.out.println(srv);
                   //     Set the cache directory.
                   srv.setCacheDir(".\\");
                   //     Set the phonebook.
                   //     srv.setPhoneBook("../misc/phonebook.xml");
                   //     Connect to GSM device.
                   status = srv.connect();
                   //     Did we connect ok?
                   int st=CService.ERR_OK;
                   System.out.println(st);
                   System.out.println(status);
                   if (status == CService.ERR_OK)
                        //     Set the operation mode to PDU - default is ASCII.
                        srv.setOperationMode(CService.MODE_PDU);
                        // Set the SMSC number (set to default).
                        srv.setSmscNumber("");
                        //     Print out GSM device info...
                        System.out.println("Mobile Device Information: ");
                        System.out.println("     Manufacturer : " + srv.getDeviceInfo().getManufacturer());
                        System.out.println("     Model : " + srv.getDeviceInfo().getModel());
                        System.out.println("     Serial No : " + srv.getDeviceInfo().getSerialNo());
                        System.out.println("     IMSI : " + srv.getDeviceInfo().getImsi());
                        System.out.println("     S/W Version : " + srv.getDeviceInfo().getSwVersion());
                        System.out.println("     Battery Level : " + srv.getDeviceInfo().getBatteryLevel() + "%");
                        System.out.println("     Signal Level : " + srv.getDeviceInfo().getSignalLevel() + "%");
                        //     Create a COutgoingMessage object and dispatch it.
                        //     *** Please update the phone number with one of your choice ***
    // String smsLengthTest="Hi"+"\nTesting is going on.Test for sending unlimited number of charecter.So you will get N number of SMS.Initially I trancate the whole string by 70 charecter.Later I will put it upto 90 charecter.Some chararecter should kept for header portion.I don't know the total number.It is just test.If you got the sms u should appreciate me...This is Ripon...I have written sms program";
    String smsLengthTest="Hi\n"+"This is Govindo";
    int mao=smsLengthTest.length();
    System.out.println("Length of sms :"+mao);
    String smsNo="9433314095";
    smsNo="+91"+smsNo;
    if(mao<70)
    COutgoingMessage msg = new COutgoingMessage(smsNo,smsLengthTest);
    //     Character set is 7bit by default - lets make it UNICODE :)
    //     We can do this, because we are in PDU mode (look at line 63). When in ASCII mode,
    //          this does not make ANY difference...
    msg.setMessageEncoding(CMessage.MESSAGE_ENCODING_UNICODE);
    if (srv.sendMessage(msg) == CService.ERR_OK) System.out.println("Message Sent!");
    else System.out.println("Message Failed!");
    else
    // COutgoingMessage msg = new COutgoingMessage(smsNo,smsLengthTest);
    // LinkedList messageList;
    // messageList = new LinkedList();
    // messageList.add(msg);
    // LinkedList maooo=new LinkedList();
    // maooo=srv.splitLargeMessages(messageList);
    int sizelength=0;
    int counter=0;
    sizelength=smsLengthTest.length();
    System.out.println("SMS length :"+sizelength);
    int smsCntr=sizelength/70;
    System.out.println("smsCntr :"+smsCntr);
    counter=smsCntr+1;
    int j=70;
    int k=0;
    try
    for(int i=0;i<smsCntr;i++)
    String test="";
    test=test+i;
    test=smsLengthTest.substring(k,j);
    System.out.println(test);
    System.out.println(test.length());
    COutgoingMessage msg = new COutgoingMessage(smsNo, test);
    System.out.println("hi this is suman" + smsNo);
    //     Character set is 7bit by default - lets make it UNICODE :)
    //     We can do this, because we are in PDU mode (look at line 63). When in ASCII mode,
    //          this does not make ANY difference...
    msg.setMessageEncoding(CMessage.MESSAGE_ENCODING_UNICODE);
    if (srv.sendMessage(msg) == CService.ERR_OK) System.out.println("Message Sent!");
    else System.out.println("Message Failed!");
    k=k+70;
    j=j+70;
    catch(Exception e)
    System.out.println("Error...1");
    e.printStackTrace();
    e.getMessage();
    String lastPortion=smsLengthTest.substring(k);
    System.out.println(lastPortion);
    COutgoingMessage msg = new COutgoingMessage(smsNo, lastPortion);
    //     Character set is 7bit by default - lets make it UNICODE :)
    //     We can do this, because we are in PDU mode (look at line 63). When in ASCII mode,
    //          this does not make ANY difference...
    msg.setMessageEncoding(CMessage.MESSAGE_ENCODING_UNICODE);
    if (srv.sendMessage(msg) == CService.ERR_OK) System.out.println("Message Sent!");
    else System.out.println("Message Failed!");
                        // Disconnect from GSM device.
                        srv.disconnect();
                   else System.out.println("Connection to mobile failed, error: " + status);
              catch (Exception e)
                   e.printStackTrace();
              System.exit(0);
    the error is:
    SendMessage(): sample application.
    Using jSMSEngine API 1.2.6 (B1)
    org.jsmsengine.CService@addbf1
    0
    -101
    Connection to mobile failed, error: -101
    please help me,its very urgent.

    come back in about 5 years, we may have time for you by then.
    In the meantime, how about contacting the people who wrote that library and asking them nicely for help (rather than trying to order people to drop whatever they're doing and jump through hoops to accommodate your every wish as you're doing here)?

  • How to enable java script in firefox

    how to enable java script in firefox

    See:
    *[[JavaScript]]
    Also make sure that an extension isn't causing problems.
    * [[Troubleshooting extensions and themes]]

  • How to use HTML and Java Script files in Portal

    Hi,
    I am trying to access a web application using iViews. My application contains JSP,HTML,Servlets,JS(java script), image files. I am using JSPDynPro to access the JSP files and I am putting servlets in the private/lib folder of the PORTAL-INF dir of Portal project. Now my problem is almost all the JSP files uses the HTML files, JS files and image files. Where can put these files in the portal project dir structure to give access to the JSP files when i am creating a iView for the JSPDynPro componenets in the irj.
    thanks,
    Ashok

    Hi,
    JSPDynpage is the controller, one JSPDynpage can call more than one jsp file according to the coding. Through the JSPDynpage's setJspName() function only you can display a jsp page.
    EX:
    public void doProcessBeforeOutput() throws PageException {
      this.setJspName("logon.jsp");
    if you put the JSPDynpage in the src.core then the JSPDynpage can be accessed only by this application.
    if you put the JSPDynpage in the src.api then other applications can access this component.
    You can put the jsp pages in the pagelet folder.
    xml file
    =========
    <?xml version="1.0" encoding="utf-8"?>
    <application>
      <application-config>
        <property name="SharingReference" value="com.sap.portal.htmlb"/>
      </application-config>
      <components>
        <component name="jspdynpage name">
          <component-config>
            <property name="ClassName" value="package name.jspdynpagename"/>
          </component-config>
          <component-profile>
            <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
          </component-profile>
        </component>
      </components>
      <services/>
    </application>
    REWARD USEFUL ANSWERS

  • How do i disable a java script error that pops up everytime i click on something?

    java script error Error: Permission denied to access property 'host'
    this continues to come up every time i click on something. this has only started since i downloaded firefox 4.0. how do i disable the pop up or do i just stop using 4.0? would go back to the last version but when i try to download that i'm told the files are corrupted

    Create a new profile exclusively for the 4.0 beta version and create a desktop shortcut with -P "profile" appended to the target to launch that profile.
    * http://kb.mozillazine.org/Testing_pre-release_versions
    * http://kb.mozillazine.org/Creating_a_new_Firefox_profile_on_Windows
    * http://kb.mozillazine.org/Shortcut_to_a_specific_profile
    * http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox

  • How to instantiate class in java script

    Hi, I'm new to java script. I have made a class in package project.attendance.model named CheckEmpId. I want to access methods of that class in my java script. Is it possible, if yes than how?
    Thanks

    Javascript is client side, Java is server side. That fact alone makes it impossible for javascript to invoke your java code.
    On the server side you have the ability to dynamically generate javascript however, so maybe you can fix your problem that way depending on what you want to achieve.

  • HT201322 How to hide app through itune in iso 6

    How to hide purchased app through itune in iOS 6 device

    It's not currently possible to do it directly on iOS 6 devices, but you should still be able to do it via your computer's iTunes

  • How to include a common java script in all pages to prevent browser closure

    We have already implemented a script to prevent accidentally browser closure. The script has been included in a js static file and loaded in APEX 4.01.
    There is a way to make the script available to all pages without including it in all pages ?
    Ad example to make an item available to all pages is sufficient to include it in page 0 there is somethings similar for java script
    Txs
    Giuseppe.

    Reference the script via a <tt>script</tt> element in the Header section of utilised page templates.

  • How to execute vbscript through java

    hi i m trying to run vbscript (that accept some command line arguments) through java .
    my vbs file is stored in c: drive
    purpose of vbs file : to map network drives.
    i normally run it from command prompt using following syntax
    c:\cscript map.vbs l: \\10.22.122.35\d$ <username> <password>
    code in map.vbs
    map.vbs
    Dim objNetwork
    Set objNetwork = WScript.CreateObject("WScript.Network")
    strLocalDrive = WScript.Arguments.Item(0)
    strRemoteShare = WScript.Arguments.Item(1)
    strPer = "FALSE"
    strUsr = WScript.Arguments.Item(2)
    strPas = WScript.Arguments.Item(3)
    objNetwork.MapNetworkDrive strLocalDrive, strRemoteShare, strPer, strUsr, strPas
    my problem is i can easily accomplish this by using .batch file but i dont want to reveal my username and password
    i just want to know is there any way thru which i can somehow link java program with dos command and execute vbs file
    from my java program.
    the code that i have got is not working properly or has to be modified to work.
              String os = System.getProperty("os.name").toLowerCase();
         if (os.indexOf("windows") != -1)
              String[] command = new String[]{"cmd.exe", "/c","cscript","c:\\map.vbs", '"'+strDrive+'"','"'+strPath+'"',"<username>" ,"<password>"};
              Runtime.getRuntime().exec(command);
    Kindly help me as this is very urgent.

    prompt for the login, the password, and the new share name, and store them in variables, then, you can do something like:
    Runtime.getRuntime().exec("net use " + sharenameVar + " \\\\HOST\\share /user:HOST\\" + userVar + " \"" + passwordVar + "\"");with the following values:
    HOST: PC10
    user : toto
    pass : a password
    sharename: I:
    it will result in :
    net use I: \\PC10\share /user:PC10\toto "a password"
    this will map the new share with the given credentials ; there is no need to add some complexity by using a vbscript to do that

  • How to Invoke BPEL through JAVA

    I am struggling since last 4-5 days to invoke BPEL process through java.
    So can any one provide me with full code.
    I want any java code like jsp,core java,servlets etc.
    Here is my jsp code with which I am trying to invoke my BPEL process named 'invoke'.which has just one input parameter 'InvokeProcessRequest'.
    The error is 500 internal server error.
    also,
    I want to know,
    what parameter to write in Locator class.
    whether we have to make in changes in any xml file or so.
    <%@page import="com.oracle.bpel.client.Locator" %>
    <%@page import="com.oracle.bpel.client.NormalizedMessage" %>
    <%@page import="com.oracle.bpel.client.dispatch.IDeliveryService" %>
    <html>
      <head>
       <title>InvokeBPEL</title>
      </head>
    <body>
    <%
      String Payload = request.getParameter("Payload");
    %>
        <!-- Construct HTML form here -->
         <h3>Invoke</h3>
    <h4>Application Form</h4>
    <form>
       <table>
       <tr>
         <td>Payload</td>
         <td><input type="text" name="Payload" value="123456789"></td>
       </tr>
       <tr>
         <td>InvokeProcessRequest</td>
         <td><input type="text" name="InvokeProcessRequest" value="invoke"></td>
       </tr>
       </table>
       <input type="submit" value="Send Application">
    </form>
    <%
        // 1. Get form fields
         String InvokeProcessRequest = request.getParameter("InvokeProcessRequest"); 
        // 2. Create loan application XML document
          String xml = "<invoke xmlns=\"http://www.w3.org/2001/XMLSchema\">"      
             + "<Payload>" + Payload + "</Payload>"     
          + "<InvokeProcessRequest>" + InvokeProcessRequest + "</InvokeProcessRequest>"     
            + "</invoke>";
        // 3. Initiate the BPEL process here
          // Connect to Oracle BPEL server
             Locator locator = new Locator("default","bpel");
            IDeliveryService deliveryService = (IDeliveryService)
            locator.lookupService(IDeliveryService.SERVICE_NAME );
             // Construct a normalized message and send to Oracle BPEL Process Manager  
         NormalizedMessage nm = new NormalizedMessage();  
         nm.addPart("payload", xml);
           // Initiate the BPEL process  
         deliveryService.post("invoke", "initiate", nm);
         %>    <p>BPEL Process <code>MyLoanFlow</code> initiated    
                 with a loan application containing Payload=<%= Payload %></p>
               <p>Please refer to the   
               <a href="/BPELConsole/displayInstance.jsp">BPEL Console</a>
                to see the status of the initiated MyLoanFlow BPEL Process.</p>
         <%
    %>
    </body>
    </html>

    Krishna, Not sure what you mean by 'normal' web service....I mean, is BPEL service not normal, is it not as per WS standards. It would be interesting if you could shed some light on that.
    On the question of calling BPEL, I thought there were two methods - one is using the BPEL PM API, which uses the locator class to get hold of BPEL PM instance and then call a deployed bpel service
    The other way is to develop a web service proxy using JDeveloper. Its a very simple process. Once you do that, you can call the proxy from Java.

  • Internet explorer allows me to open certain information/tabs which are somehow connected to java script but Firefox won't. This just started happening a few days agoyet my javca script is enabled. what is the problem/fix. I'm a novice with computers

    I am not sophisticated at understanding computer language. What I know is that 3 things have happened in the last 2 weeks.
    1.My yahoo account which I go to from Mozilla firefox 4.0.1 now requires me to click on a link that says it disables updates. Then my homepage seems to be ok/normal except:
    2.One of the email links tries to open a site called Ok Cupid and that site is really distorted and unreadable
    3. another website www.texastrails.org has a tab called 'docs' which can be reached from "member portal". There should be documents in Word and adobe reader on the left side of the screen which can be opened normally. These do not exist now and the texas trails webmaster says it has to do with Java Script. (it does open in Internet Explorer)
    Why would these two sites open in IE but not firefox?
    Note that I went to "My Computer" and found I have environment 5.0 Java6 update 24 and J2SE Runtime environment 5.0update 6 on different lines. I have no clue what these mean:-)
    I also click on Firefox "tools" and see that java is checked/enabled.

    This is not an answer. I have the same problem, what gives? None of the "solutions" have worked. The only thing left I haven't tried is resetting my IP an disabling my routers firewall, which is dangerous. Guess I might just keep on using IE instead, sure it's annoying, but hey it works.

  • How to reverse find through powershell script in contents of the file

    Hello All,
    Following script is to perform the find and replace in the files:
    [CmdletBinding(SupportsShouldProcess=$True)]
    param (
    [Parameter(Mandatory=$true)]
    [string] $inst1 = $null,
    [Parameter(Mandatory=$true)]
    [string] $inst2 = $null,
    [Parameter(Mandatory=$true)]
    [string] $FPath = $null
    (get-content $FPath) | foreach-object {$_ -replace $inst1, $inst2} | set-content $FPathAbove script find and replace from starting of the string in the file contents.Please suggest how to achieve find and replace from last of the string for example:string is a\b\c\d\e and find "\" from last and replace it with Test, output should be Teste.Thank You

    #string is a\b\c\d\e and find "\" from last and replace it with Test, output should be Teste.
    $string = 'a\b\c\d\e'
    $Replace = 'Test'
    $string -replace '.+\\',$Replace
    Teste
    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

Maybe you are looking for

  • Error when opening leave request task in UWL

    Hi, I have a manager role and when I want to proceed the leave request tasks in the UWL, I get the following error message: Error:     -6 Version:     7000 Component:     J2EE Server Date/Time:     Thu Jun 10 17:58:01 2010 Module:     http_j2ee.c Lin

  • Set a default value for a radio button populated with a List of value

    Hi, I am using jdeveloper 11.1.1.3.0. I need to set a default value for a radio button populated with a List of value(Yes/No). Here's the selectonechoice code. <af:selectOneRadio value="#{bindings.Code.inputValue}" label="#{bindings.Code.label}" requ

  • ALE with BAPI; No recipient found for message type

    We have to send sales activities from an ECC-system to CRM and tried to do this with message type SFADPSA and Idoc SFADPSA01. When adding this message type to the distribution model (transaction BD64) we got the SAP-message to use a BAPI instead:  IF

  • U43M1U41 when upgrading on Mac 10.7.5

    All, How do I fix this problem? Thanks. REgards, Chas.

  • Number of Contacts ebbs and flows from 700 to 20,000+

    I don't know if it is BB, LinkedIn, Riva (CRM syncing software), or whatever else, but for the past year, I have had the priviledge of seeing the number of Contacts in my BB go from 700 to 20,000+, and back down again, several times per month. Not on