Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HttpURLConnection and Javascript

 
Manoj Raghuwanshi
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if a web page has javascipt code then would it be executed before submitting the form using HttpURlConnection?

Thanks

Regards,
Manoj
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. URLConnection is an HTTP library, not a web browser - it knows nothing about JavaScript.
 
Rob Spoor
Sheriff
Pie
Posts: 20527
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf is right. It is the HTML rendering engine (inside your browser usually) that executes the JavaScript.
 
Manoj Raghuwanshi
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks guys

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic