Solved

twebbrowser actions

Posted on 2001-06-12
8
349 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
 

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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

759 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

21 Experts available now in Live!

Get 1:1 Help Now