auto detect location in yahoo weather widget
hello I am making a weather forecast web app and I am using the yahoo
weather widget, how can I set the location ID to auto detect the location
of the user?, example if the user is in london, the weather forecast will
be shown is in the location of London.
This is the code in the plugin:
$(document).ready(function () {
$('#test').weatherfeed(['UKXX0085','EGXX0011','UKXX0061','CAXX0518','CHXX0049']);
});
the UKXX0085','EGXX0011','UKXX0061','CAXX0518','CHXX0049' is the location
ID's for this locations, London, Luxor, Glasgow, Vancouver, and Hongkong.
I know that to change location forecast I must replace the location ID's
with the correct corresponding locations ID. what I want to achieve is to
auto-detect the location ID of the user. is that possible?
No comments:
Post a Comment