Clear an IFRAME
Apr 22, 2017 19:36:48 GMT -5
Post by metro on Apr 22, 2017 19:36:48 GMT -5
I may have exhausted my limit of dumb question but I'll try one more
this code is a cut down version of my main program
I cannot understand why I cant get past the iframe.
if I rem out the two lines for the iframe the program will drop through to [capture] once the button is clicked
but leave the two line in and the program drops to a new login to Runbasic
any help appreciated
this code is a cut down version of my main program
I cannot understand why I cant get past the iframe.
if I rem out the two lines for the iframe the program will drop through to [capture] once the button is clicked
but leave the two line in and the program drops to a new login to Runbasic
any help appreciated
if Platform$="unix" then
slash$="/"
else
slash$="\"
end if
global data2save$
dim Opt$(1000)
Month$="May"
Year$="2017"
print "right click web page"
print "choose 'select all'"
print " right click again"
print "choose copy"
button #step1, "After Copy Press here", [capture]
print:print
url2find$="http://www.asx.com.au/asx/markets/optionPrices.do?by=underlyingCode&underlyingCode=xjo&expiryDate="+Month$+"+"+Year$+"&optionType=B"
html "<div id='IFR' ALIGN=RIGHT><IFRAME SRC="+url2find$+" WIDTH=80% HEIGHT=600 ></div>"
print
wait
[capture]
CLS
button #doStuff, "Paste data then press Button ", [savethefile]
textarea #t, "",200,60
#t setfocus()
wait
[savethefile]
data2save$ = #t contents$()
'call tableselect ' extract table info and create csv format for Sqlite
#t text("")
CLS
open DefaultDir$ + slash$+"public"+slash$+"test.txt" for output as #f
print #f, data2save$
close #f
wait