Help:A website problem


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Help:A website problem

Hybrid View

  1. #1
    Join Date
    Jan 2006
    Posts
    2

    Help:A website problem

    My problem is to visit the website

    http://www.billiger-telefonieren.de/...-00%2000:00:00

    and then there is a dropdown menu called Auslandpreise and if u click the button Hinzufügen that selected country will be added to the same webpage and after that i can extract the contents from that page.
    Now the question is how to select all the elements from that menu and add it to the page from my Java program.

  2. #2
    Join Date
    Jan 2006
    Posts
    53
    Use URLConnection. Connect to the server and download that web page. Parse out the <FORM> you are interested, and parse out <option> values for that <select>. Then recreate the form data and post it back to the server in a URLConnection, once for each option you parsed out earlier.

    You'll have to look up the <post> data format (it's pretty straightforward).

    If you want, you can just cut-and-paste their list of <options>, if you don't want to do the first URLConnection and parsing of the file programatically.

Similar Threads

  1. a very weird problem (AGAIN!!!)
    By Michael in forum ASP.NET
    Replies: 14
    Last Post: 02-24-2006, 09:54 AM
  2. Josephus Problem, problem.
    By aesoprock00 in forum Java
    Replies: 2
    Last Post: 01-28-2006, 07:18 PM
  3. problem with reading from a website
    By anubis in forum Java
    Replies: 4
    Last Post: 12-28-2005, 03:09 PM
  4. Replies: 3
    Last Post: 11-16-2005, 07:15 PM
  5. Replies: 0
    Last Post: 06-23-2000, 03:17 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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center