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 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>"
[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
Intel Core2 QUAD CPU @2.54 x 4 Mint Linux 19.3 Mate
I use a HTML editor and create the form I want and display it on the browser. Once you like what you see, you can simply edit the HTML document and create the RB HTML statements. If the RB HTML code is giving you errors change the HTML statement to PRINT so you can see exactly what it is sending to the browser. If you still have problems, copy what is printed into a HTML editor and let it find the problem..
Just toooo much fun. I'm now bare foot in the casinos..