Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 15:27 Go to next message
attilio  is currently offline attilio Friend
Messages: 1
Registered: February 2011
Junior Member
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 15:38 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
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 15:27 Go to previous message
Akos Kitta is currently offline Akos KittaFriend
Messages: 1
Registered: February 2012
Junior Member
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: Fri Apr 19 03:00:32 GMT 2024

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

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

Back to the top