Results 1 to 3 of 3

Thread: web browser

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2008
    Posts
    17

    web browser

    Hi there i have a problem. There is a page with more textboxes with same id and i want to fill them with text so i use

    Wb.Document.getElementById("add_comment_text").Value = Text2.Text

    the problem is this only fills only the first textbox and leaves the rest empty,how would i go about doing this? Can you post me some example

  2. #2
    Lively Member agent_007's Avatar
    Join Date
    Jan 2010
    Posts
    93

    Re: web browser

    Quote Originally Posted by tonck View Post
    Hi there i have a problem. There is a page with more textboxes with same id and i want to fill them with text so i use

    Wb.Document.getElementById("add_comment_text").Value = Text2.Text

    the problem is this only fills only the first textbox and leaves the rest empty,how would i go about doing this? Can you post me some example
    try to use name field if it has same id

    eg:
    Code:
    Html Code
    <input type=text id=text1 name=t1><input type=text id=text1 name=t2>
    vb code
    Code:
    Wb.Document.getElementById("t1").Value = Text2.Text
    Wb.Document.getElementById("t2").Value = Text2.Text

    Im Pro in C#,VB.NET,Batch,Socket Programming, SPY Software Programming, VB6, Win32Api, VBscript, Windows Registry, ASP.NET, PHP, Jquery, AJAX.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Aug 2008
    Posts
    17

    Re: web browser

    all my text boxes have same code look

    <textarea name="add_comment_text" class="add_comment_text DOMControl_placeholder" placeholder="Napiši komentar...">Napiši komentar...</textarea>

    <textarea name="add_comment_text" class="add_comment_text DOMControl_placeholder" placeholder="Napiši komentar...">Napiši komentar...</textarea>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width