Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Disable all link into browser web page(Disable all link into browser web page)
Disable all link into browser web page [message #655770] Tue, 22 February 2011 10:27 Go to next message
Eclipse UserFriend
Hi all,
I have a problem with browser.
I used:
1) windows xp with explorer.
2) "swt.jar" into "swt-3.6.1-win32-win32-x86.zip" library.
3) For launch browser I used "Snippet148.class".
Into "Snippet148.java" I disable Javascript with "browser.setJavascriptEnabled (false);" instruction and this is ok. My problem is to disable all link into web page (If I click by mouse on some web page link, I have no effect). I proved to delete some instructions into IE.java but I had the only effect to disable java links. The link had no effect in java but it had still effect into explorer (browser web page).
Does somebody know what is the solution.
An aid will be appreciated
Attilio
Re: Disable all link into browser web page [message #655780 is a reply to message #655770] Tue, 22 February 2011 10:38 Go to previous messageGo to next message
Eclipse UserFriend
Hi Attilo,

Just to confirm, you're saying that you want all links shown in a web page
to be disabled, so that clicking on a link does nothing, right? If so, you
can do this by adding a LocationListener like the following, after your
initial page has been loaded:

browser.addLocationListener(new LocationAdapter() {
public void changing(LocationEvent event) {
event.doit = false;
}
});

If I did not understand your question correctly then please follow up here.

Grant


"attilio" <attio1@alice.it> wrote in message
news:ik0k8t$ah8$1@news.eclipse.org...
> Hi all,
> I have a problem with browser.
> I used:
> 1) windows xp with explorer.
> 2) "swt.jar" into "swt-3.6.1-win32-win32-x86.zip" library.
> 3) For launch browser I used "Snippet148.class".
> Into "Snippet148.java" I disable Javascript with
> "browser.setJavascriptEnabled (false);" instruction and this is ok. My
> problem is to disable all link into web page (If I click by mouse on some
> web page link, I have no effect). I proved to delete some instructions
> into IE.java but I had the only effect to disable java links. The link had
> no effect in java but it had still effect into explorer (browser web
> page).
> Does somebody know what is the solution.
> An aid will be appreciated
> Attilio
Re: Disable all link into browser web page [message #795529 is a reply to message #655780] Fri, 10 February 2012 10:27 Go to previous message
Eclipse UserFriend
Hi Grant,

thanks for your advice. It helped me a lot.

akos
Previous Topic:[eclipse 3.6 WPE] How to add palette items into Web Page Editor automatically
Next Topic:TreeViewer using two cell editors (click/doubleclick)
Goto Forum:
  


Current Time: Tue Jul 22 22:42:33 EDT 2025

Powered by FUDForum. Page generated in 0.05074 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top