inherit
201984
0
Sept 11, 2023 1:23:07 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓
Using My Talents Elsewhere
3,314
November 2013
pastuleo23
|
Post by P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ on Apr 28, 2016 11:42:58 GMT -8
Okay so is this right or have I messed something up somewhere (it's working but) $('#unapp').append('<input type="checkbox"
disabled="disabled" checked="checked"
id="'+pb.plugin.get('to_do_list').settings.unapp_chkbox[a].checkbox_id+'"class="checkboxy"value="'+pb.plugin.get('to_do_list').settings.unapp_chkbox[a].checkbox_label+'" ><label for="'+pb.plugin.get('to_do_list').settings.unapp_chkbox[a].checkbox_id+'">'+pb.plugin.get('to_do_list').settings.unapp_chkbox[a].checkbox_label+'<br /></label></form>'); } just add 'checked' and 'disabled' to the html here on the right box depending on the id of the box found in the .get() of the key Boy_Wonder this would be how you do it, but your are probably going to have to make those two into variables so that they can be modified
|
|
inherit
201984
0
Sept 11, 2023 1:23:07 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓
Using My Talents Elsewhere
3,314
November 2013
pastuleo23
|
Post by P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ on Apr 29, 2016 7:35:03 GMT -8
|
|
inherit
Peabrained Codebreaker
107114
0
Mar 11, 2020 7:47:27 GMT -8
Boy_Wonder
6,249
July 2007
natzy24
|
Post by Boy_Wonder on Apr 29, 2016 7:37:47 GMT -8
Slow as I don't know what xD I understand how to set variables, I don't understand how to tell them to appear when a key is get Then again I don't understand how to tell the key to 'get' the information stored and use that to tell what data needs checking
|
|
inherit
201984
0
Sept 11, 2023 1:23:07 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓
Using My Talents Elsewhere
3,314
November 2013
pastuleo23
|
Post by P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ on Apr 29, 2016 8:38:29 GMT -8
var theKey = pb.plugin.key('named_key').get()
|
|
inherit
Peabrained Codebreaker
107114
0
Mar 11, 2020 7:47:27 GMT -8
Boy_Wonder
6,249
July 2007
natzy24
|
Post by Boy_Wonder on Apr 29, 2016 9:03:37 GMT -8
Okay so I understand how it works as in that you've set a variable called theKey and told it to get the plugin...
but I don't get how to use the information the variable contains (beyond what I already know about variables being used to hold data)
|
|
inherit
201984
0
Sept 11, 2023 1:23:07 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓
Using My Talents Elsewhere
3,314
November 2013
pastuleo23
|
Post by P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ on Apr 29, 2016 9:28:31 GMT -8
Okay so I understand how it works as in that you've set a variable called theKey and told it to get the plugin... but I don't get how to use the information the variable contains (beyond what I already know about variables being used to hold data) Well now the variable contains whatever you set it to previously. So if it's not set before it contains undefined. undefined or null means that it's COMPLETELY empty. To the point that the key "Doesn't Exist" YET So whenever you call .set() you are storing the variable. Based on your code pb.plugin.key('ToDoListKey').set({ value:{'box1':1} /*This also saves the key!*/ theKey would be theKey = {'box1':1} which is an object So if we want to know what value box1 has we would do value = theKey.box1 now value = 1
|
|
inherit
201984
0
Sept 11, 2023 1:23:07 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓
Using My Talents Elsewhere
3,314
November 2013
pastuleo23
|
Post by P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ on Apr 29, 2016 9:31:18 GMT -8
are you confused about key data versus local variables? cause basically pb.plugin().set(value:adfasfdasdf) is a fancy way for proboards to call it an equal sign like.... pb.plugin().set( is their setup value is their variable : is their equals sign adfasdasdf is our value
|
|
inherit
Peabrained Codebreaker
107114
0
Mar 11, 2020 7:47:27 GMT -8
Boy_Wonder
6,249
July 2007
natzy24
|
Post by Boy_Wonder on Apr 29, 2016 10:02:27 GMT -8
That makes more sense now! Will it still work okay with what we've done (or tried to do) to make it gain information dynamically
|
|
inherit
201984
0
Sept 11, 2023 1:23:07 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓
Using My Talents Elsewhere
3,314
November 2013
pastuleo23
|
Post by P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ on Apr 29, 2016 11:17:03 GMT -8
That makes more sense now! Will it still work okay with what we've done (or tried to do) to make it gain information dynamically I don't see why not.
|
|
inherit
Peabrained Codebreaker
107114
0
Mar 11, 2020 7:47:27 GMT -8
Boy_Wonder
6,249
July 2007
natzy24
|
Post by Boy_Wonder on Apr 30, 2016 11:12:30 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ - do you have skype? Just I keep hating feeling like I'm being so stupid because I still don't get 'how' to do it and I daren't do anything because I don't want to break what I've got until I understand what I'm doing
|
|
inherit
201984
0
Sept 11, 2023 1:23:07 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓
Using My Talents Elsewhere
3,314
November 2013
pastuleo23
|
Post by P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ on Apr 30, 2016 12:48:34 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ - do you have skype? Just I keep hating feeling like I'm being so stupid because I still don't get 'how' to do it and I daren't do anything because I don't want to break what I've got until I understand what I'm doing should be my email
|
|
inherit
201984
0
Sept 11, 2023 1:23:07 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓
Using My Talents Elsewhere
3,314
November 2013
pastuleo23
|
Post by P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ on May 6, 2016 0:03:00 GMT -8
|
|
inherit
Peabrained Codebreaker
107114
0
Mar 11, 2020 7:47:27 GMT -8
Boy_Wonder
6,249
July 2007
natzy24
|
Post by Boy_Wonder on May 6, 2016 0:03:48 GMT -8
Almost! I'm just working on the daily part xD.
You were really helpful with one part, now I'm just trying to see where I went wrong on another part
|
|