getDocumentDOM() not current

Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.

  1. #1

    Default getDocumentDOM() not current

    Hi all,

    When I use the dw.getDocumentDOM() function, it doesn't always return the most
    current DOM object. I will output it's return one second, make a few changes
    then re-output it, and it still returns the pre-changes DOM.

    It seems to "refresh" if I change one of the top menus, reload extensions, or
    do anything other than editing the code.

    Is there a function I can call to cause it to refresh automatically? I'm
    using Dreamweaver MX (not 2004).

    Thanks,
    Andrew

    acram Guest

  2. Similar Questions and Discussions

    1. Problems by getDocumentDOM
      Hello, I've been trying to getDocumentDOM() of a specific XML-document that I open through an extension, but only have been able to get the DOM...
    2. getDocumentDOM ? referencing file outside of prog
      Have you tried doing the following? var authorsXml = dw.getDocumentDOM('\\\\MyComputerName\\SharedFolder\\myfile.xml'); In an extension i'm...
    3. getting the current date
      hi guys I?ve created 3 selection boxes on a form: 1 for the date, with values 1 - 31. 1 for the month, with values 1- 12 1 for the year with...
    4. Either BOF or EOF is True, or the current record hasbeen deleted. Requested operation requires a current record
      Can anyone pls help? I am getting the following error when search my database. "ADODB.Field (0x800A0BCD Either BOF or EOF is True, or the...
    5. How to change the current thread current culture at run time.
      I have created a new culture : Dim objCulture As New CultureInfo("he") //hebrew When I tried to assign it to the current thread. ...
  3. #2

    Default Re: getDocumentDOM() not current

    Andrew,

    Just launch your extension interface twice and the new changes will take
    affect.

    --
    Regards,
    ...Trent Pastrana
    [url]www.fourlevel.com[/url]

    Dreamweaver Designer Tools
    iFrameSuite | MiniMenus | Scroller Packages | More...
    -----------------------------




    "acram" <webforumsuser@macromedia.com> wrote in message
    news:ddaaa6$hkp$1@forums.macromedia.com...
    > Hi all,
    >
    > When I use the dw.getDocumentDOM() function, it doesn't always return the
    > most
    > current DOM object. I will output it's return one second, make a few
    > changes
    > then re-output it, and it still returns the pre-changes DOM.
    >
    > It seems to "refresh" if I change one of the top menus, reload extensions,
    > or
    > do anything other than editing the code.
    >
    > Is there a function I can call to cause it to refresh automatically? I'm
    > using Dreamweaver MX (not 2004).
    >
    > Thanks,
    > Andrew
    >

    T.Pastrana - 4Level Guest

  4. #3

    Default Re: getDocumentDOM() not current

    Thanks for the reply, however, as many times as I would reload the extension it
    would still return the original code until I did something seemingly unrelated
    like change a menu.

    I have found a temporary fix it seems, though. I created a command that
    basically opens a window and calls window.close() onLoad. It happens so fast
    that you don't even see the window and seems to refresh the DOM just like I
    need. I am still open for better methods, though!

    acram Guest

  5. #4

    Default Re: getDocumentDOM() not current

    "acram" <webforumsuser@macromedia.com> wrote in message
    news:ddd0pi$nj4$1@forums.macromedia.com...
    > Thanks for the reply, however, as many times as I would reload the
    extension it
    > would still return the original code until I did something seemingly
    unrelated
    > like change a menu.
    >
    > I have found a temporary fix it seems, though. I created a command that
    > basically opens a window and calls window.close() onLoad. It happens so
    fast
    > that you don't even see the window and seems to refresh the DOM just like
    I
    > need. I am still open for better methods, though!
    It's just a shoot in the dark, but I would guess you are assigning the DOM
    to a global variable inside your extension, do you?
    Keep in mind that global variables inside extensions persist for the whole
    DW session, so they stick even if you close and reopen your extension during
    the same DW's session.

    Hope it will help

    ----------------------------
    Massimo Foti
    Tools for ColdFusion and Dreamweaver developers:
    [url]http://www.massimocorner.com[/url]
    ----------------------------



    Massimo Foti Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139