Problem in getting the frame object in firefox 20.0.1

When i upgraded to firefox 20.0.1 which have throw exception in javascript.
I am using a lightstramer 3.6 library for my development.
Program cause error by use this object.
"var masterWinRef = self.parent.frames["push_engine"]"
When I change this line to
"var masterWinRef = top.document.getElementById('push_engine').contentWindow ;"
So, what is the different between this?
Before use firefox 19 is working.

Is there anything wrong with the code?No, only with your understanding of the Date class. From the API:
The class Date represents a specific instant in time, with millisecond precision.
The different time displayed for different TimeZones around the world are just that: a display format for the same instant in time.
To display the "instant in time" in a different TimeZone, use DateFormat. Here's a small sample:TimeZone tz = TimeZone.getTimeZone ("GMT");
Calendar c = Calendar.getInstance (tz);
System.out.println(c.getTime ()); // prints Tue Mar 18 02:56:53 IST 2008
DateFormat dtf = DateFormat.getTimeInstance ();
dtf.setTimeZone (tz);
System.out.println(dtf.format (c.getTime ())); // prints 9:26:53 PMIt's no different from formatting the same number in various ways: 10 decimal == 0xA hexadecimal == 012 octal == 1010 binary. Same value, different representation. Same intant in time, different local time for each zone.
Savvy?
cheers, db

