t0bias Posted November 11, 2008 Share Posted November 11, 2008 hey, im playing around with ff.au3 and set up a simple test script that just fills in 2 form input fields and submits it and it keeps telling me: !!! TypeError: content.frames.top.document.formLogin is undefined problem here is that the two input fields get filled but the submit fails with that error BUT when i manually test if the form exists by just copying the "undefined" DOM path into the url bar like java script:content.frames.top.document.formLogin.submit(); and it enter - it submits the form - means there is no error... im kinda confused here... anyone? Link to comment Share on other sites More sharing options...
dbzfanatic Posted November 11, 2008 Share Posted November 11, 2008 The fact that it is javascript complicates things. IE has similar errors when a javascript event is called to submit. Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
t0bias Posted November 12, 2008 Author Share Posted November 12, 2008 The fact that it is javascript complicates things. IE has similar errors when a javascript event is called to submit.no. its not javascript. its plain html.i just triggered the submit over javascript manually to check if the error dom path is wrong and its okay but ff.au3 tells me its undefined. Link to comment Share on other sites More sharing options...
t0bias Posted November 13, 2008 Author Share Posted November 13, 2008 <form id="formLogin" name="formLogin" action="/login.html" method="post"> <input id="username" name="username" tabindex="1" type="text" value="" maxlength="50" /> <input id="password" name="password" tabindex="2" type="password" value="" maxlength="30" /> <div id="signinBtnDiv"><a href="#" tabindex="3" id="signinBtn"><span>Sign In</span></a></div> </form> thats the html i try to fill and submit and i cant get it working with the _FFFormSubmit() function - any other suggestions? can i for example execute javascript? because like i said - with javascript i could just trigger the formLogin.submit(); thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now