Results 1 to 3 of 3
  1. #1
    ayz
    ayz is offline Member
    Join Date
    Aug 2013
    Posts
    2
    Rep Power
    0

    Default How to open a javascript link in a java application

    Hello all, I want to retrieve schedules (bus, train, ...) from a website, but to retrieve this info I need browse through some pages.
    The browse is made by javascript links.

    I would like make an application to browse through this javascript links. I don't want to use external APIs, I want to do this job by my own, because this is to learn.

    Any suggestions?

    These links are like this:
    <a onclick="test_search(2,1)"> 2 </a>

    Thanks !!

  2. #2
    sehudson's Avatar
    sehudson is offline Senior Member
    Join Date
    Mar 2010
    Posts
    356
    Rep Power
    5

    Default Re: How to open a javascript link in a java application

    You can use something like HTMLUnit as a "headless" browser to programatically navigate to the page and click on the link.

  3. #3
    ayz
    ayz is offline Member
    Join Date
    Aug 2013
    Posts
    2
    Rep Power
    0

    Default Re: How to open a javascript link in a java application

    I will try it, thank you !!

Similar Threads

  1. Open a link in an External Application using Java
    By trkece in forum New To Java
    Replies: 7
    Last Post: 11-24-2012, 07:05 PM
  2. How To Open A Javascript Automactly?
    By alanbr00 in forum New To Java
    Replies: 2
    Last Post: 11-17-2011, 06:44 PM
  3. how to open a link using java
    By mahdy_m_s in forum AWT / Swing
    Replies: 1
    Last Post: 11-17-2010, 04:27 PM
  4. Execute InDesign JavaScript from Java Application
    By Vijayasekar in forum New To Java
    Replies: 0
    Last Post: 12-29-2009, 05:13 PM
  5. Java application to inlude a link
    By dbashby in forum New To Java
    Replies: 18
    Last Post: 04-28-2009, 02:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •