Solved

twebbrowser actions

Posted on 2001-06-12
8
351 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 120 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

813 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now