Solved

twebbrowser actions

Posted on 2001-06-12
8
352 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
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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.

 

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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Suggested Solutions

Title # Comments Views Activity
proper way to parse text with delphi 7 137
Using idhttp to login to instagram 2 106
PHP preg_replace code convert to Delphi 14 66
firemonkey keyboard covers the controls 1 37
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

790 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