+ Reply
Page 17 of 818 FirstFirst ... 71516171819 27 67 117 517 ... LastLast
Results 321 to 340 of 16349

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: UniAW6.0 for iph4 & iph5

is a discussion within the

iPhone 4|4S New Skins / Themes Launches

forums, a part of the

New Skins / Themes Launches

section;
Originally Posted by KarlDall Weird Problem here! I've set Fade in animation for 4 day forecast and Fade in animation for forecast background to 0% opacity Fade in animation for
...
  1. #321
    Modder & Coder Ian Nicoll's Avatar
    Join Date
    Oct 2008
    Location
    From Scotland, live in Philippines, German company, work worldwide, currently in Sri Lanka.
    Posts
    4,735
    Thanks
    7,180
    Thanked 18,134 Times in 3,715 Posts

    Quote Originally Posted by KarlDall View Post
    Weird Problem here!
    I've set Fade in animation for 4 day forecast and Fade in animation for forecast background to 0% opacity
    Fade in animation for full screen weather backgrounds (weatherIcon) to 100% opacity.

    After respring everythings fine:
    Attachment 629840

    As soon as I press the Lockslider and turn the screen off again, that happens:
    Attachment 629841

    Leave the #weatherIcon (div) at 0.0 opacity.

    in the webkit animation section at the top is all you need to touch:

    forecast_fadein 100% opacity = 0
    forecastbg_fadein 100% opacity = 0
    fullscreen_weatherIcon_fadein 100% opacity = 1.0
    Overlay_fadein 100% opacity = 0

    "If it's not broken, I'll fix it till it is"

  2. The Following 4 Users Say Thank You to Ian Nicoll For This Useful Post:

    Hip5 (04-03-2013), KarlDall (04-03-2013), King_O_Hill (04-03-2013), mrsmickey (04-21-2013)

  3. #322
    iPhone? More like MyPhone KarlDall's Avatar
    Join Date
    Dec 2010
    Posts
    111
    Thanks
    117
    Thanked 109 Times in 41 Posts

    Quote Originally Posted by Ian Nicoll View Post
    Leave the #weatherIcon (div) at 0.0 opacity.

    in the webkit animation section at the top is all you need to touch:

    forecast_fadein 100% opacity = 0
    forecastbg_fadein 100% opacity = 0
    fullscreen_weatherIcon_fadein 100% opacity = 1.0
    Overlay_fadein 100% opacity = 0
    Thanks, i've already done this before but no effect. Same Problem.



    UniAW6.0 for iph4 & iph5-snap15.png
    Last edited by KarlDall; 04-03-2013 at 05:26 AM.

  4. The Following User Says Thank You to KarlDall For This Useful Post:

    Hip5 (04-03-2013)

  5. #323
    iPhone? More like MyPhone
    Join Date
    Jul 2011
    Posts
    187
    Thanks
    108
    Thanked 63 Times in 54 Posts

    Sorry
    Where would I get the coordinates from
    😳??

  6. The Following User Says Thank You to shamjosh For This Useful Post:

    Hip5 (04-03-2013)

  7. #324
    Modder & Coder Ian Nicoll's Avatar
    Join Date
    Oct 2008
    Location
    From Scotland, live in Philippines, German company, work worldwide, currently in Sri Lanka.
    Posts
    4,735
    Thanks
    7,180
    Thanked 18,134 Times in 3,715 Posts

    Quote Originally Posted by lostinthemes View Post
    Thank you very much Dacal
    That was a problem that I cant solve since UniAW5...
    I already added this to the UniAW6.1 future update, the new "fair" condition is also done.

    I am listening to you guys, here's what I got so far:

    Things to do with UniAW 6

    Put code in for sweeping second hand.
    Put switch in Config file for spaceman.
    Make a new "Fair" condition with spaceman and new light weight clouds.... Done.
    Add Russian and Chinese languages.
    Condition number 20 = fog/windy - make new condition
    Condition number 30 = partly cloudy/windy - make new condition
    Add year to the date....Done.

    Quote Originally Posted by KarlDall View Post
    Thanks, i've already done this before but no effect. Same Problem.

    Weird, I just tested it and cant duplicate your issue!
    I open from the LS, then go back to LS, switch off from top button, switch back on again, always shows the full screen weatherIcon!
    Don't know what else to say.

    Quote Originally Posted by shamjosh View Post
    Sorry
    Where would I get the coordinates from
    ��??
    var/mobile/Documents myLocation.txt file
    Last edited by Ian Nicoll; 04-03-2013 at 05:31 AM.

    "If it's not broken, I'll fix it till it is"

  8. The Following 7 Users Say Thank You to Ian Nicoll For This Useful Post:

    cuzin (04-03-2013), Hip5 (04-03-2013), King_O_Hill (04-03-2013), kristatos (04-03-2013), lostinthemes (04-03-2013), mrsmickey (04-21-2013), The_Durben (04-03-2013)

  9. #325
    iPhone? More like MyPhone joshlogic's Avatar
    Join Date
    Aug 2011
    Posts
    189
    Thanks
    463
    Thanked 158 Times in 74 Posts

    Ian and Dacal, I want to say thank you personally for putting such effort and creativity into what you are sharing with us. I cannot tell you how much I have enjoyed the animated weather on my phone the last few years. Truly, this is what I love the most about jailbreaking and being able to customize my phone experience is a real blessing. You have my true gratitude and appreciation. Cheers to you both!

  10. The Following 6 Users Say Thank You to joshlogic For This Useful Post:

    Dacal (04-03-2013), GUNNY29 (04-03-2013), iamaqtpa2t (04-03-2013), Ian Nicoll (04-03-2013), NewdestinyX (04-03-2013), The_Durben (04-03-2013)

  11. #326
    iPhone? More like MyPhone
    Join Date
    Jul 2011
    Posts
    187
    Thanks
    108
    Thanked 63 Times in 54 Posts

    So weird
    It's now working

    Dacal thanks once again
    So helpful

    Acid test will be when I get home and see if it picks up my hometown as it is a suburb of london
    I remember having to place // in front of the following path

    Lets see😉

    //city = $(data).find('location').attr('city');

  12. #327
    iPhone? More like MyPhone iamaqtpa2t's Avatar
    Join Date
    Jul 2011
    Location
    Encinitas, CA
    Posts
    101
    Thanks
    77
    Thanked 97 Times in 41 Posts

    Quote Originally Posted by Ian Nicoll View Post
    Doesn't matter where we get the weather from, it will not be accurate for all users, Dacal has already reported that Rasp's method is way off for his location. And I'm sure that somewhere down the line WWO will start charging too, especially now they see Yahoo is doing it. The more popular it becomes then they will start to see the opportunity to make $.
    It's just progress, at one time not so long ago all themes here were free!

    Say what you like about Yahoo, it works (worked) for me, and I just got the API key, now got to figure out how to link it in the js.
    If Rasp's method pans out we will see the same complaints, it will be great for some locations but not for others.

    Best Idea: Somewhere down the line when we get all possibilities working is a switch for the user to choose from Yahoo (paid), WWO, accuweather or any other source.
    Ian,

    Great work love everything you and the team has done. I remember when we use to get free light bulbs just for returning the old ones. Now I have truly given everyone here my age. But I still buy light bulbs now. So I am asking are you saying I should pay for the API I have no problem doing that but how much and where do we pay? Also are you going to redo the code so it works? Thanks for all the help and we shall overcome.

    QT

  13. #328
    King Kong ain't got nothing on me! King_O_Hill's Avatar
    Join Date
    Apr 2011
    Location
    USA
    Posts
    8,149
    Thanks
    37,587
    Thanked 15,150 Times in 5,512 Posts

    Oddly enough, after my 4 hour nap, my GPS was working with the first file that Dacal had posted. I'm going to change it anyway. Thanks for all the work guys, I wish I could have stayed up and helped.
    Widget-Weather App Now Available! Also with MyLocation Support!
    Check out the thread here - Widget-Weather
    To install the Widget-Weather app, just go to Cydia and install. This will also remove MyLocation, as it is built in!
    Want to protect your JailBreak! Add this repo http://cydia.myrepospace.com/iLEXiNFO/ & Install "iLEX R.A.T."
    It will allow you to bring your phone back to a fresh jailbroken state!

  14. The Following 2 Users Say Thank You to King_O_Hill For This Useful Post:

    cuzin (04-03-2013), Ian Nicoll (04-03-2013)

  15. #329
    iPhone? More like MyPhone mohseen488's Avatar
    Join Date
    Feb 2011
    Location
    Bost, Helmand, Afghanistan
    Posts
    273
    Thanks
    847
    Thanked 1,312 Times in 204 Posts

    Yahoo GPS not working
    If you like my Post please hit the Thanks button on the bottom Left Corner.


  16. The Following User Says Thank You to mohseen488 For This Useful Post:

    King_O_Hill (04-03-2013)

  17. #330
    What's Jailbreak? DemoneLatino's Avatar
    Join Date
    Jun 2011
    Posts
    6
    Thanks
    1
    Thanked 1 Time in 1 Post
    i have this location but not work?
    Any solutions? (:

    var prevlatitude = "";

    var prevlongitude = "";

    var textLat;

    var textLong;

    var refreshWeatherTimer;

    var refrechLocationTimer;

    var get_location = false;

    var tempUnit = "f";



    function trimString (text) {

    return text.replace(/^\s+/g,'').replace(/\s+$/g,'');

    }



    function UpdateLocation() {

    refrechLocationTimer = setTimeout("UpdateLocation();", 1000*20); // Refresh location every 20 secondes

    var txt_request = new XMLHttpRequest();

    txt_request.overrideMimeType("text/xml");

    var LocationTimer = setTimeout(function() {

    txt_request.abort();

    dealWithWeather({error:true});

    }, 10000);

    txt_request.onload = function(e) {

    clearTimeout(LocationTimer);

    getCoordinates(txt_request.responseText);

    }

    txt_request.open("GET", "file:///private/var/mobile/Documents/myLocation.txt", false);

    txt_request.setRequestHeader("Cache-Control", "no-cache");

    txt_request.send(null);

    }



    function getCoordinates(request) {

    if (request == "") {

    clearTimeout(refrechLocationTimer);

    validateWeatherLocation(escape(locale).replace(/^%u/g, "%"), setPostal);

    }

    else

    {

    var substr = request.split('\n');

    var templatitude=(substr[0]).split('=');

    var templongitude=(substr[1]).split('=');

    latitude = trimString(templatitude[1]);

    longitude = trimString(templongitude[1]);



    if (prevlatitude != latitude || prevlongitude != longitude) {

    prevlatitude = latitude;

    prevlongitude = longitude;

    getWoeid ();

    }

    }

    }


    function getWoeid() {

    var url = "http://where.yahooapis.com/geocode?location=" + latitude + "+" + longitude + "&gflags=R";

    var xml_request = new XMLHttpRequest();

    var WoeidTimer = setTimeout(function() {

    xml_request.abort();

    if (get_location == false) { dealWithWeather({error:true, errorString:null}); }

    }, 10000);

    xml_request.onload = function(e) {

    clearTimeout(WoeidTimer);

    woeid_loaded(xml_request);

    }

    xml_request.overrideMimeType("text/xml");

    xml_request.open("GET", url+"&antiCache="+Math.floor(Math.random()*1001), false);

    xml_request.setRequestHeader("Cache-Control", "no-cache");

    xml_request.send(null);

    }



    function woeid_loaded(request) {

    if (get_location == true) { clearTimeout(refreshWeatherTimer); }

    var effectiveRoot = findChild(request.responseXML, "ResultSet");

    postal = parseInt(findChild(effectiveRoot, "Result").getElementsByTagName("woeid")[0].childNodes[0].nodeValue);



    if (latitude < 0) { textLat = Math.round(latitude*100)/100 + "\u00B0" + "S"; }

    else if (latitude > 0){ textLat = Math.round(latitude*100)/100 + "\u00B0" + "N"; }

    else { textLat = Math.round(latitude*100)/100 + "\u00B0"; }



    if (longitude < 0) { textLong = Math.round(longitude*100)/100 + "\u00B0" + "W"; }

    else if (longitude > 0) { textLong = Math.round(longitude*100)/100 + "\u00B0" + "E"; }

    else { textLong = Math.round(longitude*100)/100 + "\u00B0"; }



    get_location = true;

    fetchWeatherDataGPS(postal);

    }



    function refreshWeather() {

    fetchWeatherData(dealWithWeather, localeForecast);

    var refreshWeatherTimer = setTimeout("refreshWeather()", updateInterval*60*1000); // Refresh weather as specified in clock.html

    }



    function fetchWeatherDataGPS (zip) {

    var url="http://weather.yahooapis.com/forecastrss?w="+zip+"&u="+tempUnit;

    var xml_request = new XMLHttpRequest();

    var requestTimer = setTimeout(function() {

    xml_request.abort();

    if (xmldata == false) { dealWithWeather ({error:true}); }

    }, 10000);

    xml_request.onload = function(e) {

    clearTimeout(requestTimer);

    xml_GPS_loaded(xml_request);

    }

    xml_request.overrideMimeType("text/xml");

    xml_request.open("GET", url+"&antiCache="+Math.floor(Math.random()*1001));

    xml_request.setRequestHeader("Cache-Control", "no-cache");

    xml_request.send(null);

    return xml_request;

    }



    function xml_GPS_loaded (request) {

    if (request.responseXML)

    {

    var obj = {error:false, errorString:null};

    xmldata = true;

    var guidTag = findChild(findChild(findChild(request.responseXML, "rss"), "channel"), "item");

    localeForecast = guidTag.getElementsByTagName("guid")[0].childNodes[0].nodeValue.split('_')[0];

    refreshWeather();

    }

    else

    {

    dealWithWeather ({error:true, errorString:"XML request failed. no responseXML"});

    }

    }

  18. #331
    Modder & Coder Ian Nicoll's Avatar
    Join Date
    Oct 2008
    Location
    From Scotland, live in Philippines, German company, work worldwide, currently in Sri Lanka.
    Posts
    4,735
    Thanks
    7,180
    Thanked 18,134 Times in 3,715 Posts

    Guys, if you have just joined us please read the very start of post 1, gps in working again (thanks to Dacal and everybody that's been toiling with this over the last 10 hours) but you need a new file or to re-download the widget.
    Last edited by Ian Nicoll; 04-03-2013 at 05:57 AM.

    "If it's not broken, I'll fix it till it is"

  19. The Following 7 Users Say Thank You to Ian Nicoll For This Useful Post:

    cuzin (04-03-2013), joshlogic (04-03-2013), King_O_Hill (04-03-2013), mrsmickey (04-21-2013), sigit (04-03-2013), stratnik (04-03-2013), The_Durben (04-03-2013)

  20. #332
    iPhone? More like MyPhone iamaqtpa2t's Avatar
    Join Date
    Jul 2011
    Location
    Encinitas, CA
    Posts
    101
    Thanks
    77
    Thanked 97 Times in 41 Posts

    Quote Originally Posted by Dacal View Post
    Lol, no because a lot of different codes were used in the past. It works for uniaw 6.0, ToPaz LS and SB, BaSalt LS [2].
    Do you know if it will work with TEK E6 Aniw LS 1.3 Because you had that humming.

    Thanks

  21. #333
    iPhone? More like MyPhone joshlogic's Avatar
    Join Date
    Aug 2011
    Posts
    189
    Thanks
    463
    Thanked 158 Times in 74 Posts

    Question: I have an iPhone 5, and I would love to be able to use this without showing the forecast below the main widget. I have folders that typically go there. Is this possible? I am open to a DIY mod but I'm not quite sure what start...

  22. #334
    My iPhone is a Part of Me Klont's Avatar
    Join Date
    Mar 2011
    Location
    Netherlands
    Posts
    521
    Thanks
    332
    Thanked 372 Times in 207 Posts

    Hi and first of all thank you all very much guys for the brilliant and new UniAW6 and for the update concerning the GPS
    (and offcourse especially Ian & Dacal)

    I have the same problem as stated here above it works on and off or takes sometimes a (very) long time to load
    Or does not load at all until i respring and than it loads suddenly very quickly..

    Just wanted to mention it, realy have no clue what the problem is.
    Maybe just Yahoo still doing someting?

    Thanks for all the effort and time guys, keep up the excellent work

  23. The Following 3 Users Say Thank You to Klont For This Useful Post:

    cuzin (04-03-2013), Dacal (04-03-2013), Ian Nicoll (04-03-2013)

  24. #335
    iPhone? More like MyPhone iamaqtpa2t's Avatar
    Join Date
    Jul 2011
    Location
    Encinitas, CA
    Posts
    101
    Thanks
    77
    Thanked 97 Times in 41 Posts

    Joshlogic

    Yes if you set the opacity to 0 that will do it. I have also just used a 2 day forecast because the 4 day is never accurate and I to like have the 2 day on top here is a look if you like pm me and I will share with you. Ian has helped me through this.

    QT
    Attached Thumbnails Attached Thumbnails UniAW6.0 for iph4 & iph5-img_0052.png  

  25. The Following 2 Users Say Thank You to iamaqtpa2t For This Useful Post:

    Ian Nicoll (04-03-2013), joshlogic (04-03-2013)

  26. #336
    King Kong ain't got nothing on me! King_O_Hill's Avatar
    Join Date
    Apr 2011
    Location
    USA
    Posts
    8,149
    Thanks
    37,587
    Thanked 15,150 Times in 5,512 Posts

    Quote Originally Posted by joshlogic View Post
    Question: I have an iPhone 5, and I would love to be able to use this without showing the forecast below the main widget. I have folders that typically go there. Is this possible? I am open to a DIY mod but I'm not quite sure what start...
    Go into the CSS file and change the opacity to 0 for the 100% line in the animation section near the top for both forecast and forecastbg.

    Yes, while driving, my location changed!!!

    Thanks Dacal!
    Widget-Weather App Now Available! Also with MyLocation Support!
    Check out the thread here - Widget-Weather
    To install the Widget-Weather app, just go to Cydia and install. This will also remove MyLocation, as it is built in!
    Want to protect your JailBreak! Add this repo http://cydia.myrepospace.com/iLEXiNFO/ & Install "iLEX R.A.T."
    It will allow you to bring your phone back to a fresh jailbroken state!

  27. The Following 6 Users Say Thank You to King_O_Hill For This Useful Post:

    cuzin (04-03-2013), Dacal (04-03-2013), Ian Nicoll (04-03-2013), joshlogic (04-03-2013), Kazuyoshi (04-03-2013), sigit (04-03-2013)

  28. #337
    What's Jailbreak?
    Join Date
    Mar 2012
    Posts
    20
    Thanks
    4
    Thanked 5 Times in 5 Posts

    Quote Originally Posted by joshlogic View Post
    Question: I have an iPhone 5, and I would love to be able to use this without showing the forecast below the main widget. I have folders that typically go there. Is this possible? I am open to a DIY mod but I'm not quite sure what start...
    go into css/main/ and open UniAW6_iph5.css

    look for:-
    @-webkit-keyframes forecast_fadein{ /* Fade in animation for 4 day forecast */
    0% {opacity : 0;}
    50% {opacity : 0;}
    100% {opacity : 1.0;}}

    @-webkit-keyframes forecastbg_fadein{ /* Fade in animation for forecast background */
    0% {opacity : 0;}
    50% {opacity : 0;}
    100% {opacity : 1.0;}}

    and change the 100% opacity to 0 instead of 1.0

    I believe this will do what you want , worked for me

    Adjam

  29. #338
    iPhone? More like MyPhone iamaqtpa2t's Avatar
    Join Date
    Jul 2011
    Location
    Encinitas, CA
    Posts
    101
    Thanks
    77
    Thanked 97 Times in 41 Posts

    Quote Originally Posted by joshlogic View Post
    Question: I have an iPhone 5, and I would love to be able to use this without showing the forecast below the main widget. I have folders that typically go there. Is this possible? I am open to a DIY mod but I'm not quite sure what start...
    Joshlogic
    Yes if you set the opacity to 0 that will do it. I have also just used a 2 day forecast because the 4 day is never accurate and I to like have the 2 day on top here is a look if you like pm me and I will share with you. Ian has helped me through this.

    QT

  30. The Following 2 Users Say Thank You to iamaqtpa2t For This Useful Post:

    Ian Nicoll (04-03-2013), joshlogic (04-03-2013)

  31. #339
    iPhone? More like MyPhone joshlogic's Avatar
    Join Date
    Aug 2011
    Posts
    189
    Thanks
    463
    Thanked 158 Times in 74 Posts

    Quote Originally Posted by King_O_Hill View Post
    Go into the CSS file and change the opacity to 0 for the 100% line in the animation section near the top for both forecast and forecastbg.

    Yes, while driving, my location changed!!!

    Thanks Dacal!
    Worked perfectly - thanks dude! What a great community!

  32. The Following 2 Users Say Thank You to joshlogic For This Useful Post:

    Ian Nicoll (04-03-2013), King_O_Hill (04-03-2013)

  33. #340
    What's Jailbreak? DemoneLatino's Avatar
    Join Date
    Jun 2011
    Posts
    6
    Thanks
    1
    Thanked 1 Time in 1 Post
    Any solutions for this -->

    var prevlatitude = "";

    var prevlongitude = "";

    var textLat;

    var textLong;

    var refreshWeatherTimer;

    var refrechLocationTimer;

    var get_location = false;

    var tempUnit = "f";



    function trimString (text) {

    return text.replace(/^\s+/g,'').replace(/\s+$/g,'');

    }



    function UpdateLocation() {

    refrechLocationTimer = setTimeout("UpdateLocation();", 1000*20); // Refresh location every 20 secondes

    var txt_request = new XMLHttpRequest();

    txt_request.overrideMimeType("text/xml");

    var LocationTimer = setTimeout(function() {

    txt_request.abort();

    dealWithWeather({error:true});

    }, 10000);

    txt_request.onload = function(e) {

    clearTimeout(LocationTimer);

    getCoordinates(txt_request.responseText);

    }

    txt_request.open("GET", "file:///private/var/mobile/Documents/myLocation.txt", false);

    txt_request.setRequestHeader("Cache-Control", "no-cache");

    txt_request.send(null);

    }



    function getCoordinates(request) {

    if (request == "") {

    clearTimeout(refrechLocationTimer);

    validateWeatherLocation(escape(locale).replace(/^%u/g, "%"), setPostal);

    }

    else

    {

    var substr = request.split('\n');

    var templatitude=(substr[0]).split('=');

    var templongitude=(substr[1]).split('=');

    latitude = trimString(templatitude[1]);

    longitude = trimString(templongitude[1]);



    if (prevlatitude != latitude || prevlongitude != longitude) {

    prevlatitude = latitude;

    prevlongitude = longitude;

    getWoeid ();

    }

    }

    }


    function getWoeid() {

    var url = "http://where.yahooapis.com/geocode?location=" + latitude + "+" + longitude + "&gflags=R";

    var xml_request = new XMLHttpRequest();

    var WoeidTimer = setTimeout(function() {

    xml_request.abort();

    if (get_location == false) { dealWithWeather({error:true, errorString:null}); }

    }, 10000);

    xml_request.onload = function(e) {

    clearTimeout(WoeidTimer);

    woeid_loaded(xml_request);

    }

    xml_request.overrideMimeType("text/xml");

    xml_request.open("GET", url+"&antiCache="+Math.floor(Math.random()*1001), false);

    xml_request.setRequestHeader("Cache-Control", "no-cache");

    xml_request.send(null);

    }



    function woeid_loaded(request) {

    if (get_location == true) { clearTimeout(refreshWeatherTimer); }

    var effectiveRoot = findChild(request.responseXML, "ResultSet");

    postal = parseInt(findChild(effectiveRoot, "Result").getElementsByTagName("woeid")[0].childNodes[0].nodeValue);



    if (latitude < 0) { textLat = Math.round(latitude*100)/100 + "\u00B0" + "S"; }

    else if (latitude > 0){ textLat = Math.round(latitude*100)/100 + "\u00B0" + "N"; }

    else { textLat = Math.round(latitude*100)/100 + "\u00B0"; }



    if (longitude < 0) { textLong = Math.round(longitude*100)/100 + "\u00B0" + "W"; }

    else if (longitude > 0) { textLong = Math.round(longitude*100)/100 + "\u00B0" + "E"; }

    else { textLong = Math.round(longitude*100)/100 + "\u00B0"; }



    get_location = true;

    fetchWeatherDataGPS(postal);

    }



    function refreshWeather() {

    fetchWeatherData(dealWithWeather, localeForecast);

    var refreshWeatherTimer = setTimeout("refreshWeather()", updateInterval*60*1000); // Refresh weather as specified in clock.html

    }



    function fetchWeatherDataGPS (zip) {

    var url="http://weather.yahooapis.com/forecastrss?w="+zip+"&u="+tempUnit;

    var xml_request = new XMLHttpRequest();

    var requestTimer = setTimeout(function() {

    xml_request.abort();

    if (xmldata == false) { dealWithWeather ({error:true}); }

    }, 10000);

    xml_request.onload = function(e) {

    clearTimeout(requestTimer);

    xml_GPS_loaded(xml_request);

    }

    xml_request.overrideMimeType("text/xml");

    xml_request.open("GET", url+"&antiCache="+Math.floor(Math.random()*1001));

    xml_request.setRequestHeader("Cache-Control", "no-cache");

    xml_request.send(null);

    return xml_request;

    }



    function xml_GPS_loaded (request) {

    if (request.responseXML)

    {

    var obj = {error:false, errorString:null};

    xmldata = true;

    var guidTag = findChild(findChild(findChild(request.responseXML, "rss"), "channel"), "item");

    localeForecast = guidTag.getElementsByTagName("guid")[0].childNodes[0].nodeValue.split('_')[0];

    refreshWeather();

    }

    else

    {

    dealWithWeather ({error:true, errorString:"XML request failed. no responseXML"});

    }

    }


Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts