Geo::Postcodes::AjaxGeo::Postcodes::Ajax is a tutorial about how to set up an Ajax service for the Geo::Postcodes::* modules. | |
Download |
Geo::Postcodes::Ajax Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Arne Sommer
- Publisher web site:
- http://search.cpan.org/~arne/Geo-Postcodes-0.32/lib/Geo/Postcodes/Ajax.pod
Geo::Postcodes::Ajax Tags
Geo::Postcodes::Ajax Description
Geo::Postcodes::Ajax is a tutorial about how to set up an Ajax service for the Geo::Postcodes::* modules. Geo::Postcodes::Ajax is a tutorial about how to set up an Ajax service for the Geo::Postcodes::* modules.INTRODUCTIONThis document uses the fictious country Utopia (with country code 'U2'), and the rest of this document will refer to the non-existent module Geo::Postcodes::U2.The files described in this tutorial are available in the eg/ directory of the distribution.THE HTML FILEOnly the relevant parts of the html code in the file index.html is shown here: 01 < script type="text/javascript" src="postcodecheck.js" >< /script >Put this line somehere in the beginning of the file, so that the ajax code is available for the code. 02 < form name='one' onSubmit="return false;" >The form does not need a name for the ajax code to work, but it does not hurt. The 'onSubmit'-code prevents the form from beeing submitted, as we would like to keep the html page - and let the ajax-code do changes in-line. 03 Address: < input name="address" value="Something or other" >< br >This is not used by the example, but is there to make it more real. 04 Postcode: Utoipian postcodes are no longer than four characters, so we prevent the user from typing in longer strings. 08 Location: < span id="location_u2" style="color:red;" >< /span >The style is just to make the location stand out. 09 < /form > Requirements: · Perl
Geo::Postcodes::Ajax Related Software