Skip to main content
Participant
December 30, 2006
Question

Set focus to document window / Bookmark extension

  • December 30, 2006
  • 2 replies
  • 509 views
Does anyone know of a way to set focus to a document window?

I've written an extension for Dreamweaver coders. It saves the current line/document so you can return to it later ("bookmark it"). It's a floater and I will be making it available shortly (unless someone's already written a decent one -- please let me know if that's the case). I wrote it to keep myself from getting lost when coding large files.

The issue is that when someone clicks the Go button on my floater, it returns the document to the correct position, but the focus is still on the floater. Does anyone know how I can set focus to either the code view or document windows?
This topic has been closed for replies.

2 replies

April 17, 2007

Hey did you ever release this extension? I have been hoping for something like this in dw because I really used it in homesite+ with the ctrl+k shortcut. Please let me know.
Participant
June 28, 2007
Well, this is my request for a similar extension ... I used Textpad and live and die by the bookmark-this-line when editing code.
Inspiring
December 30, 2006
> Does anyone know how I can set focus to either the code view or document
> windows?

dreamweaver.setActiveWindow() ?
or dom.setView() ?

Have a look in the JS API , Workspace > Window functions.

Good luck.