wood burning stoves 2.0*
The moose likes Sockets and Internet Protocols and the fly likes HttpURLConnection and Javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "HttpURLConnection and Javascript" Watch "HttpURLConnection and Javascript" New topic
Author

HttpURLConnection and Javascript

Manoj Raghuwanshi
Ranch Hand

Joined: Jun 20, 2004
Posts: 75
if a web page has javascipt code then would it be executed before submitting the form using HttpURlConnection?

Thanks

Regards,
Manoj
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42030
    
  64
No. URLConnection is an HTTP library, not a web browser - it knows nothing about JavaScript.


Ping & DNS - my free Android networking tools app
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19697
    
  20

Ulf is right. It is the HTML rendering engine (inside your browser usually) that executes the JavaScript.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Manoj Raghuwanshi
Ranch Hand

Joined: Jun 20, 2004
Posts: 75
Thanks guys

 
GeeCON Prague 2014
 
subject: HttpURLConnection and Javascript