Page 230 of 365 FirstFirst ... 130 180 220228229230231232 240 280 330 ... LastLast
Results 4,581 to 4,600 of 7290

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


Thread: [Tweak] iWidgets

  1. #4581
    Quote Originally Posted by KraXik View Post
    Yeah but why? It's just a gif image. I want it to work, no matter what I try/change it always works in iFile. The moment it goes on the SB - boom. White squares.
    Something's broken in the code itself. Nothing you're doing wrong. As I said - it's dead out of the box for all of us. I've written the developer twice. No response. That's the best way to do.

    Quote Originally Posted by Simon View Post
    Got it working, this isn't part of a paid package is it? I don't want to post it here if it is.
    A free Cydia package, Simon. You can tell us what to do to make it work. It doesn't work for me either. What did you do to get it working?

  2. The Following User Says Thank You to NewdestinyX For This Useful Post:

    King_O_Hill (05-06-2013)

  3. #4582
    Livin the iPhone Life KraXik's Avatar
    Join Date
    Mar 2011
    Location
    Winchester, UK
    Posts
    2,634
    Thanks
    2,684
    Thanked 1,757 Times in 894 Posts

    Quote Originally Posted by NewdestinyX View Post
    Something's broken in the code itself. Nothing you're doing wrong. As I said - it's dead out of the box for all of us. I've written the developer twice. No response. That's the best way to do.
    Check out my code compared to the package code.

    Completely different.

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

    King_O_Hill (05-06-2013)

  5. #4583
    Superbad Modder-ator Simon's Avatar
    Join Date
    Nov 2007
    Location
    Bermuda
    Posts
    46,774
    Thanks
    6,978
    Thanked 15,534 Times in 7,104 Posts

    I just dropped it into one of my Hype iwidget templates (the gif) then exported it to a folder and added your plist. It was pretty big so I made it a little smaller. If you have iwidget tapper installed you can change the size of it easily just by changing the values in the widget.plist.

    Here it is: Download

  6. The Following 3 Users Say Thank You to Simon For This Useful Post:

    It's Mi (05-14-2013), King_O_Hill (05-06-2013), KraXik (05-05-2013)

  7. #4584
    Livin the iPhone Life KraXik's Avatar
    Join Date
    Mar 2011
    Location
    Winchester, UK
    Posts
    2,634
    Thanks
    2,684
    Thanked 1,757 Times in 894 Posts

    Quote Originally Posted by Simon View Post
    I just dropped it into one of my Hype iwidget templates (the gif) then exported it to a folder and added your plist. It was pretty big so I made it a little smaller. If you have iwidget tapper installed you can change the size of it easily just by changing the values in the widget.plist.

    Here it is: Download
    So do you think that was the issue? File too big?

  8. The Following User Says Thank You to KraXik For This Useful Post:

    King_O_Hill (05-06-2013)

  9. #4585
    Superbad Modder-ator Simon's Avatar
    Join Date
    Nov 2007
    Location
    Bermuda
    Posts
    46,774
    Thanks
    6,978
    Thanked 15,534 Times in 7,104 Posts

    Quote Originally Posted by KraXik View Post
    So do you think that was the issue? File too big?
    I just tried the file you sent me without changing anything and that worked too. Dunno why it wasn't working for you, odd.

  10. The Following 2 Users Say Thank You to Simon For This Useful Post:

    King_O_Hill (05-05-2013), KraXik (05-05-2013)

  11. #4586
    Quote Originally Posted by Simon View Post
    I just tried the file you sent me without changing anything and that worked too. Dunno why it wasn't working for you, odd.
    Original not working for me either on SB - in iFile and on computer, yes. Not on Springboard. Yours works, Simon. The package on Cydia is definitely broken.
    Here to help if I can. If I can't I know someone who can!

  12. The Following User Says Thank You to NewdestinyX For This Useful Post:

    King_O_Hill (05-06-2013)

  13. #4587
    Superbad Modder-ator Simon's Avatar
    Join Date
    Nov 2007
    Location
    Bermuda
    Posts
    46,774
    Thanks
    6,978
    Thanked 15,534 Times in 7,104 Posts

    Quote Originally Posted by NewdestinyX View Post
    Original not working for me either on SB - in iFile and on computer, yes. Not on Springboard. Yours works, Simon. The package on Cydia is definitely broken.
    Weird, I wonder why his original one is working for just me.

  14. The Following User Says Thank You to Simon For This Useful Post:

    King_O_Hill (05-06-2013)

  15. #4588
    Livin the iPhone Life KraXik's Avatar
    Join Date
    Mar 2011
    Location
    Winchester, UK
    Posts
    2,634
    Thanks
    2,684
    Thanked 1,757 Times in 894 Posts

    Quote Originally Posted by Simon View Post
    Weird, I wonder why his original one is working for just me.
    I'm good now though thanks.

    Just wondering, is there a tutorial for Options.plist?

    I'm wanting to add an option to switch between 5 pictures.

    I've copied the same layout as other widgets for the option.plist. (And that works) So I must need to do something else. Do I need a js?

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

    King_O_Hill (05-06-2013)

  17. #4589
    Superbad Modder-ator Simon's Avatar
    Join Date
    Nov 2007
    Location
    Bermuda
    Posts
    46,774
    Thanks
    6,978
    Thanked 15,534 Times in 7,104 Posts

    Quote Originally Posted by KraXik View Post
    I'm good now though thanks.

    Just wondering, is there a tutorial for Options.plist?

    I'm wanting to add an option to switch between 5 pictures.

    I've copied the same layout as other widgets for the option.plist. (And that works) So I must need to do something else. Do I need a js?
    Durben or Drifter would probably be the best guys to ask that to. So far I have only re-used and modded other's options.plist. I haven't made my own one (yet).

  18. The Following 2 Users Say Thank You to Simon For This Useful Post:

    King_O_Hill (05-06-2013), KraXik (05-05-2013)

  19. #4590
    Quote Originally Posted by IceT View Post
    Hi daddykool,

    Thanks for your very nice iWidget! I am not power user but it seems I am facing "Summer time Sunset / Sunrise" timing issue. Your widget weather icon shows different than yahoo stock weather icon (stock weather shows "day" but your iwidget is still night). Any comments?

    Thanks in advance.
    Not sure I can help at min bro having issues with phone at min!

  20. The Following User Says Thank You to daddykool For This Useful Post:

    King_O_Hill (05-06-2013)

  21. #4591
    Quote Originally Posted by KraXik View Post
    I'm good now though thanks.

    Just wondering, is there a tutorial for Options.plist?

    I'm wanting to add an option to switch between 5 pictures.

    I've copied the same layout as other widgets for the option.plist. (And that works) So I must need to do something else. Do I need a js?
    It has to do with creating vars (variables) in the main.js and then converting them to entries in the Options.plist. Both Durben and Drifter are crazy busy and turned me down for a tutorial on vars recently. King is another resource but he seems to have been a bit too busy. Maybe Dacal or Ian can add that tutorial to Kings thread.

    This is the 'next level' of JavaScript programming and I think it's complex enough that our coders don't have the time to teach us. I've been searching madly on Google but have come up to dead ends that don't look anything like our code. An options.plist is just an iWidget's version of config.js of a widget. If you understand how a config.js works and ties to a main.js then making an option.plist is a cakewalk from what little to date I've learned.
    Here to help if I can. If I can't I know someone who can!

  22. The Following 2 Users Say Thank You to NewdestinyX For This Useful Post:

    King_O_Hill (05-06-2013), Simon (05-05-2013)

  23. #4592
    Example

    In your <script></script> tags in the html document or a .js add this

    document.getElementById("picture").src="Folder" + Picture;

    html would be

    <img id="picture" src="Folder/blank.png"/>

    css basic

    #picture{
    position:absolute;
    top:0px;
    left:0px;
    width: 100px;
    height: 100px;
    }

    *and whatever other styling you need

    You need to add however many pictures (or images or overlays or whatever you need to be able to switch to the the same Folder as the html with this and add a blank.png image

    This is your variable. As a config.js it would be
    var Picture = 1.png

    (Your pics are named 1.png 2.png ect)

    As an Options.plist this takes the variable Picture and sets a user choice for an option

    <dict>
    <key>name</key>
    <string>Picture</string>
    <key>type</key>
    <string>select</string>
    <key>label</key>
    <string>Choose Picture</string>
    <key>default</key>
    <string>1</string>
    <key>options</key>
    <dict>
    <key>1</key>
    <string>1.png</string>
    <key>2</key>
    <string>2.png</string>
    <key>3</key>
    <string>3.png</string>
    </dict>
    </dict>

    *add more as needed

    Now look at options in other widgets and try and figure the rest out for yourselves. Much more rewarding to you once you do. To do more complex things you have to know how to write the variables in scripts and add them along with any other option type in the Options.plist (or config.js if not an iwidget)


    Good night
    Last edited by The_Durben; 05-05-2013 at 11:24 PM.

  24. The Following 7 Users Say Thank You to The_Durben For This Useful Post:

    azaleea (05-12-2013), King_O_Hill (05-06-2013), KraXik (05-06-2013), NewdestinyX (05-06-2013), RKO1195 (05-06-2013), Simon (05-06-2013), The.Drifter (05-06-2013)

  25. #4593
    Grant,

    Sorry bro, I took the weekend off to clear my head some. I have an explanation in mind, but I need to write it up and then break it down so it makes sense.

    Big D,

    You mind if I "borrow" your explanation? I might be able to use it in my thread. It will save me a little typing.

    Check out WW2 for iOS 8 - Widget-Weather 2.0

  26. The Following 3 Users Say Thank You to King_O_Hill For This Useful Post:

    NewdestinyX (05-06-2013), RKO1195 (05-06-2013), The_Durben (05-06-2013)

  27. #4594
    Livin the iPhone Life KraXik's Avatar
    Join Date
    Mar 2011
    Location
    Winchester, UK
    Posts
    2,634
    Thanks
    2,684
    Thanked 1,757 Times in 894 Posts

    Quote Originally Posted by The_Durben View Post
    Example

    In your tags in the html document or a .js add this

    document.getElementById("picture").src="Folder" + Picture;

    html would be



    css basic

    #picture{
    position:absolute;
    top:0px;
    left:0px;
    width: 100px;
    height: 100px;
    }

    *and whatever other styling you need

    You need to add however many pictures (or images or overlays or whatever you need to be able to switch to the the same Folder as the html with this and add a blank.png image

    This is your variable. As a config.js it would be
    var Picture = 1.png

    (Your pics are named 1.png 2.png ect)

    As an Options.plist this takes the variable Picture and sets a user choice for an option


    name
    Picture
    type
    select
    label
    Choose Picture
    default
    1
    options

    1
    1.png
    2
    2.png
    3
    3.png



    *add more as needed

    Now look at options in other widgets and try and figure the rest out for yourselves. Much more rewarding to you once you do. To do more complex things you have to know how to write the variables in scripts and add them along with any other option type in the Options.plist (or config.js if not an iwidget)


    Good night
    Thank you Durben. My issue was the script bit.

    I had this -



    $( '#Icon' ).attr( 'src', 'Images/Icons/' + Icon );



    Since changing to your bit above, all works now. Thanks!

    Download link added to the Shine thread. Credits to Blue for the images. Simon for the Gif help and Durben for the Option.plist help.
    Last edited by KraXik; 05-06-2013 at 03:52 AM.

  28. The Following 2 Users Say Thank You to KraXik For This Useful Post:

    Simon (05-06-2013), The_Durben (05-06-2013)

  29. #4595
    Quote Originally Posted by The_Durben View Post
    Example

    In your <script></script> tags in the html document or a .js add this

    document.getElementById("picture").src="Folder" + Picture;

    html would be

    <img id="picture" src="Folder/blank.png"/>


    Now look at options in other widgets and try and figure the rest out for yourselves. Much more rewarding to you once you do. To do more complex things you have to know how to write the variables in scripts and add them along with any other option type in the Options.plist (or config.js if not an iwidget)


    Good night
    Huge help, D! Thanks. I still have loads of questions just generated from your one explanation here. I know this seems like 'simple to you'. But I can't learn - without a basic knowledge of the language. Once I learned the grammar of Spanish - putting sentences together of my own became easier and easier and within 3 years I was fluent. But what I don't have know are the 'basic definitions'. I can't try for myself when I don't know the basic 'verbs and nouns' of Javascript. This is WAY different than when I Eric and you told me to basically 'get off my duff' and look in the .css for how to move stuff up and down. In the css I immediately saw 'top' and 'left' and a pixel amount. Simple. The words 'TOP' and "LEFT" were a 'language' I already knew - All of us know. The settings of variables and 'GetElementbyID' are not 'vocabulary words' we know. I just need 'one' good GRAMMAR lesson -- for Java - and I can take it from there.. I've read through 5-6 Google articles on Java and none deal with settings variables that are anything other than 'number equations'. If there were a good source one of your could recommend on this aspect - I'm an AVID learner.. 4.0 GPA when I graduated college (recently when 49 years old). But what you're asking me to do would be the equivalent of sending an American to the 'center square' of Madrid Spain and asking him to find his way around without ever speaking a word of Spanish. It just can't be done, bro. ;-)

    Quote Originally Posted by King_O_Hill View Post
    Grant,

    Sorry bro, I took the weekend off to clear my head some. I have an explanation in mind, but I need to write it up and then break it down so it makes sense.
    All good, Brian.. Never gonna bug you. You guys give so much as it is. What I'm trying to do is add a scaling option from 50% to 100% to Ferlop's Analog Clock. I used Durben's e6-Analog Clock, which has this ability as my 'primer' to learn from. I did things almost identically and it just broken the clock. Just sits at midnight. To keep things clean I made a main.js and called it from the html with only the GetElement "Widget" stuff.
    Here's all I thought I needed.
    Added to the HTML, in red:
    Code:
    <!-- UniAW5.0 By Ian Nicoll with credit to Dacal -->
    <?xml version="1.0" encoding="UTF-8"?>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <link rel="stylesheet" href="Css/UniAW.css" type="text/css" media="screen" />
    <script type="text/javascript" src="JavaScript/jquery-1.2.6.min.js"></script>
    <script type="text/javascript" src="JavaScript/rotatehands.js"></script>
    <script type="text/javascript" src="JavaScript/main.js"></script>
    </head>
    <div id="Widget">
    <img id="Clockface" src="Images/clockface/Clock.png" class="stretch"></img>
    
    <style>
    
            body {
    
            background-color: none;
    
            background-size: 155px 156px;
    
            background-repeat:no-repeat; }
    
    
    
            </style>
    
    <body bgcolor="Transparent" onload="init()">
    
    <div id="analogclock"></div>
    <div id="hour"></div>
    <div id="min"></div>
    <div id="sec"></div>
    <div id="sechandXX"></div>
    <div id="node"></div>
    
    <div class="Digitalclock">
    <span id="clock"></span>
    </div>
    
    <div class="seconds_and_ampm">
    <span id="second"></span>
    <span id="ampm"></span>
    </div>
    </div>
    </div>
    
    </body>
    </html>
    Added to css after his <body> entry
    Code:
    #Widget{
    position:absolute;
    width:270px;
    top:0px;
    left:0px;
    -webkit-transform:scale(1);
    }
    And then in the new main.js I created, I add this code:

    Code:
    document.getElementById("Widget");
            if ( size == 100 ){document.getElementById("Widget").style.webkitTransform = 'scale(1.0)';}
            if ( size == 90 ){document.getElementById("Widget").style.webkitTransform = 'scale(0.9)';
    document.getElementById("Widget").style.left="-20px";}
            if ( size == 80 ){document.getElementById("Widget").style.webkitTransform = 'scale(0.8)';
    document.getElementById("Widget").style.left="-30px";}
            if ( size == 75 ){document.getElementById("Widget").style.webkitTransform = 'scale(0.75)';
    document.getElementById("Widget").style.left="-35px";}
            if ( size == 65 ){document.getElementById("Widget").style.webkitTransform = 'scale(0.65)';
    document.getElementById("Widget").style.left="-45px";}
            if ( size == 55 ){document.getElementById("Widget").style.webkitTransform = 'scale(0.55)';
    document.getElementById("Widget").style.left="-55px";}
            if ( size == 45 ){document.getElementById("Widget").style.webkitTransform = 'scale(0.45)';
    document.getElementById("Widget").style.left="-65px";}
     }
    And finally - in the options.plist - ONLY this:
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <array>
    
    <dict>
    								<key>name</key>
    								<string>size</string>
    								<key>type</key>
    								<string>select</string>
    								<key>label</key>
    								<string>Widget Size</string>
    								<key>default</key>
    								<string>75%</string>
    								<key>options</key>
    <dict>
    			 <key>100%</key>					 <string>100</string>
    			 <key>90%</key> 					<string>90</string>
    			 <key>80%</key> 					<string>80</string>
    			 <key>75%</key> 					<string>75</string>
    			 <key>65%</key> 					<string>65</string>
    			 <key>55%</key> 					<string>55</string>
    			 <key>45%</key> 					<string>45</string>
    </dict>
    </dict>
    
    </array>
    </plist>
    Here's the actual widget I'm modding for you to look at the rest of the code.
    Ferlop's Clock scaleable
    Last edited by NewdestinyX; 05-06-2013 at 10:18 AM.

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

    King_O_Hill (05-06-2013), The_Durben (05-06-2013)

  31. #4596
    Quote Originally Posted by King_O_Hill View Post
    Grant,

    Sorry bro, I took the weekend off to clear my head some. I have an explanation in mind, but I need to write it up and then break it down so it makes sense.

    Big D,

    You mind if I "borrow" your explanation? I might be able to use it in my thread. It will save me a little typing.
    For sure man

    Where's your thread?

    Quote Originally Posted by KraXik View Post
    Thank you Durben. My issue was the script bit.

    I had this -



    $( '#Icon' ).attr( 'src', 'Images/Icons/' + Icon );



    Since changing to your bit above, all works now. Thanks!

    Download link added to the Shine thread. Credits to Blue for the images. Simon for the Gif help and Durben for the Option.plist help.
    That method will work on some and not on others. Just depends on the widget and scripts being used.
    What I put above will work for selecting any images in pretty much any widget.
    Glad it helped.

    Quote Originally Posted by NewdestinyX View Post
    Huge help, D! Thanks. I still have loads of questions just generated from your one explanation here. I know this seems like 'simple to you'. But I can't learn - without a basic knowledge of the language. Once I learned the grammar of Spanish - putting sentences together of my own became easier and easier and within 3 years I was fluent. But what I don't have know are the 'basic definitions'. I can't try for myself when I don't know the basic 'verbs and nouns' of Javascript. This is WAY different than when I Eric and you told me to basically 'get off my duff' and look in the .css for how to move stuff up and down. In the css I immediately saw 'top' and 'left' and a pixel amount. Simple. The words 'TOP' and "LEFT" were a 'language' I already knew - All of us know. The settings of variables and 'GetElementbyID' are not 'vocabulary words' we know. I just need 'one' good GRAMMAR lesson -- for Java - and I can take it from there.. I've read through 5-6 Google articles on Java and none deal with settings variables that are anything other than 'number equations'. If there were a good source one of your could recommend on this aspect - I'm an AVID learner.. 4.0 GPA when I graduated college (recently when 49 years old). But what you're asking me to do would be the equivalent of sending an American to the 'center square' of Madrid Spain and asking him to find his way around without ever speaking a word of Spanish. It just can't be done, bro. ;-)

    All good, Brian.. Never gonna bug you. You guys give so much as it is. What I'm trying to do is add a scaling option from 50% to 100% to Ferlop's Analog Clock. I used Durben's e6-Analog Clock, which has this ability as my 'primer' to learn from. I did things almost identically and it just broken the clock. Just sits at midnight. To keep things clean I made a main.js and called it from the html with only the GetElement "Widget" stuff.
    Here's all I thought I needed.
    Added to the HTML, in red:
    Code:
    <!-- UniAW5.0 By Ian Nicoll with credit to Dacal -->
    <?xml version="1.0" encoding="UTF-8"?>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <link rel="stylesheet" href="Css/UniAW.css" type="text/css" media="screen" />
    <script type="text/javascript" src="JavaScript/jquery-1.2.6.min.js"></script>
    <script type="text/javascript" src="JavaScript/rotatehands.js"></script>
    <script type="text/javascript" src="JavaScript/main.js"></script>
    </head>
    <div id="Widget">
    <img id="Clockface" src="Images/clockface/Clock.png" class="stretch"></img>
    
    <style>
    
            body {
    
            background-color: none;
    
            background-size: 155px 156px;
    
            background-repeat:no-repeat; }
    
    
    
            </style>
    
    <body bgcolor="Transparent" onload="init()">
    
    <div id="analogclock"></div>
    <div id="hour"></div>
    <div id="min"></div>
    <div id="sec"></div>
    <div id="sechandXX"></div>
    <div id="node"></div>
    
    <div class="Digitalclock">
    <span id="clock"></span>
    </div>
    
    <div class="seconds_and_ampm">
    <span id="second"></span>
    <span id="ampm"></span>
    </div>
    </div>
    </div>
    
    </body>
    </html>
    Added to css after his <body> entry
    Code:
    #Widget{
    position:absolute;
    width:270px;
    top:0px;
    left:0px;
    -webkit-transform:scale(1);
    }
    And then in the new main.js I created, I add this code:

    Code:
    document.getElementById("Widget");
            if ( size == 100 ){document.getElementById("Widget").style.webkitTransform = 'scale(1.0)';}
            if ( size == 90 ){document.getElementById("Widget").style.webkitTransform = 'scale(0.9)';
    document.getElementById("Widget").style.left="-20px";}
            if ( size == 80 ){document.getElementById("Widget").style.webkitTransform = 'scale(0.8)';
    document.getElementById("Widget").style.left="-30px";}
            if ( size == 75 ){document.getElementById("Widget").style.webkitTransform = 'scale(0.75)';
    document.getElementById("Widget").style.left="-35px";}
            if ( size == 65 ){document.getElementById("Widget").style.webkitTransform = 'scale(0.65)';
    document.getElementById("Widget").style.left="-45px";}
            if ( size == 55 ){document.getElementById("Widget").style.webkitTransform = 'scale(0.55)';
    document.getElementById("Widget").style.left="-55px";}
            if ( size == 45 ){document.getElementById("Widget").style.webkitTransform = 'scale(0.45)';
    document.getElementById("Widget").style.left="-65px";}
     }
    And finally - in the options.plist - ONLY this:
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <array>
    
    <dict>
    								<key>name</key>
    								<string>size</string>
    								<key>type</key>
    								<string>select</string>
    								<key>label</key>
    								<string>Widget Size</string>
    								<key>default</key>
    								<string>75%</string>
    								<key>options</key>
    <dict>
    			 <key>100%</key>					 <string>100</string>
    			 <key>90%</key> 					<string>90</string>
    			 <key>80%</key> 					<string>80</string>
    			 <key>75%</key> 					<string>75</string>
    			 <key>65%</key> 					<string>65</string>
    			 <key>55%</key> 					<string>55</string>
    			 <key>45%</key> 					<string>45</string>
    </dict>
    </dict>
    
    </array>
    </plist>
    Here's the actual widget I'm modding for you to look at the rest of the code.
    Ferlop's Clock scaleable
    Simple fix. Everything is right except for the html and opening of the javascript

    In the html you didn't define the "Widget"
    You need to wrap the clock elements in it.
    Since there is already an extra closing </div> you don't need to add that. See it showed up red? Means an error
    Under the body onload you need to have
    <div id="Widget">

    In the main.js you have an extra closing } at the end as well. Needed for the line ill show you below.
    Above your first document get element you need to tell it to run

    You would put this

    function init() {


    Should be working after that. May or may not line up properly when you scale it because you're using a scaling script I used for another widget which also moves it left when its scaled so it lines up at the left side and not outside my smaller set plist width and height.

    Okay it does work. I just DL'd and put in what I told you.
    Last edited by The_Durben; 05-06-2013 at 11:53 AM.

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

    King_O_Hill (05-06-2013), Simon (05-06-2013)

  33. #4597
    Quote Originally Posted by The_Durben View Post
    Simple fix. Everything is right except for the html and opening of the javascript

    In the html you didn't define the "Widget"
    You need to wrap the clock elements in it.
    Since there is already an extra closing you don't need to add that. See it showed up red? Means an error
    Under the body onload you need to have


    In the main.js you have an extra closing } at the end as well. Needed for the line ill show you below.
    Above your first document get element you need to tell it to run

    You would put this

    function init() {


    Should be working after that. May or may not line up properly when you scale it because you're using a scaling script I used for another widget which also moves it left when its scaled so it lines up at the left side and not outside my smaller set plist width and height.

    Okay it does work. I just DL'd and put in what I told you.
    Oh wow.. Can't believe I got it that close. But I DID follow your e6_analog as my guide. Didn't understand your opening paragraph a bit, D -- because the 'red' in my html wasn't from a program showing errors - it was just ME adding red and bold to show you that I HAD added those particular items to Ferlop's iWidget. That's ME adding the main.js script call, the and the closing . So I think just the "function() init" in the .js was my only error. IT WORKS!! Yes!

    One other questions: Where is the variable of 'scaling' first established, D - so that the Options.plist looks for it?

    Thanks again!
    Grant

    --------

    Okay gang - my second 'simple mod' available to community. All credit to Ferlop15 for this great analog clock of his that's been on my phone for quite some time. Credit for the scaling script to Durben, the great teacher, as always..

    Enjoy:
    Fer_Analog_Clock_Scaleable

    Last edited by NewdestinyX; 05-06-2013 at 01:03 PM.
    Here to help if I can. If I can't I know someone who can!

  34. The Following 6 Users Say Thank You to NewdestinyX For This Useful Post:

    azaleea (05-12-2013), It's Mi (05-14-2013), joshlogic (05-06-2013), King_O_Hill (05-06-2013), phil73 (05-06-2013), The_Durben (05-06-2013)

  35. #4598

  36. The Following 3 Users Say Thank You to King_O_Hill For This Useful Post:

    NewdestinyX (05-06-2013), RKO1195 (05-06-2013), The_Durben (05-06-2013)

  37. #4599
    Quote Originally Posted by NewdestinyX View Post
    Oh wow.. Can't believe I got it that close. But I DID follow your e6_analog as my guide. Didn't understand your opening paragraph a bit, D -- because the 'red' in my html wasn't from a program showing errors - it was just ME adding red and bold to show you that I HAD added those particular items to Ferlop's iWidget. That's ME adding the main.js script call, the and the closing . So I think just the "function() init" in the .js was my only error. IT WORKS!! Yes!

    One other questions: Where is the variable of 'scaling' first established, D - so that the Options.plist looks for it?

    Thanks again!
    Grant

    --------

    Okay gang - my second 'simple mod' available to community. All credit to Ferlop15 for this great analog clock of his that's been on my phone for quite some time. Credit for 'learning' some more about scripting to Durben, as always..

    Enjoy:
    Fer_Analog_Clock_Scaleable

    I didn't see you had the div Widget at top
    Needs to be where I said it should go but will work none the less.
    The options.plist is just another way of writing variables that would be in the .js or a Config.js
    It doesn't look for anything other than the javascript variable. The tweak itself is telling the widget to use the options plist. It's not defined anywhere to "look" for it. You are scaling the "Widget" which is actually the whole clock because you put the div around it.

    Should be thanks Durben for the scaling script I copied from one clock to another
    Learning by copying a variable is easy. Learning to write out a variable you need yourself is a whole other part of this.

    if ( GrantLearning == true) {

    document.getElementById("HeDidItHimself");

    } else {
    document.getElementById("HeCopiedIt");}

    There's a lesson in that ^ as well

  38. The Following 3 Users Say Thank You to The_Durben For This Useful Post:

    azaleea (05-12-2013), KraXik (05-06-2013), RKO1195 (05-06-2013)

  39. #4600
    i am using schnedi´s iwidgest and they work fine in first order.
    they show up nicely.
    but the problem is, they they never update themselves.
    i set the update intervall to 15min, but they never update unless i press the manual update button.
    is there anything i am doing wrong?
    how can i track the issue?
    thanks

Page 230 of 365 FirstFirst ... 130 180 220228229230231232 240 280 330 ... LastLast
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •