Embedded browser 0.1.4 released

Plugin integrates native Mozilla or MS IE browser in tool window using JDIC library. It allows opening local and remote html documents, do Java Script evaluation and view DOM for loaded page. Tested on Windows. Likely to work on Linux and Solaris (not tested). May work on Mac (not tested and NOT recommended now).

0

Hello,

Very good idea but current version is in pre-alpha stage.

Try to close tool window then open it back, it shows nothing.

It uses IE but FireFox is default in my system.

It very IDEA unfriendly and almost unusable in current state.

We was experimenting with JDIC too but refresh problems stops from creating such plugin. If you will fix this issue then it may be usable then.

Thanks,
Dmitry

0

AdvancedTools wrote:

Plugin integrates native Mozilla or MS IE browser in tool window using JDIC library. It allows opening local and remote html documents, do Java Script evaluation and view DOM for loaded page. Tested on Windows. Likely to work on Linux and Solaris (not tested). May work on Mac (not tested and NOT recommended now).


This looks very promising. However, it seems to be still quite
fragile: When I first played with it a bit, everything seemed
fine, but then I tried to make the browser tool window floating
and got a "closing" message from the OS (XP). After that IDEA
refused to correctly redraw the editor and the other tool
windows, so I had to restart the IDE. Unfortunately after that
I could not get the plugin to display another HTML page without
the same crash, so I had to uninstall the plugin :(

Other than that: I see a lot of potential in this. One kick-ass
extension that came to my mind would be a "cooperation" with
the XSLT plugin which would give you the ability to "preview"
XSLT-transformed XML files in the embedded browser.

Regards,
Jens

0

IE and Mozilla are embeddable, FireFox not (IE is used on Windows when Mozilla is not default browser).
As to refresh problem, it is likely due embedment of AWT heavy component into Swing lightweight one. Will try to fix with next plugin build.
P.S. Main advantage of the plugin now is not browsing but DOM tree.

0

Hi,
Where is it? Or it just planned?
Looks like next step will be JS debugger ;)

Thanks,
Dmitry

0

Indead, browser embeddment is not working with floating windows now, you need just dock the toolwindow and restart.

As to your suggestion, copy XSLT plugin output to local file and view it in browser.

0

Just look for available actions, there are javascript evaluation and view DOM for currently loaded page.

0

And, yes, JavaScript debugger will be in some next version.

0

Very good hidden ;) But I found it in Tools menu. Better if it possible hook to context menu on toolwindow invocation and show Idea actions menu.

Thanks,
Dmitry

0

By the way name AdvancedTools looks like choosen for companion program company :)

0

Hmm I still cn't get it working. I have a remote file and want to evaluate the JavaScript code in IDEA. I try typing in the URL and the page appears but both the DOM and JavaScript options are greyed out.

How does this plugin actually work? Does it expect that you have loaded the browser from the page in the IDE? If so then why allow us to enter a URL? I'm confused.

Much of our code generated from CGI. I work with the HTML templates in IDEA creating JavaScript and XML and then publish it up to our test webserver for previewing. I was hoping the remote URL would allow me the first steps of debugging our hosted application. Is this not the case?

Many thanks in advance for your help and advice.

Rob :)

0

Actually, javascript evaluation / DOM view is possible when document is completely loaded (into embedded browser) and the browser sends event for that (action is greyed out till this event to happen).
Probably some exception(s) has happened along the way, please check out IDEA logs and post stacktrace(s) if appropriate.

0

There is also known problem that requesting document to be reloaded will not issue document loaded event (the evaluate js/DOM view is dependent for) if the document was not changed. The issue will be fixed in next plugin build.

0

Thanks for the reply, I have done as you asked and checked the IDEA logs but I am getting no feedback there at all from the plugin. I don't see any stack traces or the like, it all seems to be running fine just the options never become active.

Could it be the fact that our web server requires a signon? The plugins browser component asks me to sign on as I would expect and after signing on it displays everything ok, however I wonder if this is preventing the plugin from activating the JavaScript and DOM options by returning a different HTTP code (maybe Auth Success rather than 200)?

0

You can try last plugin version.

0

Ok that problem now seems to have been resolved. Good job!!

Only thing is for some reason now the browser opens in a separate window and I can't find a way to dock it. Is that the intended functionality? Just seems a little un-IDEA like if that is the case.

0

Browser component is heavyweight one, it has stability problems when embedded into lightweight IDEA toolwindow.

0

请先登录再写评论。