Results for tag Prototype

  • Passing complex data from Smarty to JavaScript
    Joor Loohuis, 2009-11-13
    Modern web applications frequently need to process complex data with JavaScript. Typically, these data are requested separately through AJAX calls, but if the data do not change frequently, it is probably easier to output JSON in the (X)HTML, and let JavaScript take it from there. The Smarty template engine makes this more or less trivial.
  • A Google Map with company logo and travel directions
    Joor Loohuis, 2009-08-24
    A Google Map is a nice attribute for a company website. In the blink of an eye visitors can see where you are located. The posibility for a prospective customer to get travel directions is a very useful addition. Using the company logo to indicate the exact location adds the finishing touch. All this is actually quite simple to set up, as this article shows.
  • Using OpenStreetMaps with the Google Maps API
    Joor Loohuis, 2009-08-06
    It is relatively easy to add a new map type to Google Maps, provided you have access to a tile server. As an example, we use the OpenStreetMaps data set to display a map that doesn't have all the usage restrictions that the regular map types have.
  • Prototype: selecting elements by id or name in Internet Explorer
    Joor Loohuis, 2009-04-21
    Selecting HTML elements by id using Prototype turns out to have a little quirk in Internet Explorer 7 and earlier, where the selected element may not have the specified value in the id attribute, but the name attribute in stead.