472,800 Members | 1,180 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,800 software developers and data experts.

populate browser-page controls on client-side

is it possible to write a vb.net code (intended to run on the client-side)
that would invoke an instance of IE, have it download a page from a certain
URL, and then pre-populate some of the controls on that page, before
transferring focus to the browser-page and showing it to the user? (the
user would be responsible for submitting the page.)
Nov 20 '05 #1
5 1840
javascript:window.open(....) -> prepopulate the new page on the server side
ie use an aspx page.

remember that even though asp.net is far smarter than the older cgi apps,
all processing is done server side. Anything that is required on the client
side, you will need to do with client side script

Jody
MCSD.Net

"John A Grandy" <johnagrandy-at-yahoo.com> wrote in message
news:O9**************@TK2MSFTNGP11.phx.gbl...
is it possible to write a vb.net code (intended to run on the client-side)
that would invoke an instance of IE, have it download a page from a certain URL, and then pre-populate some of the controls on that page, before
transferring focus to the browser-page and showing it to the user? (the
user would be responsible for submitting the page.)

Nov 20 '05 #2
Hi Jody. Thanks for the response.

I think perhaps you misunderstood my question.

What I am attempting to do *can not* involve server-side code nor
client-side script .... I have no control over the coding of the
web-application.

I need to write a client-side executable in VB.NET that emulates actions a
user would manually perform when interacting with a browser-page.

This VB.NET EXE would triggers download of a web-page (from a specific URL)
into a browser, then populate some of the controls on the browser-page, but
not submit the page -- just pass it over to the end-user so that they can
finish populating the other controls and submit it themselves.

"Jody Fisher" <jf*****@claytonutz.com.dontspamme> wrote in message
news:Oz**************@TK2MSFTNGP12.phx.gbl...
javascript:window.open(....) -> prepopulate the new page on the server side ie use an aspx page.

remember that even though asp.net is far smarter than the older cgi apps,
all processing is done server side. Anything that is required on the client side, you will need to do with client side script

Jody
MCSD.Net

"John A Grandy" <johnagrandy-at-yahoo.com> wrote in message
news:O9**************@TK2MSFTNGP11.phx.gbl...
is it possible to write a vb.net code (intended to run on the client-side) that would invoke an instance of IE, have it download a page from a

certain
URL, and then pre-populate some of the controls on that page, before
transferring focus to the browser-page and showing it to the user? (the
user would be responsible for submitting the page.)


Nov 20 '05 #3
That does sound like a lot of fun....

OK so if we are working in a vb windows app. obviously the first thing that
you will want to do is open your initial page in a web browser control (you
can keep it hidden at first if you want). I must assume that you know what
fields you want to populate... I am pretty certain that you can just do
something like wbrowser1.document.getElementById("...").value = "test"

The only problem that I can see is that there may be permission issues -
this is generally the case when working with cross site frames etc. so you
may have to actually download and save the file to the hard drive first??

Give it a try a let me know how you go...

Cheers
Jody

"John A Grandy" <johnagrandy-at-yahoo.com> wrote in message
news:u5*************@TK2MSFTNGP10.phx.gbl...
Hi Jody. Thanks for the response.

I think perhaps you misunderstood my question.

What I am attempting to do *can not* involve server-side code nor
client-side script .... I have no control over the coding of the
web-application.

I need to write a client-side executable in VB.NET that emulates actions a
user would manually perform when interacting with a browser-page.

This VB.NET EXE would triggers download of a web-page (from a specific URL) into a browser, then populate some of the controls on the browser-page, but not submit the page -- just pass it over to the end-user so that they can
finish populating the other controls and submit it themselves.

"Jody Fisher" <jf*****@claytonutz.com.dontspamme> wrote in message
news:Oz**************@TK2MSFTNGP12.phx.gbl...
javascript:window.open(....) -> prepopulate the new page on the server

side
ie use an aspx page.

remember that even though asp.net is far smarter than the older cgi apps,
all processing is done server side. Anything that is required on the

client
side, you will need to do with client side script

