Solved

twebbrowser actions

Posted on 2001-06-12
8
355 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

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…
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…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses
Course of the Month4 days, 23 hours left to enroll

636 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