Auto-submit HTML Form using VB in Access 2007 -


i'm @ wit's end on one.

part of project i'm working on requires interaction html form bring correct page on external web-based tool. i've managed make form accept entered variables , generated on fly using document.write, haven't been able reliably trigger 'submit' action in way not throw off error 91.

so far, i've been using simple getelementbyid.click call... here's list of few things i've tried trigger:

testloop:    pause (1)    browsercontrol.document.getelementbyid("submit").click    on error goto testloop 

*(the 'error loop' tactic didn't work @ all.)

   pause (3)    browsercontrol.document.getelementbyid("submit").click 

(this works best, because different pcs might have different hardware specs , open applications might slow down, works me hasn't been working tester. if make long, end adding additional delay form i'm worried being slow.)

<script type="text/javascript">     window.onload = function(){      document.getelementbyid('submit').click();;     } </script> 

(embedding auto-trigger in generated html, frustratingly, works outside of embedded web browser control, not inside it.)

private sub wb_navigatecomplete2(byval pdisp object, url variant)   if me.browsercontrol.document.url= "about:blank"         browsercontrol.document.getelementbyid("submit").click  end if end sub 

(for insane reason, using debug.print found it's saying navigation complete before it's complete, didn't work @ all.)

i may have missed few... i've been attacking bunch of different angles. trick have use html form interact system don't have admin priveledges on, changing how information recieved isn't option.

my last train of thought see if mimic form submission using straight vb, bypassing need 'click' event, it's been exceptionally difficult search things related html form interactions access 2007 forms. :p

any assistance appreciated!

well, after 7 months of testing , thousands of activations in time, splitting 'work' seems have done trick.

form_open: initialises browser object , sets address about:blank

form_current: calls formula 'draws' web form using document.write, enters loop...

testloop:    browsercontrol.document.getelementbyid("submit").click    on error goto testloop 

Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -