jQuery("#map_canvas", previewBlock).get(0)
to get the DOM node. Where previewBlock is the name of the first
argument in the preview() function in your command.
An alternative way would be to insert the Javascript into the preview
HTML, so it runs within that context. That may be a bit messy however,
as currently there's no easy way to separate the preview HTML into its
own file.
Hope that helps.
- Blair
That will get the document for the active tab - but what is wanted is
the document for the preview.
- Blair
Morgan Allen wrote:
> Try Application.activeWindow.activeTab.document instead.
>
>
> On Tue, Sep 2, 2008 at 1:31 AM, ifido...@gmail.com
> <mailto:ifido...@gmail.com> <ifido...@gmail.com