Results 1 to 5 of 5

Thread: if exsist on webpage....

  1. #1

    Thread Starter
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Unhappy

    Does anyone know is there is a way to check if something is in the html...A text field named userid...exsists?
    I know you can grab the HTML and scan through it but i wondered if there was an easier way.

    webbrowser.document.forms(0).userid.?????? Exsist!
    help PLEASE!

    Thanks!

  2. #2
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    I guess I'm missing the point. If your generating the html, can't you determine on the server side whether or not it *will* exist and Response.Write client side code declaring and setting a flag for your other client side script?

    In what situations would it not exist? A little more detail is needed in order to help you I think.
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  3. #3
    Lively Member
    Join Date
    May 2000
    Location
    Canada
    Posts
    70

    I'd like to know also.

    For instance, what if I have a number of html pages
    calling one asp page. But, each of these html pages
    have different input type/names/values.
    For instance I could have one html page where I allow the
    user to enter a Date and Time while another only
    allows a Date and a time of 0:00:00 is assumed.
    Therefore, when the asp page receives the request it
    needs to find out if the html page calling it has a
    time textbox or not.

    I suppose I could create a hidden input type of
    "time" on this 2nd html page with a constant value
    of 00:00:00.
    But is there another way?


  4. #4
    New Member
    Join Date
    Oct 2000
    Posts
    3
    If Request("Time") = "" then
    strTime = "00:00:00"
    else
    strTime = Request("Time")
    end if

    Is that what you are asking? I don't get what you are asking for exactly.

  5. #5

    Thread Starter
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Question

    No..I am making a Browser...I want it to "see" when it comes across a form with a login named userid. Then when it "sees" it to fill it in.

    Thanks

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