and use the upload command in the program called "uplad thing" it will not work and will crash rb.
Jut figured I would let you know.
Check out the code wiki at http://smbisoft.com[br]The code wiki allows for multiple users to work on the same project at the same time in just basic.[br][br]SMBISoft ____888-LAN-Zoli _____ 888-526-9654
Post by StefanPendl on Sept 9, 2012 4:19:08 GMT -5
If I remember correctly, this has already been reported, but thanks for the reminder.
[b]Stefan[/b] - [a href=http://stefanpendl.runbasichosting.com/]Homepage[/a][br][br][b]Please give credit if you use code I post, no need to ask for permission.[/b][br][br]Run BASIC 1.01, Fire-/Waterfox (IE11, Edge), Windows 10 Professional x64, Intel Core i7-4710MQ 2.5GHz, 16GB RAM
Since the Upload does not work in the program that was run, the trick is to run the code in the main program. You can pass data in the UserInfo$. You can hide a button in the main program that you do not see, but the RUNNED programs can get to it. This makes it possible to run code in the main RUNNITG program. You basically click a hidden, or visible if you like, [button] in the main program from your RUNNED program. Plus you only have one set of code to do uploads in all your RUNNED programs. I also use this method for code that is repeated in many RUNNED programs so I only have one set of code for the system.
It works for me. Something similar to this should work:
'==================================== 'in the main program
w = (photoWide / photoHigh) * 200 ' This puts the photoId, width etc back into <input values in the RUNNED program html "<script> document.getElementById('photoId').value = '";photoId$;"';</script>" html "<script> document.getElementById('photoWide').value = '";photoWide$;"';</script>" html "<script> document.getElementById('photoHigh').value = '";photoHigh$;"';</script>" html "<script> document.getElementById('photo').innerHTML = '" html "<IMG SRC=";photoPath$;photoId$;" width=";w;">" html "';</script>" wait
'================================= ' in the runned program
button #upld, "Upload Maintenance",[doUpload] #upld setid("upldMe") html "<script>document.getElementById('upldMe').name = document.getElementById('upload').name;</script>"
Last Edit: Sept 9, 2012 11:07:33 GMT -5 by meerkat