|
-
Jul 1st, 2008, 07:37 AM
#1
Thread Starter
Hyperactive Member
How do i find submit button hit in web browser
Hi all,
I want to count the hits of submit buttons from the web browser,
I wont use any hit-counters in the web page, because i'm not able to access server side code for the same.
I want to prepare a application for the same and needs to know the count of hits in the web pages.
Thanks..
-
Jul 1st, 2008, 08:54 AM
#2
Re: How do i find submit button hit in web browser
How many times and threads are you going to open and ask this same exact question. I know for a fact that I at least responded to this question in one of your other threads.
-
Jul 2nd, 2008, 07:58 AM
#3
Thread Starter
Hyperactive Member
Re: How do i find submit button hit in web browser
Hi
Thanks for your reply, but still it not resolved.
Ok i have one way to solve it, its possible to monitor the Hits of any buttons by using a WinRunner and it will record all the function of the user, so is it possible to do with that.
I want to make it with the winrunner and i need to store the data in the database with the count and need to interact the winrunner from my vb application. Do you have any idea on it. If you have anything regarding this let me know.
and if you have any tools like winrunner give the link to download it.
Thanks again.
-
Jul 2nd, 2008, 08:51 AM
#4
Re: How do i find submit button hit in web browser
If you look back at your other threads where I posted I believe my method would definetely work since I even tried it myself.
http://www.vbforums.com/showthread.p...62#post3269762 post #4
Last edited by jmsrickland; Jul 2nd, 2008 at 08:55 AM.
-
Jul 3rd, 2008, 09:04 AM
#5
Thread Starter
Hyperactive Member
Re: How do i find submit button hit in web browser
Hi,
I tried the same what you sent in that post, but some times it getting count as 2 or more only, if the count value is greater than 70 then the counts may increase as 3 to 5. Not as 1 by 1. so please check this and tel me.
-
Jul 3rd, 2008, 10:54 AM
#6
Re: How do i find submit button hit in web browser
All I can tell you is that everytime you go to a web page it fires your WebBrowser1_DocumentComplete Event. In this event you need to check if the URL is different from the previous URL's. If it isn't then don't count it but if it is different then count it.
Let say you have an array that holds the URL's. Now, the first time you go to a page your _DocumentComplete event is entered. Now, compare the URL from the input argument with what you have in your array. On the first time your array will have nothing so you know to add this URL to the array. Now let's say that on that page there is a link. You click the link. Again it enters the _DocumentComplete event. Again you compare this URL with what you have in the array. The only URL in the array is from the first time so when you make the compare with the array you will find that this is a new URL so add it to your array. Now let's say you return back to the first URL and again it enters the _DocumentComplete event. This time when you compare the URL with what you have in the array you will find a match. So, you know that this page has already been accounted for so you do not add this URL to the array.
The basic is this: If the URL (from the argument list of the _DocumentComplete sub) is not in the array you add it to the array and if it is in the array you do not add it again. The number of entries in the array is your count value that you need.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|