Baloven Posted October 28, 2007 Share Posted October 28, 2007 Help...How to appropriate value to an element (Login and passwd) of the html-form if the form has no name (exemple http://www.vgtrk.com/program/login.html)? Link to comment Share on other sites More sharing options...
Nevin Posted October 28, 2007 Share Posted October 28, 2007 Where's the form? I don't speak "@#%@VJJSVS" language. Link to comment Share on other sites More sharing options...
Baloven Posted October 28, 2007 Author Share Posted October 28, 2007 It is a village in Russian (CP-1251) on this page 2 of the form (in one form a line of search in the left column below, and in the second tabulared form in the center of page - two fields of input Login and passwd). Here also interests as to enter data into the second form at that that both forms have no names. source code form 1 in code "... <form method=GET action=/search.html> <td width=100%><img src="/i/b.gif" width="1" height="16" alt="" border="0"><br> <input type=text style="font-size: 9pt; fontsize: 8pt;" name=q size=12> <input type="submit" style="border-style: none; border: none; background-color: #ffffff; bgcolor: #ffffff; font-size: 9pt; fontsize: 8pt;" value="Искать"><br><img src="/i/b.gif" width="1" height="3" alt="" border="0"><br></td> </td></form> ...." Form 2 in site code "...... <table cellpadding="0" cellspacing="5" align="center" border="0" id="tblform"> <tr><th colspan=2>Вход</th></tr> <tr><form method=post name="f1"> <td><b>Login:</b><br></td> <td><input type="text" name="login" value=""><br></td> </tr> <tr> <td><b>Пароль:</b><br></td> <td><input type="password" name="passwd" value=""><br></td> </tr> <tr> <td><input type="submit" name="Log" value="Войти"><br> </td> <td align=right> <a href="password.html">Вспомнить пароль</a><br> </td> </form> </tr> </table> ...." Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted October 28, 2007 Share Posted October 28, 2007 I had a similar problem when i tried to press a button on a form without any name, you can read about it here, maybe that can help a bit, i dunno..... .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Nahuel Posted October 28, 2007 Share Posted October 28, 2007 (edited) I get the 404 error. (Page not found) and it takes me to some site in russian.I recommend you download DebugBar. It will make this a lot easier And, if I'm not wrong, you don't really need the name of the form as long as you have the names of the objects. Then you can use:$oUser =_IEGetObjByName($oIE,"login") $oPass =_IEGetObjByName($oIE,"passwd") $oSubmit = _IEGetObjByName($oIE, "log") _IEFormElementSetValue ($oUser, User Name) _IEFormElementSetValue ($oPass, 'my-password') _IEAction ($oSubmit, "click") Edited October 28, 2007 by Nahuel Link to comment Share on other sites More sharing options...
Nevin Posted October 28, 2007 Share Posted October 28, 2007 (edited) mmm, yeah I was going to try and find those for him but I couldn't navigate a site in Russian haha. Debugbar definitely helps, as the other guy said. Edited October 28, 2007 by Nevin Link to comment Share on other sites More sharing options...
Baloven Posted October 28, 2007 Author Share Posted October 28, 2007 Thanks Nahuel is that that is necessary, only User Name in inverted commas it is necessary to conclude:) Link to comment Share on other sites More sharing options...
Nahuel Posted October 28, 2007 Share Posted October 28, 2007 Thanks Nahuel is that that is necessary, only User Name in inverted commas it is necessary to conclude:)I don't understand :"> 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