Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting values from URL using jQuery

 
Prasanna Raghavendar
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

"http://localhost:8080/ProjectV2/MapPage.jsp?latitude=13&longitude=80"
How am I supposed to get the latitude and longitude values from this URL using Javascript or jQuery?

Thanks
Prasanna
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34095
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The location property gives you the current URL. You can then use regular expressions to parse if for what you are looking for.
 
Prasanna Raghavendar
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jeanne.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic