Nov
28
awarded Nice Question
Nov
27
awarded Supporter
Nov
27
comment Is there a better way to write this "if" boolean evaluation?
Ah of course! It is now obvious to me! for some reason I had it in my head I must evaluate between the number with the AND statement. Thanks for the clarification. Ideally, I would have used a switch/case statement if I was using c++. Much cleaner. So goes it. I will check out the link.
Nov
27
accepted Is there a better way to write this "if" boolean evaluation?
Nov
27
comment Is there a better way to write this "if" boolean evaluation?
Ah that is an interesting tidbit I did not know about Pyhton. thanks!
Nov
27
asked Is there a better way to write this "if" boolean evaluation?
Aug
3
comment Persist browser client javascript/HTML data without cookies
one last thing.... there is probably a cleaner way to do what I did but with less code, but I did not know how. If someone who knows wants to provide this... great!
Aug
3
revised Persist browser client javascript/HTML data without cookies
found a solution that works.
Aug
3
accepted Persist browser client javascript/HTML data without cookies
Aug
1
comment Persist browser client javascript/HTML data without cookies
OK guys.... I don't think this will work, because localstorage does not save a file. its only in memory. perhaps I did not explain clearly. upon first launch of webpage, it loads default variables. If i leave the page and come back, I want it to remember the changes I did previously and fill in the fields. but as it is written now, every time the page loads it reloads the default values! I can't set a "first time" flag because it would always default to the init value. Seems the only way around this is upon loading the site I read a file, or a cookie. Help me out here! I don't see it.
Aug
1
comment Persist browser client javascript/HTML data without cookies
I'll give this method a try and get back to you on if it works for me. Thanks!
Aug
1
comment Persist browser client javascript/HTML data without cookies
have any of you actually used localstorage method? Are you sure it will be persistant without me having to setitem before I leave the page? so what you are saying is I have to have a function that is like a Onlosefocus that calls the setItem property for all my 19 variables.
Aug
1
comment Persist browser client javascript/HTML data without cookies
I don't know how to do either one of your suggestions.... sorry, Newby here. I'm not a web developer. I come from a C/C++ world. Thus the reason I posted the question here. Hoping you experts could show me the way...
Aug
1
comment Persist browser client javascript/HTML data without cookies
is LocalStorage a javascript method or a Python? and what happens when I lose focus of the page. Meaning I leave the page and then click back to it. This localStorage is not dinamic is it? Meaning don't I have to call it to update the variables before I leave the page each time?
Aug
1
revised Persist browser client javascript/HTML data without cookies
added 119 characters in body
Aug
1
comment Persist browser client javascript/HTML data without cookies
did I misspell help??? crazy, Its been a long frustrating day. Thanks for correcting it. :)
Jul
31
asked Persist browser client javascript/HTML data without cookies
Jun
8
revised finding my py modules in sub folders, from the main application working dir
edited title
Jun
8
comment finding my py modules in sub folders, from the main application working dir
good advise, but I'm not getting a solution out of this conversation. This project has over 20 .py files, the previous owner of these files, used the os.chdir() 22 times! yes, he was jumping all over the place. I'm just trying to clean it up some so the code does not need to jump from folder to folder. crazy! how can I just give it an explist path? and have it find the bin folder? sorry I am ignorant. I don't know Linux much and I don't know python much.
Jun
8
comment finding my py modules in sub folders, from the main application working dir
I guess I have not been clear. yes, the code (you call it my libraries) reside in a sub folder called /bin. but the main app.py resided one folder up. In the /bin folder, I create several "temp" files using f = open(filename). Then late I open them to parse data, and then delete the files. Sometimes the application errors when it can't find the temp files to open. Somehow it does not know they reside in the sub-folder of /bin.
1 2 3