Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

twebbrowser actions

Posted on 2001-06-12
8
Medium Priority
?
359 Views
Last Modified: 2012-06-21
in the past, i had a problem with the user-agent header item.
i needed to autentificate reqests from my browser, that the asp-s in our firma could determine, if they should answer (regular "asker" using our browser) or not (anybody else with any else browser)

i did it by using navigate2. there i can owerwrite the user-agent. i can not do that in onbeforenavigate, and that did problems by using frames.

now i check every url going thru the onbeforenavigate, if it has an mark (special parameter added by navigate2). if yes, the url is marked by our user agent and can navigate, or not and then i cancel the navigation and start a new one with the same url thru navigate2, using our useragent.


all seemd to be fine, but now i came to problem, when on the page is an buttton (submit or any other action-button)

for example, i have a page on wich is an radiobuttons group and the button submit.
submit will call the other asp, wich will write something to the db.
well if i look at that page thru our browser, and press the button, it will call the db-working-asp, but it will not pass the values to write to the db.

my question (after long time)  is:
can i in onbeforenavigate read the values sended thru action button and/or change it?
0
Comment
Question by:pistacer
  • 4
  • 4
8 Comments
 
LVL 6

Expert Comment

by:edey
ID: 6418532
Most forms encode that data into the url they send the server's cgi - you can then decode that from the string in the url OLEVariant parameter.

GL
Mike
0
 

Author Comment

by:pistacer
ID: 6420912
well, i looked to the url, :-))
it was the first place i searched.
i think, if there is not any other way of data transfer. some property in object webbrowser or document ... it will be some of MS-foul-tricks
0
 
LVL 6

Accepted Solution

by:
edey earned 480 total points
ID: 6484051
Well, I'm not sure how you can get this in a generic sense, but there may be an alternative.  In the OnBeforeNavigate you could search the document's DOM for the active element, parse up to the parent form, then enumerate all the children & get the data that way.

GL
Mike
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

by:pistacer
ID: 6487376
uff, that will may be function. i will check it, but it will take some days - it sounds lke to build the cathedral. but i think, it is really only possible way.

... but extremly complicated. (for me)
0
 
LVL 6

Expert Comment

by:edey
ID: 6487915
I was just rereading the question and I am wondering, you are needing this for .asp's on your server, so you don't need a sollution for _any_ web page with _any_ form - just yours?  If this is the case it might be alot easier to do that verification within the webpage.

GL
Mike
0
 

Author Comment

by:pistacer
ID: 6489497
well, offcourse, it should work for other pages too, but this browser is developed for our intranet and has some special capabilities for identifiying the user (we are using one connection for sap server for all users - do not ask me why).

and solving this problem would enable to me build a more simpler version of the browser.
0
 

Author Comment

by:pistacer
ID: 6647391
sorry for so late, i have not got myself to check it, but i think, that your solution is only one possible, so the points are yours!!!

thanks!!!
0
 
LVL 6

Expert Comment

by:edey
ID: 6647615
Glad to be of service :)

GL
Mike
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

877 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question