Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.
-
acram #1
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
-
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... -
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... -
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... -
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... -
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. ... -
T.Pastrana - 4Level #2
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
-
acram #3
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
-
Massimo Foti #4
Re: getDocumentDOM() not current
"acram" <webforumsuser@macromedia.com> wrote in message
news:ddd0pi$nj4$1@forums.macromedia.com...extension it> Thanks for the reply, however, as many times as I would reload theunrelated> would still return the original code until I did something seeminglyfast> 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 soI> that you don't even see the window and seems to refresh the DOM just likeIt's just a shoot in the dark, but I would guess you are assigning the DOM> need. I am still open for better methods, though!
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



Reply With Quote

