|
upload
Jul 27, 2008 21:10:19 GMT -5
Post by kokenge on Jul 27, 2008 21:10:19 GMT -5
Took me a little while to figure this out. The first time I run this it logs out of Run Basic. Then I'd run it again and it works. Took me some time to figure out it only fails the first time? html "<TABLE BORDER=1 CELLPADDING=0 CELLSPACING=0>" html "<TR><TD COLSPAN=2 BGCOLOR=#FFCC99 ALIGN=CENTER>Generate RB Maint Code</TD></TR>" html "<TR align=center><TD BGCOLOR=#FFCC99>" upload "Select a DB file"; dbFile$ html "</TD</TR></TABLE>" wait
|
|
|
upload
Jul 30, 2008 14:02:34 GMT -5
Post by turbov21 on Jul 30, 2008 14:02:34 GMT -5
I could be wrong, but I think once RB gets to the "upload" command, much like "input" it waits for you to do something on the client-side. Putting the table-closing tags and "wait" after it may be your problem.
|
|
|
upload
Jul 30, 2008 14:14:52 GMT -5
Post by votan on Jul 30, 2008 14:14:52 GMT -5
I have no problems running your code here..... works instantly.
|
|
|
upload
Jul 30, 2008 17:36:56 GMT -5
Post by kokenge on Jul 30, 2008 17:36:56 GMT -5
Just tried it again and replaced the "wait" with "print dbFile$" and still get the same error. It's strange. If you run it from a fresh launch of Run Basic and have the Run Full Screen checked, Select a file from [Browse] and click [Upload], you get this error.
Debug Full Stack Message not understood: #fileName
* ByteString(Object)>>doesNotUnderstand:
self 'backend.php' temps t1 a Message with selector: #fileName and arguments: #() t2 a MessageNotUnderstood t3 nil
Running with Full Screen Checked and a fresh launch of RunBasic; If you don't select a file and select [Upload] it will print nothing. And that is correct. Run it a second time with a file selected from the [Browse] and select [Upload], it works and prints the file you selected. That is also correct.
However from a fresh launch of RunBasic (beta 2), Full Screen checked, select a file from the [Browse] and click [Upload] you get the above error. You can hit the back arrow to get back to the code and run it again, and it works.
Have a great day Dan
|
|
|
upload
Jul 30, 2008 18:10:12 GMT -5
Post by votan on Jul 30, 2008 18:10:12 GMT -5
Oh, yeah.... now I see your problem (missed it at first try). Really seems like a bug..... upload also fails when not in fullscreen mode after fresh start of RB. After that it always works fine.. just the initial upload after a fresh start always fails. Strange thing is, even if you use your browsers "back"-button to go to the first page after a second successfull upload, it will fail again (the initial page right after the login where the code got launched first and failed... so returning to this page always fails the upload, no matter how many successfull upload were done after the initial one)
|
|
|
upload
Jul 30, 2008 19:24:06 GMT -5
Post by mackrackit on Jul 30, 2008 19:24:06 GMT -5
Try changing dbFile$ to file$ at the end of the upload command. That seemes to to the trick here. And I was using vista this time
|
|
|
upload
Jul 30, 2008 20:16:04 GMT -5
Post by kokenge on Jul 30, 2008 20:16:04 GMT -5
Same old error with file$. Shouldn't matter what variable I use. I'm looking into writing my own client-side file browser. Anyone have something already written ?? Dan
|
|
|
upload
Jul 31, 2008 5:42:31 GMT -5
Post by mackrackit on Jul 31, 2008 5:42:31 GMT -5
It sure looked like changing the variable was some how making a differance. Now I am playing with it again and it does not.
Your code as posted works with the v1.0 Build 2.33h version but neither of the betas.
I have not used the upload widget with the betas up to now. The straight widget is not working with the betas either.
Using XP Pro.
|
|