Results 1 to 3 of 3
  1. #1
    johnyabu is offline Member
    Join Date
    Feb 2011
    Posts
    2
    Rep Power
    0

    Default fetch HTML page content from the web ( by executing javascript ) using stand alone

    HI
    i need some help with the following problem:

    i need to fetch HTML page content from the web using stand alone Java class
    the problem is that the page i want to fetch don't have DIRECT URL and can be reach only from other page by executing javascript code

    the base ur is : Passenger Information - Online Flights
    and the java script that should be executed exist on "All flights" link

    for summery i need to access the fist page from stand alone java class execute the js function and get the result HTML as String

    any one can help?

    hope it's clear , if not please feel free to ask for more info

    Thanks

  2. #2
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,642
    Rep Power
    7

    Default

    Just parse the url out of the javascript and load the page programatically.

    Edit: Crossposted at http://www.javaprogrammingforums.com...and-alone.html
    Last edited by doWhile; 02-02-2011 at 03:46 PM.

  3. #3
    johnyabu is offline Member
    Join Date
    Feb 2011
    Posts
    2
    Rep Power
    0

    Default

    Hi

    Thanks for the quick replay .

    no , the JS is not ajax , it's refreshing the page

Similar Threads

  1. Replies: 1
    Last Post: 01-02-2011, 07:23 PM
  2. where to post questions about javascript in html?
    By iansane in forum Forum Lobby
    Replies: 2
    Last Post: 05-26-2010, 04:12 PM
  3. struts html tags vs javascript
    By murali in forum Web Frameworks
    Replies: 0
    Last Post: 12-01-2008, 02:18 PM
  4. Is it possible to use struts-html tags in javascript...?
    By prabhurangan in forum Web Frameworks
    Replies: 0
    Last Post: 05-27-2008, 02:11 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
  •