Jody
MCSD.Net

"John A Grandy" <johnagrandy-at-yahoo.com> wrote in message
news:O9**************@TK2MSFTNGP11.phx.gbl...
is it possible to write a vb.net code (intended to run on the

client-side) that would invoke an instance of IE, have it download a page from a

certain
URL, and then pre-populate some of the controls on that page, before
transferring focus to the browser-page and showing it to the user? (the user would be responsible for submitting the page.)



Nov 20 '05 #4
Hmmm ... interesting ...

So VB.NET code can be written to populate objects exposed by the DOM of a
browser-page ...

So would such a control population display instantly? I assume that the
actual web-page file is not being altered, so no point triggerring a
refresh-from-cache ...

"Jody Fisher [MCSD.Net]" <jf*****@claytonutz.com.dontspamme> wrote in
message news:O5**************@TK2MSFTNGP11.phx.gbl...
That does sound like a lot of fun....

OK so if we are working in a vb windows app. obviously the first thing that you will want to do is open your initial page in a web browser control (you can keep it hidden at first if you want). I must assume that you know what fields you want to populate... I am pretty certain that you can just do
something like wbrowser1.document.getElementById("...").value = "test"

The only problem that I can see is that there may be permission issues -
this is generally the case when working with cross site frames etc. so you may have to actually download and save the file to the hard drive first??

Give it a try a let me know how you go...

Cheers
Jody

"John A Grandy" <johnagrandy-at-yahoo.com> wrote in message
news:u5*************@TK2MSFTNGP10.phx.gbl...
Hi Jody. Thanks for the response.

I think perhaps you misunderstood my question.

What I am attempting to do *can not* involve server-side code nor
client-side script .... I have no control over the coding of the
web-application.

I need to write a client-side executable in VB.NET that emulates actions a
user would manually perform when interacting with a browser-page.

This VB.NET EXE would triggers download of a web-page (from a specific

URL)
into a browser, then populate some of the controls on the browser-page,

but
not submit the page -- just pass it over to the end-user so that they can finish populating the other controls and submit it themselves.

"Jody Fisher" <jf*****@claytonutz.com.dontspamme> wrote in message
news:Oz**************@TK2MSFTNGP12.phx.gbl...
javascript:window.open(....) -> prepopulate the new page on the server

side
ie use an aspx page.

remember that even though asp.net is far smarter than the older cgi

apps, all processing is done server side. Anything that is required on the

client
side, you will need to do with client side script

Jody
MCSD.Net

"John A Grandy" <johnagrandy-at-yahoo.com> wrote in message
news:O9**************@TK2MSFTNGP11.phx.gbl...
> is it possible to write a vb.net code (intended to run on the

client-side)
> that would invoke an instance of IE, have it download a page from a
certain
> URL, and then pre-populate some of the controls on that page, before
> transferring focus to the browser-page and showing it to the user? (the > user would be responsible for submitting the page.)
>
>



Nov 20 '05 #5
Not sure how instantly it would happen, but if you weren't entering too much
data, it should be quick enough for the user not to notice. VB.Net has all
the functionality plus more compared to something like vb6 - remember that a
lot of the complex functions that we used call up were simply COM controls
or libraries, these are still available if you need them through the
marshalling libraries in .NET

The other other option is to look at reading the DOM tree and retrieving the
field names then using inet or something to actually post the form data to
the site? - not quite as messy and may work a bit better.

Jody
"John A Grandy" <johnagrandy-at-yahoo.com> wrote in message
news:#g**************@TK2MSFTNGP10.phx.gbl...
Hmmm ... interesting ...

So VB.NET code can be written to populate objects exposed by the DOM of a
browser-page ...

So would such a control population display instantly? I assume that the
actual web-page file is not being altered, so no point triggerring a
refresh-from-cache ...

"Jody Fisher [MCSD.Net]" <jf*****@claytonutz.com.dontspamme> wrote in
message news:O5**************@TK2MSFTNGP11.phx.gbl...
That does sound like a lot of fun....

