Firefox 3.6.7 document.body is null in onload event.

Starting with Firefox 3.6.7 I am sporadically getting document.body is null in my window.onload event handler. It's happening inside a widget iframe that is created dynamically. It's been fine in prior versions.
== With Firefox 3.6.7 ==
== User Agent ==
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.99 Safari/533.4

You can try to use a setTimeout()
A good place to ask questions and advice about web development is at the MozillaZine Web Development/Standards Evangelism forum.
The helpers at that forum are more knowledgeable about web development issues.
You need to register at the MozillaZine forum site in order to post at that forum.
See http://forums.mozillazine.org/viewforum.php?f=25
You need to post a link to the website or post relevant parts of the code.

Similar Messages

  • I creating firefox extension when add this into firefox all works right but when i open a new link show a dialog box with message "Error: document body is null"

    I am creating firefox extension (No error in extension because it work fine in chrome). But it show box with error "Error: document.body is null" why

    Thanks for reply cor-el &jscher2000
    i am not using "window.content.document.body".
    we send some screenshots for understanding problem
    i created this extension for firefox, chorme
    It Works fine in chrome but in firefox show error(Which have no effect on my extension or other browsing).

  • Commands - selecting document body/region

    DW CS3 - Background is that I have a bunch of .htm files for
    which I want to add a template. I did the following:
    1) Commands > Start Recording.
    2) Modify > Templates > Add Template to Page.
    3) I selected the template from the list and clicked Select.
    4) In the Inconsistant Region Names, I selected Document
    Body, then in the dropdown for where to move the content, I chose
    the correct I selected the correct region and clicked OK.
    5) File > Save.
    6) Commands > Stop Recording.
    The problem comes when I play it back on the next .htm file.
    The recording goes ok until #4 where it stops. And I have to do the
    rest, from selecting the Document Body on to the end.
    Question - What makes it stop and how do I get it to select
    the Document Body etc? I found the way to save the recording
    permanently, ie name it, so that I can edit it by hand if needed as
    I suspect.
    Here is the pertinent part of the code that is there at
    present (where it stops and won't go on to select the Document
    Body):
    <TITLE>AddChandlerTemplate</TITLE>
    <!--
    // This command was recorded by Dreamweaver MX
    function runCommand()
    // Apply Template: /Templates/bookchandler.dwt
    dw.getDocumentDOM().applyTemplate('/Templates/bookchandler.dwt');
    // -->
    So, since I don't know javascript, what would the missing
    commands be and where do I put it? The part where it stops has a
    window title bar called Inconsistent Region Names. Under Editable
    Regions, it "outlines" down to Document Body and says it's
    unresolved and in the "Move content to new region" dropdown, I
    choose StartHere which is the main editable region in the template
    (StartHere being what I called the editable region). I've tried
    clicking the User for All button but that doesn't seem to have an
    affect.
    Would some kind soul take pity and tell me what code should
    get edited into the Command, and exactly where to put it?
    I've got about 500 of these to do and don't relish doing the
    balance of the macro by hand.
    Thanks.

    This whole plan is a bad one. Applying a template to a page
    with existing
    content is going to be trouble. The best way to do it is to
    spawn a new
    child page, copy/paste from the existing one, and save the
    new one over the
    old one.
    > Question - What makes it stop and how do I get it to
    select the Document
    > Body
    > etc? I found the way to save the recording permanently,
    ie name it, so
    > that I
    > can edit it by hand if needed as I suspect.
    A mouse action stops the recording. It cannot record mouse
    stuff.
    > I've got about 500 of these to do
    Using templates on 500 files is madness, you know? But
    alternatives are
    going to require manual intervention as well....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "kd6kfa" <[email protected]> wrote in
    message
    news:[email protected]...
    > DW CS3 - Background is that I have a bunch of .htm files
    for which I want
    > to
    > add a template. I did the following:
    > 1) Commands > Start Recording.
    > 2) Modify > Templates > Add Template to Page.
    > 3) I selected the template from the list and clicked
    Select.
    > 4) In the Inconsistant Region Names, I selected Document
    Body, then in the
    > dropdown for where to move the content, I chose the
    correct I selected the
    > correct region and clicked OK.
    > 5) File > Save.
    > 6) Commands > Stop Recording.
    >
    > The problem comes when I play it back on the next .htm
    file. The recording
    > goes ok until #4 where it stops. And I have to do the
    rest, from selecting
    > the
    > Document Body on to the end.
    >
    > Question - What makes it stop and how do I get it to
    select the Document
    > Body
    > etc? I found the way to save the recording permanently,
    ie name it, so
    > that I
    > can edit it by hand if needed as I suspect.
    >
    > Here is the pertinent part of the code that is there at
    present (where it
    > stops and won't go on to select the Document Body):
    >
    > <TITLE>AddChandlerTemplate</TITLE>
    > <!--
    > // This command was recorded by Dreamweaver MX
    > function runCommand()
    > {
    > // Apply Template: /Templates/bookchandler.dwt
    >
    >
    dw.getDocumentDOM().applyTemplate('/Templates/bookchandler.dwt');
    > }
    > // -->
    >
    > So, since I don't know javascript, what would the
    missing commands be and
    > where do I put it? The part where it stops has a window
    title bar called
    > Inconsistent Region Names. Under Editable Regions, it
    "outlines" down to
    > Document Body and says it's unresolved and in the "Move
    content to new
    > region"
    > dropdown, I choose StartHere which is the main editable
    region in the
    > template
    > (StartHere being what I called the editable region).
    I've tried clicking
    > the
    > User for All button but that doesn't seem to have an
    affect.
    >
    > Would some kind soul take pity and tell me what code
    should get edited
    > into
    > the Command, and exactly where to put it?
    >
    >
    > I've got about 500 of these to do and don't relish doing
    the balance of
    > the
    > macro by hand.
    >
    > Thanks.
    >

  • Installation done succesfullly - Document.pcc is null or not an object

    Hi
    I have installed Plumtree on my Machine. All logs files says that installation sucessfully. DSN created successfuly.
    There are 2 websites created
    1. Portal
    2. ptapi
    BUT I HAVE FOLLOWING PROBLEMS
    When I run the PORTAL it displays following error message
    1. Error displaying Dropdown Menu
    2. Document.pcc is null or not an object
    When I run the second PTAPI.... I will get displayed an webservices after clicking directory browsing avialable...
    I am new to plumtree can anyone please help what these sites created are and how they should be made run
    Thanks

    You have incorrectly specified or incorrectly installed the image server, or it is not reachable by your browserThis is normal. PTAPI is not a web page, it is a web service, so you should not expect to see anything meaningful.

  • How to restrict Firefox to open word document in browser window with href

    How to restrict firefox to open word document from a website link to open in the browser window, instead it should open in native program.
    1.I have tried other website, and have clicked on similar links they are opening word document correctly in native program
    2. MS word document from one specific site is opening in browser causing junk character in place of word document.
    Could you please help on this.

    Thanks for your response...
    But As i said, I have tried with other website on the same browser, there it is opening word document in native program. Also the above mentioned options have been tried earlier.
    I have some questions related to this?
    How is this href link is behaving differently opening in browser for mozilla only. Technically, Can we make it open it native program only? If so, then how?

  • Shorter Document Body on First Page?

    I am tryiing to understand how Pages decides to make the Document Body shorter on the first page of a document.  Do this in Pages 5:
    File→New.
    Reports→Project Proposal→Choose
    ⌘-A.  Delete Everything.
    You will see that the resulting Document Body does not occupy the entire page.  How would you make it occupy the entire page?

    Hi, Yves. How's Belgium?
    You don't want your page number showing on your first page, but you do want it on the second page and thereafter, correct? Here's what you do.
    Click on Inspector. Then go into layout inspector, which is second from the left. See the "configuration" section? Click on "First page is different". Now, in your document, on your second page header (or footer, whichever), use the insert dropdown and click on "Page Number". You should see a "2" in your header on page 2 and nothing on page one.
    That should do it.
    Lindsay

  • How to adjust the size of the document body in Pages

    Hello all,
    I would like to find out how to change the size of the document body within Pages.
    I encountered this problem when selecting Business Resume from the templates section and after removing the left text box I could not move the main text body to the left, although document margins where set to 0.
    As you can see in the photo the section that says Profile can not be moved to left more than it already is.
    I would appreciate your help
    Thank you

    Several of the Pages 5.5.2 templates are buggy, you have found one of them.
    Create a template from scratch using the Blank tempalte.
    Peter

  • OnLoad event on Body tag locked by template

    I have a behavior that needs to be called with an OnLoad event. The page I need it on is attached to a template, so the Body tag is not available for editing. What are my options? Thanks!

    If you are using DW>4 (that's DW4, not DWCS4), then investigate using Template Editable Attributes.
    Alternatively you could use some custom javascript in the editable region of the head of the page or even below the </html> tag to create an onload event, e.g.,
    <script type="text/javascript">window.onload=whatever();</script>

  • Does firefox have an app for pre-registration of an Ironman event

    does firefox have an app for pre-registration for an ironman
    event that requires registration to the first come first serve basis.
    failure to register in time could result in non particpation.

    Sorry, we are no longer developing Firefox for Windows Mobile. Some very old alpha test versions are available if you want to try them. For details, see: https://wiki.mozilla.org/Mobile/Platforms#Other_Platforms

  • No documents open error received after "afterOpen" event.

    I'm trying to run a script to check data in tables against a data source.  So I need to be able to scan the tables when the document is opened.  The scanning and updating script I made works great.  It's just the initialization of the script when a document is opened is not working.
    main();
    function main(){
       var myApplicationEventListener = app.eventListeners.add("afterOpen",checkWPSTables, false);
    function checkWPSTables(myEvent){
        var myDoc = app.activeDocument;  //This throws the error.
    The error it throws is "No documents are open."
    The script is placed properly in the Startup Scripts folder.
    So it seems there is no active document at this stage of the event propogation.  Is there a way to solve this?

    Use APID Toolkit’s docLoaded event instead of InDesign’s afterOpen.
    Kasyan

  • This morning, Firefox stopped opening .pdf documents that I am trying to retrieve from websites. It does not download them, and the page goes blank, with nothing more happening. What do I do to fix it?

    I went to the FAA website, and I needed to review a document. I clicked on the link, the page turned blank, but I never saw the document. I tried again, but I still could not get the document. Word documents still bring up the dialog box allowing me to open the document. I went to another website to find additional information on the project I am working on, and I am experiencing the same problem, when I click on a link to a pdf, it will not open, and the download dialog box does not open.
    I have tried looking at applications and plugins, but everything seems to be fine. What do I do to fix this?
    Thanks,
    Anne

    Using the Adobe Reader plugin with Firefox
    * https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox
    Opening PDF files within Firefox
    * https://support.mozilla.com/en-US/kb/Opening%20PDF%20files%20within%20Firefox
    Check and tell if its working.

  • Shortdump while accessing Appraisal document in portal-Null obj ref.not pos

    Hi all,
    We are implementing Performance Management in Ehp4 with EP 7.1, flexible template   We have been facing an issue where in Portal while we are trying to click on Appraisal document either in ESS or MSS, it dos not open anything instead we are getting
    short dump error in ST22.  We have performed the portal and ESS setup as per the SAP recommended  notes.
    1272076 - Appraisal Nav
    1408243 - OBN
    1416756 - OBN Confi
    1463821 - Portal confi
    1458466 - Launchpad config
    The short dump error analysis as follows.
    Short text
        Access via 'NULL' object reference not possible.
      An exception occurred that is explained in detail below.
      The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not
       caught in
      procedure "READ_ATTR_ALL_FOR_CASETYP" "(METHOD)", nor was it propagated by a
       RAISING clause.
      Since the caller of the procedure could not have anticipated that the
      exception would occur, the current program is terminated.
      The reason for the exception is:
      You attempted to use a 'NULL' object reference (points to 'nothing')
      access a component (variable: "LO_CASE_CUST").
      An object reference must point to an object (an instance of a class)
      before it can be used to access components.
      Either the reference was never set or it was set to 'NULL' using the
      CLEAR statement.
    Just wondering if any one of you came across this issue.  I have put external break point at  main appraisal component
    HAP_MAIN_DOCUMENT and class CL_HAP_WD_DOCUMENT_UI. But it didn't go through. I think because this abap dynpro not being called due to url issue and thus dump says null pointer exception.
    Appreciate your response and I Look forward your insights.
    Prav

    << Do not post the same question across a number of forums >>

  • XML Document Insert fails : NULL is an invalid

    Hi,
    I am trying to inseert a valid Oracle Canonical XML document
    into my table . But i get the following error :
    2001-07-01 19:50:16,167 <ERROR>
    NULL is an invalid column name.</ERROR>
    The table definition is as follows :
    create or replace table Internal_Message_Impl (
    processId &ID_TYPE primary key,
    transactionHeader THeader_t,
    payloadCollection clob,
    manifest clob,
    messageHeader MessageHeader_t
    In my input XML document I have columns corresponding to the processId (primary
    key) and transactionHeader. But I don't any xml tags for the remaining columns.
    In the OracleSaveXML java API I am setting which columns should be inserted or
    updated :
    OracleXMLSave save = new OracleXMLSave(_conn, DB_TABLE_NAME);
    save.setIgnoreCase(true);
    // default Oracle Date format is 'MM/dd/yyyy HH:mm:ss' . See JDBC
    documentation on
    // java.text.SimpleDateFormat to get the list of valid date formats.
    // save.setDateFormat(java.lang.String mask);
    String[] columnNames = new String[3];
    columnNames[0] = IM_PRIMARY_KEY;
    columnNames[1] = TRANSACTION_HEADER_COLUMN_NAME;
    String[] keyColumnNames = new String[2];
    keyColumnNames[0] = IM_PRIMARY_KEY;
    save.setUpdateColumnList(columnNames);
    save.setKeyColumnList(keyColumnNames); // ignored in the case of insert and
    delete
    if(isNew()) {
    save.insertXML(oraXmlStr);
    } else {
    save.updateXML(oraXmlStr);
    Can somebody tell me whether this approach is o.k. ?
    Here is the xml document I am trying to insert :
    Oracle Canonical XML string for TransactionHeader :
    <?xml version="1.0" encoding="UTF-8"?>
    <ROWSET>
    <ROW>
    <processId>1</processId>
    <TransactionHeader>
    <process>
    <listId>-99</listId>
    <revisionId>-9</revisionId>
    <packetId>-9</packetId>
    </process>
    <providerId>10001</providerId>
    <serviceId>12</serviceId>
    <adapterId>-9</adapterId>
    <customerId>7</customerId>
    <transactionElement>
    <name/>
    <value>1</value>
    </transactionElement>
    <transactionKind>
    <tKind>
    <value>-9</value>
    <name/>
    </tKind>
    <subKind>
    <value>-9</value>
    <name/>
    </subKind>
    </transactionKind>
    <state>
    <code>
    <value>-9</value>
    <name/>
    </code>
    <subCode>
    <value>-9</value>
    <name/>
    </subCode>
    <value/>
    </state>
    <trackingNumber>7UDZED</trackingNumber>
    <controllerNumber/>
    <completionTime>2001-07-08T19:50:05</completionTime>
    <creationTime>2001-07-04T19:50:05</creationTime>
    </TransactionHeader>
    </ROW>
    </ROWSET>
    Appreciate any responses for this problem.
    Thanks
    Mahesh
    null

    Hallo,
    I have same problem but all parameters seems ok...
    <Table> is an invalid table element or appears in the wrong order.
    <variant>
      <Table xmlns:aid5="http://ns.adobe.com/AdobeInDesign/5.0" xmlns:aid="http://ns.adobe.com/AdobeInDesign/4.0/" aid5:tablestyle="Art.-Table" aid:table="table" aid:trows="64" aid:tcols="7">
        <cell aid5:cellstyle="Art.-Cell" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="58">
    I am using Indesign CC 2014

  • Something changed firefox into a word document in cryllic how do I fix it?

    some how firefox is now a word document. Desktop icon is also a word icon. When you click on it a word document pops up asking for file conversion with Windows cryillic the defrault. I am sure a virus did this. I have swept my machine, but cannot install firefox over the old programs.

    Unfortunately our ExportPDF service doesn't support Hebrew text.  You can vote for this feature in here: http://forums.adobe.com/ideas/1554  We use the Ideas section to help prioritize features.
    -David

  • Hello,there are approximately three months I uninstalled firefox and lost some documents.Is there any way to recover them,now that I installed again?Thank you.

    most lost are documents...

    If you mean files (personal data like bookmarks) in the Firefox profile folder and you had chosen to remove personal data when uninstalling Firefox then that data is lost.

Maybe you are looking for