PDA

Click to See Complete Forum and Search --> : getting Element id's from web page


kevin_sauerwald
May 31st, 2005, 09:47 AM
I want to make a VB program open a web page, enter in something in
a text box and hit return... I think I have a good example of how to do
this .. I just have no clue how to find out the element id of the text
box on this website... how do I get that.. is it buried in the source you
can view from IE ?? do I need to ask the webmaster.. ? there a way
to cycle through and print all from the site ??

help help help... any ideas ? :confused:

dj4uk
May 31st, 2005, 10:35 AM
Rather than filling out the form you can simulate the Http Request i.e. Simulate the form being submitted.

In other words you grab the URL the HTML form posts to (if you don't already know it) and submit the appropriate name-value pairs. You can then capture the response and do what you want with it.

Does that help at all?

DJ

kevin_sauerwald
May 31st, 2005, 12:38 PM
I think I was thinking that also and tried to spoof it but it did not work...

heres the main search url
http://XXX/customer/ecommerce/viewpsr.nsf/All+PSRs/$SearchForm?SearchView

I put in this
000000026117

it takes me to this

http://XXX/customer/ecommerce/viewpsr.nsf/d9fa5667abb773a785256d34002e1b16/e02053ea817abcb58525701100806ae2?OpenDocument&Highlight=0,*000000026117*

I put in KEVIN where the 000000026117 and it still takes me to the same page.. something must be encoded in the rest of the hash to take me
to the correct page.... granted I dont know much about URL hashing but I dont think I can spoof it