OK so if we are working in a vb windows app. obviously the first thing that
you will want to do is open your initial page in a web browser control

(you
can keep it hidden at first if you want). I must assume that you know

what
fields you want to populate... I am pretty certain that you can just do
something like wbrowser1.document.getElementById("...").value = "test"

The only problem that I can see is that there may be permission issues -
this is generally the case when working with cross site frames etc. so

you
may have to actually download and save the file to the hard drive first??

Give it a try a let me know how you go...

Cheers
Jody

"John A Grandy" <johnagrandy-at-yahoo.com> wrote in message
news:u5*************@TK2MSFTNGP10.phx.gbl...
Hi Jody. Thanks for the response.

I think perhaps you misunderstood my question.

What I am attempting to do *can not* involve server-side code nor
client-side script .... I have no control over the coding of the
web-application.

I need to write a client-side executable in VB.NET that emulates actions a user would manually perform when interacting with a browser-page.

This VB.NET EXE would triggers download of a web-page (from a specific

URL)
into a browser, then populate some of the controls on the
browser-page,
but
not submit the page -- just pass it over to the end-user so that they

can finish populating the other controls and submit it themselves.

"Jody Fisher" <jf*****@claytonutz.com.dontspamme> wrote in message
news:Oz**************@TK2MSFTNGP12.phx.gbl...
> javascript:window.open(....) -> prepopulate the new page on the

server side
> ie use an aspx page.
>
> remember that even though asp.net is far smarter than the older cgi

apps,
> all processing is done server side. Anything that is required on the client
> side, you will need to do with client side script
>
> Jody
> MCSD.Net
>
> "John A Grandy" <johnagrandy-at-yahoo.com> wrote in message
> news:O9**************@TK2MSFTNGP11.phx.gbl...
> > is it possible to write a vb.net code (intended to run on the
client-side)
> > that would invoke an instance of IE, have it download a page from a > certain
> > URL, and then pre-populate some of the controls on that page, before > > transferring focus to the browser-page and showing it to the user?

(the
> > user would be responsible for submitting the page.)
> >
> >
>
>



Nov 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Don | last post by:
Is there some way to populate the "Browse" box for a <input type=file...> with a default value? I can do it for <input type=text...>, but can't seem to do it for <input type=file...>. Any ideas?...
7
by: Sharon | last post by:
I have successfully loaded a DataSet object with a XML schema (XSD). Now I wish to populate the tables that was created in the DataSet. I have an XML file/string that contain all the needed data...
4
by: Mike L | last post by:
I'm open for any suggestions on how to better program this. I want the user to select a license from a combo box, cboPrivilege and then the user will click the add button, then a record will be...
3
by: Yul | last post by:
Hi, We are in the process of designing an ASP.NET app, where a user will enter some 'Customer ID' to be queried in the database. If the ID is valid, several stored procedures will be called to...
3
by: crjunk | last post by:
I have 4 different databases that I'm having to pull data from in order to populate a datagrid. I am able to do this, but my problem is that because I'm pulling the data from 4 different...
0
by: ROO | last post by:
Hi Everyone, I have a database table that have 4 field( C1, C2, M1, M2) on my form i have two combo box ComboC and ComboM C1 C2 M1 M2 1 ...
3
by: Jordan | last post by:
Suppose I have a system that keeps track of 5 different types of "People". My intent is to have a base Person class, then 5 derived classes for each of the specific person types (e.g., Patient,...
16
by: agrawal.solutions | last post by:
Hello Friends I am asking a very silly question but i dont find any solution fo this.. I am selectiong a recordset and want to populate a combobox where id would be inviseble and the content...
1
by: edwordsigh | last post by:
Hello All! I would like to know where I can get started on a problem I've been having. I am currently trying to populate a listbox in visual basic from an access database file. Specifically, I am...
6
by: tinman486 | last post by:
Im new to the whole javascript game, I know pretty much just enough to be dangerous with no real substance. Anyway Im trying to populate a DIV with a website using the URL as an inner html source ...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.