Similar Messages

  • Problem in getting the Date object based on the TimeZone

    Hi,
    I need to create a Date object that holds the time of the specified TimeZone.
    I am using TimeZone and Calendar object for that, but when I call the Calendar object's getTime() method, it returns
    a Date object that holds the local time.
    Can somebody let me know what why?
    Here is what I uses in my code.
    TimeZone tz = TimeZone.getTimeZone("IST");
    Calendar cal = new GregorianCalendar(tz);
    System.out.println("Date of "IST" TimeZone = " + cal.getTime());
    Instead of cal.getTime, if I do the following I am getting the values correctly.
    int month = cal.get(Calendar.MONTH); // 0..11
    int day = cal.get(Calendar.DATE); // 0..11
    int hour12 = cal.get(Calendar.HOUR); // 0..11
    int minutes = cal.get(Calendar.MINUTE); // 0..59
    Can somebody let me know why I am not able to assign the Date of the TimeZone specified.
    Is there anything wrong with the code?
    Seb

    Is there anything wrong with the code?No, only with your understanding of the Date class. From the API:
    The class Date represents a specific instant in time, with millisecond precision.
    The different time displayed for different TimeZones around the world are just that: a display format for the same instant in time.
    To display the "instant in time" in a different TimeZone, use DateFormat. Here's a small sample:TimeZone tz = TimeZone.getTimeZone ("GMT");
    Calendar c = Calendar.getInstance (tz);
    System.out.println(c.getTime ()); // prints Tue Mar 18 02:56:53 IST 2008
    DateFormat dtf = DateFormat.getTimeInstance ();
    dtf.setTimeZone (tz);
    System.out.println(dtf.format (c.getTime ())); // prints 9:26:53 PMIt's no different from formatting the same number in various ways: 10 decimal == 0xA hexadecimal == 012 octal == 1010 binary. Same value, different representation. Same intant in time, different local time for each zone.
    Savvy?
    cheers, db

  • Problem in getting the TextBox object to Javascript....

    Hi All,
    Below is the code which i'm using to calculate the percentage and amount(vice versa).
    <script language="JavaScript" type="text/JavaScript">
    function fillAmt(obj) {
    alert(obj.name);
    var mks_Val = document.billingCycleDistribution.mks0.value;
    var obj_Name = obj.name;
    var obj_Val = obj.value;
    obj_Name = obj_Name.substr(7);
    var disp_Amt = (mks_Val * obj_Val) / 100;
    var txt = "amount"+obj_Name;
    alert("TXT "+txt);
    document.billingCycleDistribution.txt.value = disp_Amt;
    //alert(obj_Name);
    //alert(document.billingCycleDistribution.mks0.value);
    //alert(document.billingCycleDistribution.mks1.value);
    //document.billingCycleDistribution.mks0.value
    </script>
    <%
    Calendar cal = Calendar.getInstance();
    int max_Days = cal.getActualMaximum(Calendar.DAY_OF_MONTH);
    for(int rowCount=1; rowCount <= max_Days; rowCount++)
    { %>
    <tr>
                                  <td width="57" height="27" align="center" class="ms-formlabel" style="border-style: solid; border-width: 1">
                                  <p align="center"><input type="checkbox" name= "C1" value=<%=rowCount%>> <%=rowCount%></td>
                                  <%
                                  for(int txt_box = 0; txt_box < marketSegList.size(); txt_box++) {
                                  %>
                                       <td width="153" height="27" align="center" style="border-style: solid; border-width: 1">
                                  <div id= <%="percentdiv"+rowCount%> style="display:block"><p align="center">
                                       <input type="text" name=<%="percent"+rowCount+txt_box%> size="15" onblur="fillAmt(this)">
                                       </div>
                                       </td>
    <td width="153" height="27" align="center" style="border-style: solid; border-width: 1">
                                  <div id= <%="amountdiv"+rowCount%> style="display:block"><p align="center">
                                       <input type="text" name=<%="amount"+rowCount+txt_box%> size="15" onblur="fillPer(this)">
                                       </div>
                                       </td>
                                  <%
                                  %>
    When i try to set the value in amount if a percentage is entered, it gives me an error.
    The problem is since both the text fields are named dynamically @ runtime I'm unable to get them in the Javascript function.
    Kindly help me out in this.
    Thanks
    ss

    Hi Annie,
    Thanks for your reply. I found a method which can be used to set the values.
    It is eval(). Here is the code.
    Working Code:
    eval("document.billingCycleDistribution."+txt+".value = disp_Amt;");
    Not Working Code:
    document.billingCycleDistribution."+txt+".value = disp_Amt;
    Cheers
    Srini

  • Problem in getting the function template object from the repository.

    Hi all,
    I have created a par file. I have a JCO connection in that. I am facing problems in getting the function template object from the repository. This thing is running successfully when i try to deploy it in Tomcat. But i am facing problems when i try to deploy it in SAP EP 6.0.
    Below is statement which is giving error after being deployed to SAP EP6.
    This is executing fine when executed in Tomcat Server.
    // getting the object of function template
    IFunctionTemplate functionTemplate =
    aRepository.getFunctionTemplate("YADDNEWUSER");
    Note : YADDNEWUSER is the name of the RFC which I am calling from my JAVA Code.
    Thanks in advance,
    Divija

    This sounds like a bug in the smart upload code. I have used this stuff before, but it's probably an older version, so maybe they broke something. Enumerations aren't usually guaranteed to keep things in any particular order. I would say for now, make a method to take the enumeration and a param name to find the value. And write to the JSPSmart people.

  • Problem getting the collection objects in Toplinks using JDeveloper11g

    Hi All
    I am working the Toplinks in JDeveloper11g. I am using the Java Objects From Tables to create the Toplink map .
    The problem is I am unable to work with the collection objects. I am getting the collection objects like addtocollection and removefromcollection. when I am dragging the collection object into the form and running the application it is giving errors.
    Can any one help me out how to work with this collection objects.
    Thanks in advance
    Madhavi.

    look at the java.util.SortedMap interface, and the classes that implement it. or, re-think your design. why do you want the entries sorted? do you really want that, or do you assume you do? is a Map the right collection here? I'm not saying it isn't, I'm just saying that the sorting requirement sounds like an assumption you need to challenge. generally, we get data out of a Map by explicitly asking for it by key

  • Is there inbuild Handler in weblogic using which i can get the MessageContext object

    HI,
    I need MessageContext object in my application but i dont want to use the Handler,As
    there is AxisEngine in axis soap engine,is there any similar implementation in
    weblogic.
    AxisEngine.getCurrentMessageContext() we can get the MessageContext what about
    in weblogic..any body any idea???
    Regards,
    Akhil Nagpal

    HI,
    yeah i had to make use of Handler to get the MessageContext object and play with
    that.
    Thanks & Regards
    Akhil Nagpal
    "manoj cheenath" <[email protected]> wrote:
    You can get to MessageContext from a handler. Check out an example of
    handler
    to see how you can get Message out of MessageContext.
    -manoj
    "Akhil Nagpal" <[email protected]> wrote in message
    news:[email protected]..
    HI manoj,
    Thanks for your reply.otherwise i thought that i wont get any morehelp
    on this
    forum :-) ...
    anyway its good that we will have such thing in next version,duringthe
    development
    i feel that more functioanlity should be in build in appserver. Likeone
    more
    thing i could not find out is how we can get the "message" object inweblogic
    like we can in axis using its MessageContext class's static method.if it
    is there
    can you please let me knwo about that.
    The other problem i had to make use of handler and my appl is workingas of
    now :-)
    Regards
    Akhil Nagpal
    "manoj cheenath" <[email protected]> wrote:
    You can not do this in WLS 7.0. The next major release (WLS 8.1) will
    fix
    this problem.
    -manoj
    "Akhil Nagpal" <[email protected]> wrote in message
    news:[email protected]..
    HI,
    I need MessageContext object in my application but i dont want
    to
    use
    the Handler,As
    there is AxisEngine in axis soap engine,is there any similarimplementation in
    weblogic.
    AxisEngine.getCurrentMessageContext() we can get the MessageContextwhat
    about
    in weblogic..any body any idea???
    Regards,
    Akhil Nagpal

  • Problem in getting the database connection from a connection pool

    Hai All,
    I am facing a problem in getting the database connection from a connection pool created on weblogic server 8.1.
    I am using the Oracle database 8.1.7.
    I have configured my connection pool, datasource and JNDI in weblogic.
    In my java program i have the following code to retrieve the connection.
    import java.sql.*;    
    import java.util.Hashtable;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    class jdbcshp1 {
        public static void main(String[] args) {
         Connection connection = null;
         try {
               Hashtable ht = new Hashtable();
               ht.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");  // Wanna get rid of this.
               ht.put(Context.PROVIDER_URL,"t3://localhost:7001"); // wanna get rid of this.
               // Get a context for the JNDI look up
               Context ctx = new InitialContext(ht);
            javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup ("myjndi1");
              //Create a connection object
              connection = ds.getConnection();
         The above code is working fine but, the two ht.put statements are creating problem.
    The problem is, after converting the application into WAR file it can be deployed
    on any machine or different port on same machine. My application fails if its deployed on
    weglogicserver which is at different port.
    Is there any way that i can get rid of those ht.put statements or any other way to solve the problem.
    any help is appreciated.
    Thanks in advance
    Pooja.

    Hai All,
    Firstly, thanks for ur reply.
    Even i have seen some code which uses context constructor with out any parameter and works fine.
    i dont understand why its not working for my code.
    When i remove those ht.put code and use context constructor with out any parameter, it giving an error.
    Context ctx = new InitialContext();
    javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup ("ocjndi");
    connection = ds.getConnection();The error is as follows:
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    the above error is forcing me to include those code but if the port number is changed the code will not work. Plz let meknow if some setting have to be made.
    I appreciate all ur valuable help.
    Thanks once again.
    Pooja.

  • How to get the original look of firefox 4 with 'firefox button' on top then bookmarks lane following with address bar..?

    i have been using firefox 3.6.16 and just upgraded to version 4 last night. actually the problem is this, in my browser the 'firefox button' and all tabes are shown in the same lane on top.
    what i want is to get the default look of firefox 4 with firefox button on top and all the tabs appearing on beneath this button..(not in same lane)
    am i having due to any preference setting or else? please help

    If the Firefox window is maximized, it will display the tabs in the same line as the Firefox button, it only displays them on a separate line on a non-maximized window.

  • How to get the extension Info from firefox? Do we have any firefox API to communicate with the browser? I couldnt see the HTML of the widget displayed in the toolbar how to access the widget using JS or any way

    How to get the extension Info from firefox? Do we have any firefox API to communicate with the browser? I couldnt see the HTML of the widget displayed in the toolbar how to access the widget using JS or any way

    Hi,
    Thanks for the suggestion. I've been playing around with some of the classes of the java.net package and java.io
    Using the URL class i can get the content of the data from a STATIC page and output that response to file so that is does not display to the client broswer.
    But this only works if the URL i give points to a static html page.
    So the problem i'm getting is if i'm righting in arguments in the URL, this means that server needs to process the arguments i give and its sends back a dynamic result. Because its dynamic the URL class can not handle this and throws me an exception everytime :(
    Have u ever tried to do some things like this?
    Rahul

  • I have tab mix plus and i have set the new tab to open my home page, no matter what i do I can't get the new tab of firefox to show up.

    I can't get the new feature of firefox 13 of the new tab.

    Find '''browser.newtab.url''' and double click on it (or right-click and select modify) and type your homepage you want, to open a new tab in your homepage.
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • I have tried fixing Firefox by uninstall reinstall that didn't work. I still get the same error message: Firefox has stopped working. May have to change!

    I am not the only one having this problem why is Mozilla not doing something about it? I am about fed up & may have to change to a different browser! Firefox was the best browser I've ever had but not anymore! Wish I could go back to the old version--it worked just fine! The new version is when I started having this trouble!
    Time for Mozilla to step up & get a fix or you will be losing more than me I think! I've disabled real arcade & most other add-ons. That didn't help either.

    Thanks for offering help but I have done all of the above & it didn't work! I am really getting fed up with it every time I close Firefox I get the same msg. "Firefox Has Stopped Working." At other times the msg. comes when I have it open. Then I have to close & restart whatever I was doing.
    Don't know what else to do!

  • IBM WSAD 4.0.3 - getting the DataSource object

    Hi guys , i had posted a DataSource question before...but i was able to figure that out. My new problem is that i cant get the DataSource object in my java program and the following error is thrown.
    java.lang.NoClassDefFoundError: com/ibm/ejs/ras/TraceElement
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:212)
         at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:46)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:656)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
         at javax.naming.InitialContext.init(InitialContext.java:223)
         at javax.naming.InitialContext.<init>(InitialContext.java:199)
         at DataSourceCheck.main(DataSourceCheck.java:27)
    Exception in thread "main"
    Here is my Java program :
    import java.sql.*;
    import javax.naming.*;
    import java.util.*;
    class DataSourceCheck
         public static void main(String[] args)
              javax.sql.DataSource myDataSource= null;
              try
                   String initialContextFactory = "com.ibm.websphere.naming.WsnInitialContextFactory";
                   String providerURL = "iiop://localhost:8081";
                   java.util.Properties props = new java.util.Properties();
                   props.put(Context.INITIAL_CONTEXT_FACTORY, initialContextFactory);
                   props.put(Context.PROVIDER_URL, providerURL);
                   Context myContext = new InitialContext(props);
                   Connection myConnection = myDataSource.getConnection();     
              catch (Exception e)
                   e.printStackTrace();
                   System.out.println();
    I start a Server instance from IBM WSAD and it runs on 8081.
    Please suggest what to do .

    sorry..i forgot to delete that line...its a typing eror.
    Here is the code again....
    I fail to get the context.
    import java.sql.*;
    import javax.naming.*;
    import java.util.*;
    class DataSourceCheck
         public static void main(String[] args)
              javax.sql.DataSource myDataSource= null;
              try
                   String initialContextFactory = "com.ibm.websphere.naming.WsnInitialContextFactory";
                   String providerURL = "iiop://localhost:900";
                   java.util.Properties props = new java.util.Properties();
                   props.put(Context.INITIAL_CONTEXT_FACTORY, initialContextFactory);
                   props.put(Context.PROVIDER_URL, providerURL);
                   Context myContext = new InitialContext(props);
                   //myDataSource = (javax.sql.DataSource)myContext.lookup("jdbc/oracle/OracleDataSource");
                   //Connection myConnection = myDataSource.getConnection();     
              catch (Exception e)
                   e.printStackTrace();
                   System.out.println();

  • How can I get the underlying object from the ObjectReference

    Dear friends,
    I think this question has been asked a couple of times. But, I am still wondering if anybody has found an answer to it. Maybe this is some common need ...
    I would like to get the underlying object for which the ObjectReference is
    a mirror For example, I have a class Customer in my application, and I can get an ObjectReference through JDI during runtime. But how can I get the target VM's object which is a real instance of Customer, by which I can invoke methods defined in Customer?
    Thank you so much for any input!
    SunnyDay

    I'll preface this response by admitting this far from an elegant solution, but I did write a function addressing this question, mostly as an exercise.
    If passed an object with an InTextFrame property (Pgf, AFrame, Cell, Fn) that resides in an open document, the function will return the Doc object. Otherwise, it returns undefined.
    function getParentDoc(testObj) {
        //Get object for current page
        try { var curPage = testObj.InTextFrame.FrameParent.PageFramePage; }
        catch(er) {return;}
        //Step backwards to first page in document
        var prevPage = curPage.PagePrev;
        while (prevPage.ObjectValid())
            curPage = prevPage;
            prevPage = prevPage.PagePrev;
        //Compare with first pages of open documents
        var testDoc = app.FirstOpenDoc;
        while (testDoc.ObjectValid())
            if (curPage.id==testDoc.FirstBodyPageInDoc.id) return testDoc;
            testDoc = testDoc.NextOpenDocInSession;    
        return;
    To your PPS: Rather than seeing the native framework grow bloated to address additional features, I would love to see Adobe and other developers publish libraries of useful functions and class extensions.

  • How to get the UserTransaction object in  stateless session bean

    Hi, I am using jboss server and jdk5 version and using EJB.
    My Application flow :
    JSP à Action(Struts) à Service Locator à Session bean à Entity Bean(cmp) à DB.
    I tried to get the UserTransaction object in my Action. Its my code.
    InitialContext ctx = new InitialContext();
    UserTransaction uTrans = (UserTransaction) ctx.lookup("java:comp/UserTransaction");
    After used uTrans.begin(),uTrans.commit() and uTrans. rollback () also.
    Its working fine .
    But, I used the the same code inside in my session bean its not working.
    Stateless Session Manager Bean code :
    public class SampleManagerBean implements SessionBean {
    public void ejbCreate() throws CreateException {  }
    public void ejbRemove() {  }
    public void ejbActivate() {   }
    public void ejbPassivate() {   }
    public void setSessionContext(SessionContext sessionContext) {
    this.sessionContext = sessionContext;
         public void createSample() throws EJBException
         try{
                   InitialContext ctx = new InitialContext();
                   UserTransaction ut = (UserTransaction) ctx.lookup("java:comp/UserTransaction");
              }catch(Exception e) {
              System.out.println(“ Exception === > “+e)
    Its throws the error ie: javax.naming.NameNotFoundException: UserTransaction not bound
    How to get the UserTransaction object in my session bean. Kindly give solution the above errors.
    - Thendral

    first of all, you could just use sessionContext.getUserTransaction(). however, that would only work if your bean is using bean-managed transactions. the default is container-managed transaction, in which case you cannot get a UserTransaction object. if you want to manage transactions, you need to add the TransactionManagementType.BEAN annotation to your ejb.

  • How to get the frame rate of my application

    Hi again...
    How can I get the frame rate of my application?
    I also want the frame rate value to be the title of the frame, updated every second. How do I do that?
    thanks in advance...

    To get the path where your application has been installed you have to do the following:
    have a class called "what_ever" in the folder.
    then you do a litte:
    String path=
    what_ever.class.getRessource("what_ever.class").toString()
    That get you a string like:
    file:/C:/Program Files/Cool_program/what_ever.class
    Then you process the result a little to remove anything you don't want:
    path=path.substring(path.indexOf('/')+1),path.lastIndexOf('/'))
    //Might be a little error here but you should find out //quickly if it's the case
    And here you go, you have a nice
    C:/Program Files/Cool_program
    which is the path to your application.
    Hooray

Maybe you are looking for

  • Can't Sleep or Shut Down - Getting Worse

    I have a new MBP with WinXP Home installed on a separate partition created with Boot Camp 1.2. I use Windows to access a work system, otherwise, I am always in OS 10.4.9. Everything worked perfectly for about two weeks. Beginning about a week ago, I

  • Why is Adobe SOOOO difficult to work with?

    got email that credit card info was hacked, canceled the credit card I used.  The next day Adobe suspended my account for non-payment cause the OLD credit card number would not work, like DAH. I had not received my new account number.  Now I have new

  • Whats with iPhone requiring a 1 ?

    I have had a phone number in my contacts for nearly a year now on this phone. Its an 800 number. As everyone knows, cell phones don't use the "1" before area code and number anymore. That is only needed for archaic landlines. But this number has been

  • Logo not showing up

    I'm not sure if this is an Indesign problem or Illustrator problem so I'm starting with the Illustrator forums. I have a logo created in Illustrator that I have imported into an inDesign document. Only part of the logo is showing up when I print it (

  • When I switch between calls, how can I put some mu...

    Hello. When I switch between calls, how can I put some music to the person that is wainting. I have a N70. And, frequently when I have a call somebody calls me. What I use to do is to put one of then in hold while I'm finishing one of the calls. I wo