Click to See Complete Forum and Search --> : if exsist on webpage....
Static
Oct 20th, 2000, 03:24 PM
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!
monte96
Oct 20th, 2000, 03:30 PM
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.
rlb_wpg
Oct 20th, 2000, 04:01 PM
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?
Myph
Oct 20th, 2000, 04:06 PM
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.
Static
Oct 20th, 2000, 08:33 PM
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
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.