ok, here is the problem. Very tricky. I'm filling out a web form using VS2008 VB and the tricky thing about it is that he actual id="username" is different for both text boxes on the site, but ones name= is the same as the others id= and when I'm trying to send text to it, its sending to the wrong text box. The code i'm using of course is this:
Here is part of the html code that matters:Code:WebBrowser1.Document.GetElementById("loginUsername").InnerText = ("yeeeeeeeeeee")
They are both on the same page and just in case you need to go see the page for your self, its the youtube account setup page after you enter in a gmail account in the log in screen but don't have an account yet.Code:<tr valign="top"> <td class="loginFormLabel"><label for="username"> <span class="nowrap">Username:</span> </label></td> <td class="formFieldSmall"> <table border="0" cellpadding="2" cellspacing="0"> <tr> <td valign="top"> '!!!!this is the first text box, the one that im wanting to send the text to!!!!!!!!! <input type="text" size="40" maxlength="20" id="username" name="username" value="" onload="clearUsernameStatus()" onchange="updateUsernameStatus()" onKeyUp="clearUsernameStatus() ;updatePasswordStrength();top.goog.i18n.bidi. setDirAttribute(event,this);"/> <div id="check_username"></div> <div class="formFieldInfo"> '!!!!!!!!!!Text box that it is sending the text to that I don't want it sending to. <td><input id="loginUsername" type="text" size="20" name="username" value="" onkeydown="handleSignInInput(event);"></td>
I'm so stumped on this, I have tired and tired and tired and i'm stuck. on something so small lol. someone out there please help if you can. Thank you so much.


Reply With Quote
