Results 1 to 10 of 10

Thread: Accordion Content JS error

  1. #1
    Join Date
    Apr 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Accordion Content JS error

    1) Script Title:
    Accordion Content Script v 1.3

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...daccordion.htm

    3) Describe problem:
    Using FF 2 on Linux -toggles don't work and items load expanded.
    Loads with following error -

    Error: uncaught exception: [Exception... "Object cannot be created in this context" code: "9" nsresult: "0x80530009 (NS_ERROR_DOM_NOT_SUPPORTED_ERR)" location: "file:///home/johnt/Pending/ddaccordion.js Line: 89"

    I also use Konquer browser which does work and produces no errors.

    I've disabled my add-ons and run out of thoughts.

    Any ideas?
    Thanks

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Can you please show use line 89? That'd help.
    Thanks,
    Nile
    Jeremy | jfein.net

  3. #3
    Join Date
    Apr 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Nile View Post
    Can you please show use line 89? That'd help.
    Thanks,
    Nile
    Sure Nile-

    88 init:function(config){
    89 document.write('<style type="text/css">\n')


    Thanks

  4. #4
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    I'm thinking it has to do with your \n. Delete that.
    Jeremy | jfein.net

  5. #5
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    "\n" shouldn't affect anything actually. Please post a link to the page on your site that contains the problematic script so we can check it out, or does the problem occur on the DD demo as well?

  6. #6
    Join Date
    Apr 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    DDAMIN and NILE,

    Thanks for your responses ( the "\n" didn't make any difference)

    The demo is what I am working with.

    The files downloaded work as expected in Konquer and do not work with FF 2, which has me completely baffled - same files.

    When online using FF the demo works. I'm wondering if this could be a permissions/config setting issue.

    Any other ideas?
    Last edited by query; 04-21-2008 at 09:33 PM.

  7. #7
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    I'm wondering if this is a Linux specific issue, which I assume is the OS you're using? When viewing the DD online demo, does the same issue occur?

  8. #8
    Join Date
    Apr 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    DDADMIN -

    This is what is so strange. Linux FF and Konqueror both work for the on-line demo - but the downloaded version works for Konqueror only.

    I thought I found the answer here -

    http://www.calavera.info/v1/blog/200...l-problem.html

    having to do with "document.write" not working in xhtml and tried loading the two JS scripts from the demo site. That didn't work either.

    Still puzzled....and looking.

  9. #9
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Please post a link to the page on your site that contains the problematic script so we can check it out.

  10. #10
    Join Date
    Apr 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    DDADMIN,

    Discovered the problem. Do not use XHTML as the extension.

    Apparently FF in linux has a problem in this case related to "document.write" and XHTML.

    Even if the DOCTYPE is XHTML, the file must have HTML as the extension in order to work.

    (uncovered by fortunate blind experimentation)

    Thanks for your help.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •