- Home
- Coding concepts
- Special screens
- Available features
- More
- Translation
- Testing
- Deployment
- Differences in Locify 0.8.5
- Sample services
- Example videos
Redirection
You can also use simple redirection to different page of your service.
Redirection can be also used for automatic sending of position! Just redirect to the same page with parameters containting variables in URL (like page?lat=$lat&lon=$lon). Set some reasonable timeout and show user some information about saving progress using form. Form can contain a button which will stop automatic sending.
Format
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:locify="http://client.locify.com/locify_ns/1.0" xml:lang="en" lang="en"> <head> <meta http-equiv="refresh" content="Timeout;url=Url-to-be-called" /> <title></title> </head> <body></body> </html>
Parameters
- Timeout - Timeout before redirected page is called in seconds
- Url-to-be-called - Client will be redirected to this url
Example
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:locify="http://client.locify.com/locify_ns/1.0" xml:lang="en" lang="en"> <head> <meta http-equiv="refresh" content="0;url=http://www.mycoolservice.com/somescreen" /> <title></title> </head> <body></body> </html>
