Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. <script type="text/javascript">
  2. $(document).ready(function ()
  3. {
  4. var nFirst = $('#<%= TextBox3.ClientID %>').val();
  5. var nSecond = $('#<%= TextBox4.ClientID %>').val();
  6. var bFirst = $('#<%= TextBox1.ClientID %>').val();
  7. var bSecond = $('#<%= TextBox2.ClientID %>').val();
  8. $("#map").googleMap();
  9. $("#map").addWay(
  10. {
  11. start: [parseInt(nFirst),parseInt(nSecond)], // Postal address for the start marker (obligatory)
  12. end: [parseInt(bFirst),parseInt(bSecond)], // Postal Address or GPS coordinates for the end marker (obligatory)
  13. route : 'way', // Block's ID for the route display (optional)
  14. langage : 'english' // language of the route detail (optional)
  15. });
  16. return false;
  17. });
  18. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement