clobba / open-webkit-sharp

Automatically exported from code.google.com/p/open-webkit-sharp
GNU Lesser General Public License v3.0
0 stars 0 forks source link

URL of link on right click #100

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Is it possible to get the url of the link when user right clicks on the given 
link???
If yes how to do it??? 
I want to write code for linkcontextmenu->openlinkinnewtab..
Have tried alot but failed in each attempt..
I require it urgently.. plzz help as soon as possible...

Original issue reported on code.google.com by malhotra...@gmail.com on 29 Apr 2012 at 5:47

GoogleCodeExporter commented 9 years ago
You can either use the StatusText, which is always the link apart from the case 
when the page is loading, or use <wb>.GetCurrentElement().GetAttribute("href")

Original comment by tsumalis96@gmail.com on 29 Apr 2012 at 9:42

GoogleCodeExporter commented 9 years ago
i have tried both methods... webkitbrowser1.StatusText always gives null value 
and webkitbrowser1.GetCurrentElement().GetAttribute("href") gives url for few 
of the links n rest all are null...

Original comment by malhotra...@gmail.com on 29 Apr 2012 at 10:59

GoogleCodeExporter commented 9 years ago
plzz let me know the solution as soon as possible for u.. its damn imp n very 
urgent... :(

Original comment by malhotra...@gmail.com on 29 Apr 2012 at 1:50

GoogleCodeExporter commented 9 years ago
i found its solution... 

Btw now i have a different doubt...
Wat's the use of fields password and username in latest OWS???
I tried using it with different combination of usrnm n pwd bt it doesnot take 
any effect..

And second one, i have used customcontextmenustrips.. however when i click on 
contextmenuitem the menustrip is still displayed... i need to click it twice 
before the menustrip goes off... i tried writing Menu = null; at the end of 
code but it isnt useful... Any way to get rid of it??

Sorry to ask so many doubts but actually my project completion deadline is too 
near and i need to solve all these bugs.. Many more bugs are in my way.. :( 
Have tried alot but.....

Thanx for ur efforts.. :)

Original comment by malhotra...@gmail.com on 30 Apr 2012 at 6:00

GoogleCodeExporter commented 9 years ago
Username and Password are used for authentication purposes. They cannot be used 
e.g. to submit forms.

As for custom context menus you can check how such a feature can be used by 
looking inside the CustomMenuImplementation Project

Original comment by tsumalis96@gmail.com on 30 Apr 2012 at 12:54

GoogleCodeExporter commented 9 years ago
Done wid it..
You may close this issue.. thanx :)

Original comment by malhotra...@gmail.com on 3 May 2012 at 5:20

GoogleCodeExporter commented 9 years ago
OK Issue closed

Original comment by tsumalis96@gmail.com on 4 May 2012 at 9:26