• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

how to break up url in java?

 
Ranch Hand
Posts: 407
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i just have to set the target so that when i click on the link it should open in another webview
 
Niti Kapoor
Ranch Hand
Posts: 407
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if (trgurl.matches("(.*)target(.*)")){
                        webEngine1.getEngine().setCreatePopupHandler(new Callback<PopupFeatures, WebEngine>() {

       @Override
       public WebEngine call(PopupFeatures p) {
           Stage stage = new Stage(StageStyle.UTILITY);
           WebView wv2 = new WebView();
           stage.setScene(new Scene(wv2));
           stage.show();
           return webEngine.getEngine();
can its possible
 
Niti Kapoor
Ranch Hand
Posts: 407
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
$(document).ready(function(){

   $('a').on('mousedown', stopNavigate);

   $('a').on('mouseleave', function () {
          $(window).on('beforeunload', function(){
                 return 'Are you sure you want to leave?';
          });
   });
});

function stopNavigate(){    
   $(window).off('beforeunload');
} this  how can i apply
 
Niti Kapoor
Ranch Hand
Posts: 407
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is the answer i resolved it with Platform.runlater() and getloadworker.cancel()
 
Surfs up space ponies, I'm making gravy without this lumpy, tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!